Skip to content

Commit 9fcd171

Browse files
author
thk123
committed
Running expected failure tests after running regular unit tests
This ensures that failed tests don't get inadvertently fixed, without cluttering the normal output
1 parent a2c45e8 commit 9fcd171

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,13 @@ script:
355355
- env PATH=$PATH:`pwd`/src/solvers UBSAN_OPTIONS=print_stacktrace=1 make -C regression/cbmc test-cprover-smt2
356356
- make -C unit "CXX=${COMPILER} ${EXTRA_CXXFLAGS}" -j2
357357
- make -C unit test
358+
- echo "Running expected failure tests"
359+
- make TAGS="[!shouldfail]" -C unit test
358360
- env UBSAN_OPTIONS=print_stacktrace=1 make -C jbmc/regression test-parallel "CXX=${COMPILER} ${EXTRA_CXXFLAGS}" -j2 JOBS=2
359361
- make -C jbmc/unit "CXX=${COMPILER} ${EXTRA_CXXFLAGS}" -j2
360362
- make -C jbmc/unit test
363+
- echo "Running expected failure tests"
364+
- make TAGS="[!shouldfail]" -C jbmc/unit test
361365

362366
before_cache:
363367
- ccache -s

jbmc/unit/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ clean: java-testing-utils-clean
146146
test: $(CATCH_TEST)
147147
if ! ./$(CATCH_TEST) -l | grep -q "^$(N_CATCH_TESTS) test cases" ; then \
148148
./$(CATCH_TEST) -l ; fi
149-
./$(CATCH_TEST)
149+
./$(CATCH_TEST) ${TAGS}
150150

151151

152152
###############################################################################

unit/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ clean: testing-utils-clean
206206
test: $(CATCH_TEST)
207207
if ! ./$(CATCH_TEST) -l | grep -q "^$(N_CATCH_TESTS) test cases" ; then \
208208
./$(CATCH_TEST) -l ; fi
209-
./$(CATCH_TEST)
209+
./$(CATCH_TEST) ${TAGS}
210210

211211

212212
###############################################################################

0 commit comments

Comments
 (0)