Skip to content

Commit b6fc2d0

Browse files
committed
Add Apron and No-Apron test for sparseMatrix
1 parent 0bbba47 commit b6fc2d0

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

tests/unit/dune

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22

33
(test
44
(name mainTest)
5-
(libraries ounit2 qcheck-ounit goblint.std goblint.common goblint.lib goblint.constraint goblint.solver goblint.cdomain.value)
5+
(libraries ounit2 qcheck-ounit goblint.std goblint.common goblint.lib goblint.constraint goblint.solver goblint.cdomain.value
6+
(select sparseMatrixImplementationTest.ml from
7+
(apron -> sparseMatrixImplementationTest.apron.ml)
8+
(-> sparseMatrixImplementationTest.no-apron.ml)
9+
)
10+
)
611
(preprocess (pps ppx_deriving.std ppx_deriving_hash ppx_deriving_yojson))
712
(flags :standard -linkall))
813

914
(env
1015
(dev
1116
(flags (:standard -warn-error -A -w -unused-var-strict)) ; https://dune.readthedocs.io/en/stable/faq.html#how-to-make-warnings-non-fatal
1217
)
13-
)
18+
)

tests/unit/cdomains/affineEqualityDomain/sparseImplementation/sparseMatrixImplementationTest.ml renamed to tests/unit/sparseMatrixImplementationTest.apron.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ let get_col_upper_triangular _ =
345345
assert_equal expected result
346346

347347
let test () =
348-
"SparseMatrixImplementationTest"
348+
"SparseMatrixImplementationTest-Apron"
349349
>::: [
350350
"can solve a standard normalization" >:: standard_normalize;
351351
"does sort already reduzed" >:: does_just_sort;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
open OUnit2
2+
3+
(* Note:
4+
There are currently no tests independent of apron.
5+
The .apron tests use apron's Mpqf module as an implementation of RatOps.
6+
There are currently no other RatOps implementations, so this file is empty.
7+
*)
8+
let test () =
9+
"SparseMatrixImplementationTest-No-Apron"
10+
>::: [
11+
]

0 commit comments

Comments
 (0)