trendmicro / tlsh

Other
732 stars 136 forks source link

need a -notest option for ./make.sh #61

Closed jonjoliver closed 5 years ago

jonjoliver commented 5 years ago

so that we can options where the regression tests will fail

jonjoliver commented 5 years ago

Output of ./make.sh

$ ./make.sh 
-- Configuring done
-- Generating done
-- Build files have been written to: tlsh.github/build/release
Scanning dependencies of target tlsh
[  5%] Building CXX object src/CMakeFiles/tlsh.dir/tlsh.cpp.o
[ 11%] Building CXX object src/CMakeFiles/tlsh.dir/tlsh_impl.cpp.o
[ 16%] Building CXX object src/CMakeFiles/tlsh.dir/tlsh_util.cpp.o
[ 22%] Linking CXX static library ../../../lib/libtlsh.a
[ 22%] Built target tlsh
[ 27%] Linking CXX executable ../../../bin/tlsh_version
[ 33%] Built target tlsh_version
Scanning dependencies of target tlsh_pattern
[ 38%] Building CXX object test/CMakeFiles/tlsh_pattern.dir/tlsh_pattern.cpp.o
[ 44%] Linking CXX executable ../../../bin/tlsh_pattern
[ 44%] Built target tlsh_pattern
Scanning dependencies of target timing_unittest
[ 50%] Building CXX object test/CMakeFiles/timing_unittest.dir/timing_unittest.cpp.o
[ 55%] Linking CXX executable ../../../bin/timing_unittest
[ 55%] Built target timing_unittest
Scanning dependencies of target order_bug
[ 61%] Building CXX object test/CMakeFiles/order_bug.dir/order_bug.cpp.o
[ 66%] Linking CXX executable ../../../bin/order_bug
[ 66%] Built target order_bug
Scanning dependencies of target simple_unittest
[ 72%] Building CXX object test/CMakeFiles/simple_unittest.dir/simple_unittest.cpp.o
[ 77%] Linking CXX executable ../../../bin/simple_unittest
[ 77%] Built target simple_unittest
Scanning dependencies of target tlsh_unittest
[ 83%] Building CXX object test/CMakeFiles/tlsh_unittest.dir/tlsh_unittest.cpp.o
[ 88%] Linking CXX executable ../../../bin/tlsh_unittest
[ 88%] Built target tlsh_unittest
Scanning dependencies of target rand_tags
[ 94%] Building CXX object utils/CMakeFiles/rand_tags.dir/rand_tags.cpp.o
[100%] Linking CXX executable ../../../bin/rand_tags
[100%] Built target rand_tags
tlsh.github/build/release

===========
Cmake Tests
===========
Running tests...
Test project tlsh.github/build/release
    Start 1: tlsh_unittest_len
1/2 Test #1: tlsh_unittest_len ................   Passed    2.72 sec
    Start 2: tlsh_unittest_xlen
2/2 Test #2: tlsh_unittest_xlen ...............   Passed    2.50 sec

100% tests passed, 0 tests failed out of 2

Total Test time (real) =   5.23 sec

=====================
tests on example data
=====================
Scenario: not considering len, ...
Scenario: tlsh   (c++ standard version)...
test 1
passed
test 2
passed
test 3
passed
test 4
passed
test 5
passed
Scenario: considering len, ...
Scenario: tlsh   (c++ standard version)...
test 1
passed
test 2
passed
test 3
passed
test 4
passed
test 5
passed
test 6
passed
test 7
passed
Running simple_unittest
passed all example data tests

Output of ./make.sh -notest

$ ./make.sh -notest
-- Configuring done
-- Generating done
-- Build files have been written to: tlsh.github/build/release
Scanning dependencies of target tlsh
[  5%] Building CXX object src/CMakeFiles/tlsh.dir/tlsh.cpp.o
[ 11%] Building CXX object src/CMakeFiles/tlsh.dir/tlsh_impl.cpp.o
[ 16%] Building CXX object src/CMakeFiles/tlsh.dir/tlsh_util.cpp.o
[ 22%] Linking CXX static library ../../../lib/libtlsh.a
[ 22%] Built target tlsh
[ 27%] Linking CXX executable ../../../bin/tlsh_version
[ 33%] Built target tlsh_version
Scanning dependencies of target tlsh_pattern
[ 38%] Building CXX object test/CMakeFiles/tlsh_pattern.dir/tlsh_pattern.cpp.o
[ 44%] Linking CXX executable ../../../bin/tlsh_pattern
[ 44%] Built target tlsh_pattern
Scanning dependencies of target timing_unittest
[ 50%] Building CXX object test/CMakeFiles/timing_unittest.dir/timing_unittest.cpp.o
[ 55%] Linking CXX executable ../../../bin/timing_unittest
[ 55%] Built target timing_unittest
Scanning dependencies of target order_bug
[ 61%] Building CXX object test/CMakeFiles/order_bug.dir/order_bug.cpp.o
[ 66%] Linking CXX executable ../../../bin/order_bug
[ 66%] Built target order_bug
Scanning dependencies of target simple_unittest
[ 72%] Building CXX object test/CMakeFiles/simple_unittest.dir/simple_unittest.cpp.o
[ 77%] Linking CXX executable ../../../bin/simple_unittest
[ 77%] Built target simple_unittest
Scanning dependencies of target tlsh_unittest
[ 83%] Building CXX object test/CMakeFiles/tlsh_unittest.dir/tlsh_unittest.cpp.o
[ 88%] Linking CXX executable ../../../bin/tlsh_unittest
[ 88%] Built target tlsh_unittest
Scanning dependencies of target rand_tags
[ 94%] Building CXX object utils/CMakeFiles/rand_tags.dir/rand_tags.cpp.o
[100%] Linking CXX executable ../../../bin/rand_tags
[100%] Built target rand_tags
tlsh.github/build/release