You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did "make test" and get 2 test failed. So how to solve it?
Below is my test report:
lua-zip > make test
cmake -H. -Bbuild
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found libzip: /usr/local/lib/libzip.so
-- Found Lua51: /usr/local/lib/liblua.a;/usr/lib/x86_64-linux-gnu/libm.so (found version "5.1.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/luqi/download/lua-zip/build
cmake --build build
make[1]: Entering directory '/home/luqi/download/lua-zip/build'
make[2]: Entering directory '/home/luqi/download/lua-zip/build'
make[3]: Entering directory '/home/luqi/download/lua-zip/build'
Scanning dependencies of target cmod_zip
make[3]: Leaving directory '/home/luqi/download/lua-zip/build'
make[3]: Entering directory '/home/luqi/download/lua-zip/build'
[100%] Building C object CMakeFiles/cmod_zip.dir/lua_zip.c.o
Linking C shared module brimworks/zip.so
make[3]: Leaving directory '/home/luqi/download/lua-zip/build'
[100%] Built target cmod_zip
make[2]: Leaving directory '/home/luqi/download/lua-zip/build'
make[1]: Leaving directory '/home/luqi/download/lua-zip/build'
cd build && ctest -V
UpdateCTestConfiguration from :/home/luqi/download/lua-zip/build/DartConfiguration.tcl
Parse Config file:/home/luqi/download/lua-zip/build/DartConfiguration.tcl
UpdateCTestConfiguration from :/home/luqi/download/lua-zip/build/DartConfiguration.tcl
Parse Config file:/home/luqi/download/lua-zip/build/DartConfiguration.tcl
Test project /home/luqi/download/lua-zip/build
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: basic
1: Test command: /home/luqi/app/lua5.1/bin/lua "/home/luqi/download/lua-zip/test.lua" "/home/luqi/download/lua-zip/build"
1: Test timeout computed to be: 1500
1: ok 1 - Circular reference is error: Circular reference of zip sources is not allowed
1: ok 2 - No such file matches 'No such file'
1: ok 3 - test_open_close was successful
1: ok 4 - 2 == 2
1: ok 5 - 2 == 2
1: ok 6 - 2 == 2
1: ok 7 - No such file matches 'No such file'
1: ok 8 - 2 == 2
1: ok 9 - 2 == 2
1: ok 10 - [one
1: two
1: three
1: ] == [one
1: two
1: three
1: ]
1: ok 11 - [one
1: two
1: three
1: ] == [one
1: two
1: three
1: ]
1: # Expected [mtime] to be '1296450278', but got '1296392678'
1: not ok 12 - TEST.TXT stat
1: # Expected [mtime] to be '1296450278', but got '1296392678'
1: not ok 13 - index 2 stat
1: ok 14 - test/text.txt == 'test/text.txt'
1: ok 15 - No comment is set. TODO: test w/ real comment
1: ok 16 - zip.FL_UNCHANGED works
1: ok 17 - test fun == 'test fun'
1: ok 18 - No comment set. TODO: test w/ real comment
1: ok 19 - Invalid argument == 'Invalid argument'
1: ok 20 - add_dir returns 1
1: ok 21 - Archive contains one entry: 1
1: ok 22 - dir exists
1: ok 23 - name_locate returns nil if FL_NODIR flag is passed
1: ok 24 - Archive contains one entry: 1
1: ok 25 - Contents == 'Contents'
1: ok 26 - Archive contains one entry: 1
1: ok 27 - Replacement == 'Replacement'
1: ok 28 - Rename non-existant file error=No such file 'DNE'
1: ok 29 - Archive contains one entry: 1
1: ok 30 - Contents == 'Contents'
1: ok 31 - Delete non-existant file error=No such file 'DNE'
1: ok 32 - Archive contains one entry: 1
1: ok 33 - Archive contains one entry: 1
1: ok 34 - two == 'two'
1: ok 35 - Archive contains one entry: 1
1: ok 36 - /usr/bin/env == '/usr/bin/env'
1/1 Test #1: basic ............................***Failed 0.03 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.03 sec
The following tests FAILED:
1 - basic (Failed)
Errors while running CTest
Makefile:14: recipe for target 'test' failed
make: *** [test] Error 8
The text was updated successfully, but these errors were encountered:
I did "make test" and get 2 test failed. So how to solve it?
Below is my test report:
lua-zip > make test
cmake -H. -Bbuild
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found libzip: /usr/local/lib/libzip.so
-- Found Lua51: /usr/local/lib/liblua.a;/usr/lib/x86_64-linux-gnu/libm.so (found version "5.1.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/luqi/download/lua-zip/build
cmake --build build
make[1]: Entering directory '/home/luqi/download/lua-zip/build'
make[2]: Entering directory '/home/luqi/download/lua-zip/build'
make[3]: Entering directory '/home/luqi/download/lua-zip/build'
Scanning dependencies of target cmod_zip
make[3]: Leaving directory '/home/luqi/download/lua-zip/build'
make[3]: Entering directory '/home/luqi/download/lua-zip/build'
[100%] Building C object CMakeFiles/cmod_zip.dir/lua_zip.c.o
Linking C shared module brimworks/zip.so
make[3]: Leaving directory '/home/luqi/download/lua-zip/build'
[100%] Built target cmod_zip
make[2]: Leaving directory '/home/luqi/download/lua-zip/build'
make[1]: Leaving directory '/home/luqi/download/lua-zip/build'
cd build && ctest -V
UpdateCTestConfiguration from :/home/luqi/download/lua-zip/build/DartConfiguration.tcl
Parse Config file:/home/luqi/download/lua-zip/build/DartConfiguration.tcl
UpdateCTestConfiguration from :/home/luqi/download/lua-zip/build/DartConfiguration.tcl
Parse Config file:/home/luqi/download/lua-zip/build/DartConfiguration.tcl
Test project /home/luqi/download/lua-zip/build
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: basic
1: Test command: /home/luqi/app/lua5.1/bin/lua "/home/luqi/download/lua-zip/test.lua" "/home/luqi/download/lua-zip/build"
1: Test timeout computed to be: 1500
1: ok 1 - Circular reference is error: Circular reference of zip sources is not allowed
1: ok 2 - No such file matches 'No such file'
1: ok 3 - test_open_close was successful
1: ok 4 - 2 == 2
1: ok 5 - 2 == 2
1: ok 6 - 2 == 2
1: ok 7 - No such file matches 'No such file'
1: ok 8 - 2 == 2
1: ok 9 - 2 == 2
1: ok 10 - [one
1: two
1: three
1: ] == [one
1: two
1: three
1: ]
1: ok 11 - [one
1: two
1: three
1: ] == [one
1: two
1: three
1: ]
1: # Expected [mtime] to be '1296450278', but got '1296392678'
1: not ok 12 - TEST.TXT stat
1: # Expected [mtime] to be '1296450278', but got '1296392678'
1: not ok 13 - index 2 stat
1: ok 14 - test/text.txt == 'test/text.txt'
1: ok 15 - No comment is set. TODO: test w/ real comment
1: ok 16 - zip.FL_UNCHANGED works
1: ok 17 - test fun == 'test fun'
1: ok 18 - No comment set. TODO: test w/ real comment
1: ok 19 - Invalid argument == 'Invalid argument'
1: ok 20 - add_dir returns 1
1: ok 21 - Archive contains one entry: 1
1: ok 22 - dir exists
1: ok 23 - name_locate returns nil if FL_NODIR flag is passed
1: ok 24 - Archive contains one entry: 1
1: ok 25 - Contents == 'Contents'
1: ok 26 - Archive contains one entry: 1
1: ok 27 - Replacement == 'Replacement'
1: ok 28 - Rename non-existant file error=No such file 'DNE'
1: ok 29 - Archive contains one entry: 1
1: ok 30 - Contents == 'Contents'
1: ok 31 - Delete non-existant file error=No such file 'DNE'
1: ok 32 - Archive contains one entry: 1
1: ok 33 - Archive contains one entry: 1
1: ok 34 - two == 'two'
1: ok 35 - Archive contains one entry: 1
1: ok 36 - /usr/bin/env == '/usr/bin/env'
1/1 Test #1: basic ............................***Failed 0.03 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.03 sec
The following tests FAILED:
1 - basic (Failed)
Errors while running CTest
Makefile:14: recipe for target 'test' failed
make: *** [test] Error 8
The text was updated successfully, but these errors were encountered: