forked from google/or-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcgc_test_solution.bintest
More file actions
24 lines (17 loc) · 968 Bytes
/
cgc_test_solution.bintest
File metadata and controls
24 lines (17 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Tests the Two-Dimensional Constrained Guillotine Cutting solver
# by loading example input files from the testdata directory.
# The following tests are too big and don't converge within a second so we don't
# check for a particular solution. Instead we make sure that the value is
# greater than zero.
RUN: $(cgc_main) --input_file=$(1.in) --time_limit_in_ms=1000 --print_maximum_value=true
CHECK: "@num(>0)"
RUN: $(cgc_main) --input_file=$(2.in) --time_limit_in_ms=1000 --print_maximum_value=true
CHECK: "@num(>0)"
RUN: $(cgc_main) --input_file=$(3.in) --time_limit_in_ms=1000 --print_maximum_value=true
CHECK: "@num(>0)"
RUN: $(cgc_main) --input_file=$(cgcut1.in) --time_limit_in_ms=1000 --print_maximum_value=true
CHECK: "@num(>0)"
RUN: $(cgc_main) --input_file=$(cgcut2.in) --time_limit_in_ms=1000 --print_maximum_value=true
CHECK: "@num(>0)"
RUN: $(cgc_main) --input_file=$(cgcut3.in) --time_limit_in_ms=1000 --print_maximum_value=true
CHECK: "@num(>0)"