Skip to content

Commit

Permalink
Actually add and run the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bclement-ocp committed Jun 27, 2023
1 parent 9cee78c commit f712cc7
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rsc/extra/pre-commit--git-hook
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ if [[ $errors -ne 0 ]]; then
fi

# If there are whitespace errors, print the offending file names and fail.
exec git diff-index --check --cached $against --
exec git diff-index --check --cached $against -- ':!*.t' ':!*.expected'
30 changes: 30 additions & 0 deletions tests/models/bool/bool1.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

unknown
(

; Functions

; Constants

; Arrays not yet supported


)

unknown
(

; Functions

; Constants

(define-fun p () Bool true)

(define-fun q () Bool true)

(define-fun nq () Bool true)

; Arrays not yet supported


)
12 changes: 12 additions & 0 deletions tests/models/bool/bool2.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

unknown
(

; Functions

; Constants

; Arrays not yet supported


)
18 changes: 18 additions & 0 deletions tests/models/uf/uf1.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

unknown
(

; Functions

(define-fun f ((arg_0 Int)) Int 0)

; Constants

(define-fun a () Int 0)

(define-fun b () Int 0)

; Arrays not yet supported


)
18 changes: 18 additions & 0 deletions tests/models/uf/uf2.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

unknown
(

; Functions

(define-fun f ((arg_0 Int)) Int (ite (= arg_0 a) 2 0))

; Constants

(define-fun a () Int 0)

(define-fun b () Int (- 2))

; Arrays not yet supported


)
2 changes: 1 addition & 1 deletion tools/gentest.ml
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ let () =
; "--sat-solver=Tableaux"
; "--interpretation=last"
; timelimit ])
; ("runtest-quick", "models_ci",
; ("runtest-ci", "models_ci",
[ "--output=smtlib2"
; "--frontend=dolmen"
; "--sat-solver=Tableaux"
Expand Down

0 comments on commit f712cc7

Please sign in to comment.