File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ Build system
67
67
68
68
- attempted to fix detection of CPLEX library on macOS and Windows systems
69
69
70
+ Testing
71
+ -------
72
+
73
+ - added parameter FILTER for tests/Makefile to run only tests with a specific pattern (ctest with -R FILTER)
74
+
70
75
Miscellaneous
71
76
-------------
72
77
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ endif
173
173
.PHONY : all
174
174
all : Criterion $(OBJDIR ) $(OBJDIRS ) $(BINDIRS ) $(UNITTESTSBIN )
175
175
make ctestrunner
176
- setarch ` uname -m` -R ctest --output-on-failure
176
+ setarch ` uname -m` -R ctest --output-on-failure $( if $( FILTER ) , -R $( FILTER ) )
177
177
178
178
.PHONY : lint
179
179
lint : $(UNITTESTSSRC )
@@ -200,7 +200,7 @@ $(BINDIRS):
200
200
.PHONY : test
201
201
test : $(UNITTESTSBIN )
202
202
make ctestrunner
203
- setarch ` uname -m` -R ctest --output-on-failure
203
+ setarch ` uname -m` -R ctest --output-on-failure $( if $( FILTER ) , -R $( FILTER ) )
204
204
205
205
.PHONY : ctestrunner
206
206
ctestrunner : $(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
89
89
make BUGS=true
90
90
```
91
91
92
- You can also run a single test, e.g. `
92
+ You can also run a single test, e.g.
93
93
```
94
94
>> ./bin/cons/quadratic/gauge.linux.x86_64.gnu.dbg.spx2
95
95
```
96
+ To run all tests that match a regular expression, use
97
+ ```
98
+ >> make FILTER=gauge
99
+ ```
96
100
97
101
Note, that parameterized tests will not work on systems that have address
98
102
space layout randomization (ASLR) enabled. One can disable ASLR for a
You can’t perform that action at this time.
0 commit comments