File tree Expand file tree Collapse file tree 15 files changed +28
-9
lines changed Expand file tree Collapse file tree 15 files changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ foreach(instance ${instances})
40
40
set_tests_properties ("applications-coloring-${basename} "
41
41
PROPERTIES
42
42
PASS_REGULAR_EXPRESSION "Validation : Success"
43
+ FAIL_REGULAR_EXPRESSION "ERROR"
43
44
DEPENDS applications-coloring-build
44
45
RESOURCE_LOCK libscip
45
46
)
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ foreach(instance ${instances})
48
48
)
49
49
set_tests_properties ("applications-cycleclustering-${basename} -${setting} "
50
50
PROPERTIES
51
- PASS_REGULAR_EXPRESSION "optimal solution found"
51
+ PASS_REGULAR_EXPRESSION "optimal solution found"
52
+ FAIL_REGULAR_EXPRESSION "ERROR"
52
53
DEPENDS applications-cycleclustering-build
53
54
RESOURCE_LOCK libscip
54
55
)
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ foreach(instance ${instances})
42
42
set_tests_properties ("applications-miniisc-${basename} "
43
43
PROPERTIES
44
44
PASS_REGULAR_EXPRESSION "Primal Bound : \\ +(${optval} \\ .000000*|${optvalminusone} \\ .999999*)e\\ +00"
45
+ FAIL_REGULAR_EXPRESSION "ERROR"
45
46
DEPENDS applications-miniisc-build
46
47
RESOURCE_LOCK libscip
47
48
)
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ foreach(instance ${instances})
41
41
set_tests_properties ("applications-ringpacking-${basename} "
42
42
PROPERTIES
43
43
PASS_REGULAR_EXPRESSION "Validation : Success"
44
+ FAIL_REGULAR_EXPRESSION "ERROR"
44
45
DEPENDS applications-ringpacking-build
45
46
RESOURCE_LOCK libscip
46
47
)
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ foreach(instance ${instances})
61
61
set_tests_properties ("applications-scheduler-${basename} "
62
62
PROPERTIES
63
63
PASS_REGULAR_EXPRESSION "Validation : Success"
64
+ FAIL_REGULAR_EXPRESSION "ERROR"
64
65
DEPENDS applications-scheduler-build
65
66
RESOURCE_LOCK libscip
66
67
)
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ foreach(instance ${instances})
40
40
set_tests_properties ("examples-binpacking-${basename} "
41
41
PROPERTIES
42
42
PASS_REGULAR_EXPRESSION "Validation : Success"
43
+ FAIL_REGULAR_EXPRESSION "ERROR"
43
44
DEPENDS examples-binpacking-build
44
45
RESOURCE_LOCK libscip
45
46
)
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ macro(addbuildandtest target)
60
60
)
61
61
set_tests_properties (examples-callablelibrary_${target}
62
62
PROPERTIES
63
+ FAIL_REGULAR_EXPRESSION "ERROR"
63
64
DEPENDS examples-callablelibrary_${target}-build
64
65
)
65
66
if (WIN32 )
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ foreach(instance ${instances})
77
77
set_tests_properties (examples-eventhdlr-${basename}
78
78
PROPERTIES
79
79
PASS_REGULAR_EXPRESSION "Validation : Success"
80
+ FAIL_REGULAR_EXPRESSION "ERROR"
80
81
DEPENDS examples-eventhdlr-build
81
82
)
82
83
if (WIN32 )
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ foreach(instance ${instances})
82
82
)
83
83
set_tests_properties (examples-gmi-${setting}-${basename}
84
84
PROPERTIES
85
+ FAIL_REGULAR_EXPRESSION "ERROR"
85
86
DEPENDS examples-gmi-build
86
87
)
87
88
if (WIN32 )
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ foreach(instance ${instances})
44
44
set_tests_properties (examples-lop-${basename}
45
45
PROPERTIES
46
46
PASS_REGULAR_EXPRESSION "Validation : Success"
47
+ FAIL_REGULAR_EXPRESSION "ERROR"
47
48
DEPENDS examples-lop-build
48
49
RESOURCE_LOCK libscip
49
50
)
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ foreach(n ${nSet})
54
54
)
55
55
set_tests_properties (examples-queens-${n}
56
56
PROPERTIES
57
+ FAIL_REGULAR_EXPRESSION "ERROR"
57
58
DEPENDS examples-queens-build
58
59
)
59
60
if (WIN32 )
Original file line number Diff line number Diff line change @@ -46,8 +46,10 @@ foreach(instance ${instances})
46
46
)
47
47
set_tests_properties (examples-relaxator-${basename}
48
48
PROPERTIES
49
- DEPENDS examples-relaxator-build
50
- RESOURCE_LOCK libscip
49
+ PASS_REGULAR_EXPRESSION "Validation : Success"
50
+ FAIL_REGULAR_EXPRESSION "ERROR"
51
+ DEPENDS examples-relaxator-build
52
+ RESOURCE_LOCK libscip
51
53
)
52
54
if (WIN32 )
53
55
# on windows we need to execute the application and examples executables from the directory containing the libscip.dll,
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ foreach(instance ${instances})
43
43
set_tests_properties ("examples-scflp-${basename} "
44
44
PROPERTIES
45
45
PASS_REGULAR_EXPRESSION "Validation : Success"
46
+ FAIL_REGULAR_EXPRESSION "ERROR"
46
47
DEPENDS examples-scflp-build
47
48
RESOURCE_LOCK libscip
48
49
)
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ foreach(instance ${instances})
43
43
set_tests_properties (examples-tsp-${basename}
44
44
PROPERTIES
45
45
PASS_REGULAR_EXPRESSION "Validation : Success"
46
+ FAIL_REGULAR_EXPRESSION "ERROR"
46
47
DEPENDS examples-tsp-build
47
48
RESOURCE_LOCK libscip
48
49
)
Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ include(CTest)
3
3
# define the instance sets
4
4
#
5
5
# semicolon '\;' is used to split an instance and its optimal objective value
6
+ # and its optimal value minus one
6
7
# For infeasible instances, '+infinity' is used (or '-infinity' in case of maximization)
7
8
#
8
9
set (instances
9
- "eil13\; 247 "
10
- # "eil22\;375 "
10
+ "eil13\; 2.47 \; 2.46 "
11
+ # "eil22\;3.75\;3.74 "
11
12
# this instance takes too long
12
- "eil7\; 104 "
13
+ "eil7\; 1.04 \; 1.03 "
13
14
)
14
15
15
16
#
@@ -31,15 +32,18 @@ set_tests_properties(examples-vrp-build
31
32
#
32
33
foreach (instance ${instances} )
33
34
#
34
- # treat the instance as a tuple (list) of two values
35
+ # treat the instance as a tuple (list) of three values
35
36
#
36
37
list (GET instance 0 basename )
37
38
list (GET instance 1 optval )
38
- add_test (NAME examples-vrp-${basename}
39
+ list (GET instance 2 optvalminusone )
40
+ add_test (NAME "examples-vrp-${basename} "
39
41
COMMAND $< TARGET_FILE:vrp> ${CMAKE_CURRENT_SOURCE_DIR} /../data/${basename}.vrp
40
42
)
41
- set_tests_properties (examples-vrp-${basename}
43
+ set_tests_properties (" examples-vrp-${basename} "
42
44
PROPERTIES
45
+ PASS_REGULAR_EXPRESSION "Primal Bound : \\ +(${optval} 000000*|${optvalminusone} 999999*)e\\ +02"
46
+ FAIL_REGULAR_EXPRESSION "ERROR"
43
47
DEPENDS examples-vrp-build
44
48
RESOURCE_LOCK libscip
45
49
)
You can’t perform that action at this time.
0 commit comments