However it works in Debian 8 x64 (both updated the same day). It's the only test that fails.
From log:
19/104 Test: filter_test
Command: "/mnt/cppcms_git/build/filter_test" "-c" "/mnt/cppcms_git/tests/filter_test.js" "--test-exec=/usr/bin/python2 /mnt
/cppcms_git/tests/filter_test.py"
Directory: /mnt/cppcms_git/build
"filter_test" start time: Jul 03 16:08 UTC
Output:
FAIL: size_t(input_file.size()) << ref.size() in line: 115
FAIL: size_t(input_file.size()) << ref.size() in line: 115
FAIL: size_t(input_file.size()) << ref.size() in line: 115
FAIL: size_t(input_file.size()) << ref.size() in line: 115
FAIL: size_t(input_file.size()) << ref.size() in line: 115
FAIL: size_t(input_file.size()) << ref.size() in line: 115
FAIL: size_t(input_file.size()) << ref.size() in line: 115
GET /upload/no_content
Got {'status': 200, 'no_content': 1, 'is_html': False}
POST /upload?l_1=10&f_1=a&l_2=20&f_2=t
Got {'status': 200, 'on_end_of_content': 1, 'is_html': False, 'on_upload_progress': 0, 'on_new_file': 2, 'on_data_ready': 2, 'post': 0, 'total': 2, 'files': 2}
POST /upload?l_1=10&f_1=a&l_2=20&f_2=t&chunks=5
Got {'status': 200, 'on_end_of_content': 1, 'is_html': False, 'on_upload_progress': 9, 'on_new_file': 2, 'on_data_ready': 2, 'post': 0, 'total': 2, 'files': 2}
POST /upload?l_1=10000&f_1=a&l_2=20000&f_2=t
Got {'status': 200, 'on_end_of_content': 1, 'is_html': False, 'on_upload_progress': 3, 'on_new_file': 2, 'on_data_ready': 2, 'post': 0, 'total': 2, 'files': 2}
POST /upload?l_1=50&f_1=a&abort=on_headers_ready&how=0&setbuf=10&at=1
Got {'status': 501, 'content': '\r\n\r\n
501 Not Implemented
\r\n\r\n\r\n', 'is_html': True}
POST /upload?l_1=50&f_1=a&abort=on_headers_ready&how=1&setbuf=10&at=1
Got {'status': 501, 'at': 'on_headers_ready', 'is_html': False}
POST /upload?l_1=50&f_1=a&abort=on_headers_ready&how=2&setbuf=10&at=1
Got {'status': 501, 'at': 'on_headers_ready', 'is_html': False}
POST /upload?l_1=50&f_1=a&abort=on_headers_ready&how=3&setbuf=10&at=1
Got {'status': 501, 'at': 'on_headers_ready', 'is_html': False}
POST /upload?l_1=50&f_1=a&abort=on_new_file&how=0&setbuf=10&at=1
Got {'status': 502, 'content': '\r\n\r\n
502 Bad Gateway
\r\n\r\n\r\n', 'is_html': True}
POST /upload?l_1=50&f_1=a&abort=on_new_file&how=1&setbuf=10&at=1
Got {'status': 502, 'at': 'on_new_file', 'is_html': False}
POST /upload?l_1=50&f_1=a&abort=on_new_file&how=2&setbuf=10&at=1
Got {'status': 502, 'at': 'on_new_file', 'is_html': False}
POST /upload?l_1=50&f_1=a&abort=on_new_file&how=3&setbuf=10&at=1
Got {'status': 502, 'at': 'on_new_file', 'is_html': False}
POST /upload?l_1=50&f_1=a&abort=on_upload_progress&how=0&setbuf=10&at=1
Got {'status': 200, 'on_end_of_content': 1, 'is_html': False, 'on_upload_progress': 5, 'on_new_file': 1, 'on_data_ready': 1, 'post': 0, 'total': 1, 'files': 1}
Traceback (most recent call last):
File "/mnt/cppcms_git/tests/filter_test.py", line 262, in
test_upload()
File "/mnt/cppcms_git/tests/filter_test.py", line 180, in test_upload
test(r['status']==code)
File "/mnt/cppcms_git/tests/filter_test.py", line 16, in test
raise RuntimeError("Failed")
RuntimeError: Failed
FAILED
Test time = 3.48 sec
From manual run:
/mnt/cppcms_git/build/filter_test -c /mnt/cppcms_git/tests/filter_test.js --test-exec="/usr/bin/python2 /mnt/cppcms_git/tests/filter_test.py"
GET /upload/no_content
Got {'status': 200, 'no_content': 1, 'is_html': False}
POST /upload?l_1=10&f_1=a&l_2=20&f_2=t
Got {'status': 200, 'on_end_of_content': 1, 'is_html': False, 'on_upload_progress': 0, 'on_new_file': 2, 'on_data_ready': 2, 'post': 0, 'total': 2, 'files': 2}
POST /upload?l_1=10&f_1=a&l_2=20&f_2=t&chunks=5
Got {'status': 200, 'on_end_of_content': 1, 'is_html': False, 'on_upload_progress': 9, 'on_new_file': 2, 'on_data_ready': 2, 'post': 0, 'total': 2, 'files': 2}
POST /upload?l_1=10000&f_1=a&l_2=20000&f_2=t
FAIL: size_t(input_file.size()) << ref.size() in line: 115
FAIL: size_t(input_file.size()) << ref.size() in line: 115
Got {'status': 200, 'on_end_of_content': 1, 'is_html': False, 'on_upload_progress': 3, 'on_new_file': 2, 'on_data_ready': 2, 'post': 0, 'total': 2, 'files': 2}
POST /upload?l_1=50&f_1=a&abort=on_headers_ready&how=0&setbuf=10&at=1
Got {'status': 501, 'content': '\r\n\r\n
501 Not Implemented
\r\n\r\n\r\n', 'is_html': True}
POST /upload?l_1=50&f_1=a&abort=on_headers_ready&how=1&setbuf=10&at=1
Got {'status': 501, 'at': 'on_headers_ready', 'is_html': False}
POST /upload?l_1=50&f_1=a&abort=on_headers_ready&how=2&setbuf=10&at=1
Got {'status': 501, 'at': 'on_headers_ready', 'is_html': False}
POST /upload?l_1=50&f_1=a&abort=on_headers_ready&how=3&setbuf=10&at=1
Got {'status': 501, 'at': 'on_headers_ready', 'is_html': False}
POST /upload?l_1=50&f_1=a&abort=on_new_file&how=0&setbuf=10&at=1
Got {'status': 502, 'content': '\r\n\r\n
502 Bad Gateway
\r\n\r\n\r\n', 'is_html': True}
POST /upload?l_1=50&f_1=a&abort=on_new_file&how=1&setbuf=10&at=1
Got {'status': 502, 'at': 'on_new_file', 'is_html': False}
POST /upload?l_1=50&f_1=a&abort=on_new_file&how=2&setbuf=10&at=1
Got {'status': 502, 'at': 'on_new_file', 'is_html': False}
POST /upload?l_1=50&f_1=a&abort=on_new_file&how=3&setbuf=10&at=1
Got {'status': 502, 'at': 'on_new_file', 'is_html': False}
POST /upload?l_1=50&f_1=a&abort=on_upload_progress&how=0&setbuf=10&at=1
FAIL: size_t(input_file.size()) << ref.size() in line: 115
FAIL: size_t(input_file.size()) << ref.size() in line: 115
FAIL: size_t(input_file.size()) << ref.size() in line: 115
FAIL: size_t(input_file.size()) << ref.size() in line: 115
FAIL: size_t(input_file.size()) << ref.size() in line: 115
Got {'status': 200, 'on_end_of_content': 1, 'is_html': False, 'on_upload_progress': 5, 'on_new_file': 1, 'on_data_ready': 1, 'post': 0, 'total': 1, 'files': 1}
Traceback (most recent call last):
File "/mnt/cppcms_git/tests/filter_test.py", line 262, in
test_upload()
File "/mnt/cppcms_git/tests/filter_test.py", line 180, in test_upload
test(r['status']==code)
File "/mnt/cppcms_git/tests/filter_test.py", line 16, in test
raise RuntimeError("Failed")
RuntimeError: Failed
FAILED
Environment:
cat /etc/issue
Debian GNU/Linux 8 \n \l
BeagleBoard.org Debian Image 2016-12-09
Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
default username:password is [debian:temppwd]
The IP Address for eth0 is: 192.168.3.104
The IP Address for usb0 is: 192.168.7.2
uname -a
Linux bbb-0 4.4.36-ti-r72 #1 SMP Wed Dec 7 22:29:53 UTC 2016 armv7l GNU/Linux
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.9.2 (Debian 4.9.2-10)