File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ Build system
6767
6868- attempted to fix detection of CPLEX library on macOS and Windows systems
6969
70+ Testing
71+ -------
72+
73+ - added parameter FILTER for tests/Makefile to run only tests with a specific pattern (ctest with -R FILTER)
74+
7075Miscellaneous
7176-------------
7277
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ endif
173173.PHONY : all
174174all : Criterion $(OBJDIR ) $(OBJDIRS ) $(BINDIRS ) $(UNITTESTSBIN )
175175 make ctestrunner
176- setarch ` uname -m` -R ctest --output-on-failure
176+ setarch ` uname -m` -R ctest --output-on-failure $( if $( FILTER ) , -R $( FILTER ) )
177177
178178.PHONY : lint
179179lint : $(UNITTESTSSRC )
@@ -200,7 +200,7 @@ $(BINDIRS):
200200.PHONY : test
201201test : $(UNITTESTSBIN )
202202 make ctestrunner
203- setarch ` uname -m` -R ctest --output-on-failure
203+ setarch ` uname -m` -R ctest --output-on-failure $( if $( FILTER ) , -R $( FILTER ) )
204204
205205.PHONY : ctestrunner
206206ctestrunner : $(UNITTESTSBIN )
Original file line number Diff line number Diff line change @@ -89,10 +89,14 @@ This creates `CTestTestfile.cmake` with a list of the test to run and then calls
8989make BUGS=true
9090```
9191
92- You can also run a single test, e.g. `
92+ You can also run a single test, e.g.
9393```
9494 >> ./bin/cons/quadratic/gauge.linux.x86_64.gnu.dbg.spx2
9595```
96+ To run all tests that match a regular expression, use
97+ ```
98+ >> make FILTER=gauge
99+ ```
96100
97101Note, that parameterized tests will not work on systems that have address
98102space layout randomization (ASLR) enabled. One can disable ASLR for a
You can’t perform that action at this time.
0 commit comments