karastojko / mailio

mailio is a cross platform C++ library for MIME format and SMTP, POP3, IMAP protocols. It is based on the standard C++ 17 and Boost library.
Other
381 stars 102 forks source link

Tests fail: error: in "format_attachment_utf8": check ... has failed #160

Closed yurivict closed 7 months ago

yurivict commented 7 months ago
-- Found Boost: /usr/local/include (found version "1.84.0") found components: system date_time regex url 
-- Found Boost: /usr/local/include (found version "1.84.0") found components: unit_test_framework 
-- Configuring done (0.1s)
-- Generating done (0.1s)
-- Build files have been written to: /usr/ports/mail/mailio/work/.build
ninja: no work to do.
ninja: no work to do.
cd /usr/ports/mail/mailio/work/.build && test/test_message
Running 122 test cases...
/usr/ports/mail/mailio/work/mailio-0.23.0-59-g5dab3ca/test/test_message.cpp(1701): error: in "format_attachment_utf8": check msg_str == "From: mailio <adresa@mailio.dev>\r\n" "Reply-To: Tomislav Karastojkovic <adresa@mailio.dev>\r\n" "To: mailio <adresa@mailio.dev>\r\n" "Date: Thu, 11 Feb 2016 22:56:22 +0000\r\n" "MIME-Version: 1.0\r\n" "Content-Type: multipart/mixed; boundary=\"mybnd\"\r\n" "Subject: format attachment utf8\r\n" "\r\n" "--mybnd\r\n" "Content-Type: text/plain; \r\n" "  name=\"=?UTF-8?B?VG9taXNsYXZLYXJhc3RvamtvdmnEh19DVi50eHQ=?=\"\r\n" "Content-Transfer-Encoding: Base64\r\n" "Content-Disposition: attachment; \r\n" "  filename=\"=?UTF-8?B?VG9taXNsYXZLYXJhc3RvamtvdmnEh19DVi50eHQ=?=\"\r\n" "\r\n" "VG9taXNsYXYgS2FyYXN0b2prb3ZpxIcgQ1YK\r\n" "\r\n" "--mybnd--\r\n" has failed
/usr/ports/mail/mailio/work/mailio-0.23.0-59-g5dab3ca/test/test_message.cpp(1826): error: in "format_msg_att": check msg_str == "From: mailio <adresa@mailio.dev>\r\n" "Reply-To: Tomislav Karastojkovic <adresa@mailio.dev>\r\n" "To: mailio <adresa@mailio.dev>\r\n" "Date: Thu, 11 Feb 2016 22:56:22 +0000\r\n" "MIME-Version: 1.0\r\n" "Content-Type: multipart/mixed; charset=utf-8; boundary=\"mybnd\"\r\n" "Content-Transfer-Encoding: Quoted-Printable\r\n" "Subject: format message attachment\r\n" "\r\n" "--mybnd\r\n" "Content-Type: text/plain; charset=utf-8\r\n" "Content-Transfer-Encoding: Quoted-Printable\r\n" "\r\n" "=D0=9E=D0=B2=D0=BE =D1=98=D0=B5 =D1=98=D0=B0=D0=BA=D0=BE =D0=B4=D1=83=D0=B3=\r\n" "=D0=B0=D1=87=D0=BA=D0=B0 =D0=BF=D0=BE=D1=80=D1=83=D0=BA=D0=B0 =D0=BA=D0=BE=\r\n" "=D1=98=D0=B0 =D0=B8=D0=BC=D0=B0 =D0=B8 =D0=BF=D1=80=D0=B0=D0=B7=D0=BD=D0=B8=\r\n" "=D1=85 =D0=BB=D0=B8=D0=BD=D0=B8=D1=98=D0=B0 =D0=B8 =D0=BF=D1=80=D0=B5=D0=B4=\r\n" "=D1=83=D0=B3=D0=B0=D1=87=D0=BA=D0=B8=D1=85 =D0=BB=D0=B8=D0=BD=D0=B8=D1=98=\r\n" "=D0=B0. =D0=9D=D0=B8=D1=98=D0=B5 =D1=98=D0=B0=D1=81=D0=BD=D0=BE =D0=BA=D0=\r\n" "=B0=D0=BA=D0=BE =D1=9B=D0=B5 =D1=81=D0=B5 =D1=82=D0=B5=D0=BA=D1=81=D1=82 =\r\n" "=D0=BF=D1=80=D0=B5=D0=BB=D0=BE=D0=BC=D0=B8=D1=82=D0=B8\r\n" "=D0=BF=D0=B0 =D1=81=D0=B5 =D0=BD=D0=B0=D0=B4=D0=B0=D0=BC =D0=B4=D0=B0 =D1=\r\n" "=9B=D0=B5 =D1=82=D0=BE =D0=BE=D0=B2=D0=B0=D1=98 =D1=82=D0=B5=D0=BA=D1=81=D1=\r\n" "=82 =D0=BF=D0=BE=D0=BA=D0=B0=D0=B7=D0=B0=D1=82=D0=B8.\r\n" "\r\n" "=D0=A2=D1=80=D0=B5=D0=B1=D0=B0 =D0=B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D0=B8 =D0=BF=D1=80=\r\n" "=D0=B5=D0=BB=D0=B0=D0=BC=D0=B0=D1=98=D1=83 =D1=83 =D0=BD=D0=BE=D0=B2=D0=B5 =\r\n" "=D0=BB=D0=B8=D0=BD=D0=B8=D1=98=D0=B5. =D0=9E=D0=B2=D0=B0=D1=98 =D1=82=D0=B5=\r\n" "=D1=81=D1=82 =D0=B1=D0=B8 =D1=82=D1=80=D0=B5=D0=B1=D0=B0=D0=BB=D0=BE =D0=B4=\r\n" "=D0=B0\r\n" "=D0=BF=D0=BE=D0=BA=D0=B0=D0=B6=D0=B5 =D0=B8=D0=BC=D0=B0 =D0=BB=D0=B8 =D0=B1=\r\n" "=D0=B0=D0=B3=D0=BE=D0=B2=D0=B0 =D1=83 =D0=BB=D0=BE=D0=B3=D0=B8=D1=86=D0=B8 =\r\n" "=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B8=D1=80=D0=B0=D1=9A=D0=B0,\r\n" " =D0=B0 =D0=B8=D1=81=D1=82=D0=BE =D1=82=D0=BE =D1=82=D1=80=D0=B5=D0=B1=D0=\r\n" "=B0 =D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=B8=D1=82=D0=B8 =D1=81=D0=B0 =D0=\r\n" "=BF=D0=B0=D1=80=D1=81=D0=B8=D1=80=D0=B0=D1=9A=D0=B5=D0=BC.\r\n" "\r\n" "\r\n" "\r\n" "\r\n" "=D0=9E=D0=B2=D0=B4=D0=B5 =D1=98=D0=B5 =D0=B8 =D0=BF=D1=80=D0=BE=D0=B2=D0=B5=\r\n" "=D1=80=D0=B0 =D0=B7=D0=B0 =D0=BD=D0=B8=D0=B7 =D0=BF=D1=80=D0=B0=D0=B7=D0=BD=\r\n" "=D0=B8=D1=85 =D0=BB=D0=B8=D0=BD=D0=B8=D1=98=D0=B0.\r\n" "\r\n" "--mybnd\r\n" "Content-Type: text/plain; name=\"TomislavKarastojkovic_CV.txt\"\r\n" "Content-Transfer-Encoding: Base64\r\n" "Content-Disposition: attachment; filename=\"TomislavKarastojkovic_CV.txt\"\r\n" "\r\n" "VG9taXNsYXYgS2FyYXN0b2prb3ZpxIcgQ1YK\r\n" "\r\n" "--mybnd--\r\n" has failed
/usr/ports/mail/mailio/work/mailio-0.23.0-59-g5dab3ca/test/test_message.cpp(1884): error: in "format_html_att": check msg_str == "From: mailio <adresa@mailio.dev>\r\n" "Reply-To: Tomislav Karastojkovic <adresa@mailio.dev>\r\n" "To: mailio <adresa@mailio.dev>\r\n" "Date: Thu, 11 Feb 2016 22:56:22 +0000\r\n" "MIME-Version: 1.0\r\n" "Content-Type: multipart/mixed; charset=utf-8; boundary=\"mybnd\"\r\n" "Content-Transfer-Encoding: Quoted-Printable\r\n" "Subject: format html attachment\r\n" "\r\n" "--mybnd\r\n" "Content-Type: text/html; charset=utf-8\r\n" "Content-Transfer-Encoding: Quoted-Printable\r\n" "\r\n" "<h1>Naslov</h1><p>Ovo je poruka.</p>\r\n" "\r\n" "--mybnd\r\n" "Content-Type: text/plain; name=\"TomislavKarastojkovic_CV.txt\"\r\n" "Content-Transfer-Encoding: Base64\r\n" "Content-Disposition: attachment; filename=\"TomislavKarastojkovic_CV.txt\"\r\n" "\r\n" "VG9taXNsYXYgS2FyYXN0b2prb3ZpxIcgQ1YK\r\n" "\r\n" "--mybnd--\r\n" has failed

*** 3 failures are detected in the test module "message_test"
*** Error code 201

Version: 0.23.0-59-g5dab3ca FreeBSD 14.0

karastojko commented 7 months ago

There are two auxiliarry files aleph0.png and cv.txt used by few tests. They are installed with make install. Otherwise, you have to put them within the same directory as the test executable.

yurivict commented 7 months ago

Ok, thanks.