test: add basic test for DRUP proof production

This commit is contained in:
Simon Cruanes 2021-08-02 23:47:45 -04:00
parent e6fc7e7357
commit d117d656c5
3 changed files with 26 additions and 0 deletions

10
src/tests/basic.cnf Normal file
View file

@ -0,0 +1,10 @@
p cnf 4 8
1 2 -3 0
-1 -2 3 0
2 3 -4 0
-2 -3 4 0
1 3 4 0
-1 -3 -4 0
-1 2 4 0
1 -2 -4 0

View file

@ -0,0 +1,4 @@
-4 -1 0
-1 0
-3 0
0

View file

@ -14,3 +14,15 @@
(progn
(run ./run_tests.exe alcotest) ; run regressions first
(run ./run_tests.exe qcheck --verbose))))
(rule
(targets basic.drup)
(deps (:pb basic.cnf) (:solver ../main/main.exe))
(action (run %{solver} %{pb} -t 2 -o %{targets})))
(alias
(name runtest)
(locks /test)
(package sidekick-bin)
(action
(diff basic.drup basic.drup.expected)))