mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-27 01:15:07 +03:00
Adds regression test for dumptests.
This only checks that a function with signature [32] -> [32] -> [32] will succeed with the :dumptests command. More tests could/should be added. Since this test creates a file called add32.out, I added tests/regression/*.out to the .gitignore. I'm not sure if this is the right approach or if we should make an attempt to clean up this subdirectory after the tests finish.
This commit is contained in:
parent
ec5a50436a
commit
fdd7aab01a
1
.gitignore
vendored
1
.gitignore
vendored
@ -30,3 +30,4 @@ cryptol-2.*
|
||||
# ignore test suite output
|
||||
/bin
|
||||
/output
|
||||
/tests/regression/*.out
|
||||
|
2
tests/regression/dumptests.cry
Normal file
2
tests/regression/dumptests.cry
Normal file
@ -0,0 +1,2 @@
|
||||
add32 : [32] -> [32] -> [32]
|
||||
add32 x y = x + y
|
3
tests/regression/dumptests.icry
Normal file
3
tests/regression/dumptests.icry
Normal file
@ -0,0 +1,3 @@
|
||||
:set tests=100
|
||||
:l dumptests.cry
|
||||
:dumptests add32.out add32
|
3
tests/regression/dumptests.icry.stdout
Normal file
3
tests/regression/dumptests.icry.stdout
Normal file
@ -0,0 +1,3 @@
|
||||
Loading module Cryptol
|
||||
Loading module Cryptol
|
||||
Loading module Main
|
Loading…
Reference in New Issue
Block a user