Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add regression test for ITree.iter fix; simplify organization o…
…f tests
- Loading branch information
Showing
6 changed files
with
35 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
-Q ../theories ITree | ||
-Q extraction/ TestExtraction | ||
-Q unit/ TestUnit | ||
-Q src/ ITreeTest | ||
|
||
src/Tests.v | ||
|
||
# Test to ensure extracted code is compilable | ||
# - MetaModule.v is a module that depends on the | ||
# ITree library | ||
# - Extract.v contains the extraction command for | ||
# MetaModule (and recursively its dependencies) | ||
# The ocamlbuild command is in Makefile | ||
|
||
extraction/MetaModule.v | ||
extraction/Extract.v | ||
|
||
# Unit tests | ||
|
||
unit/Unit.v | ||
src/MetaModule.v | ||
src/Extract.v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set -xe | ||
cd output/ | ||
|
||
ocamlbuild test.native | ||
./test.native | ||
|
||
ocamlbuild MetaModule.native | ||
./MetaModule.native | ||
# This executable should do absolutely nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Require TestExtraction.MetaModule. | ||
Require ITreeTest.MetaModule. | ||
|
||
Require Extraction. | ||
|
||
Extraction Language OCaml. | ||
Extraction Blacklist String List Char Core Z. | ||
|
||
Cd "extraction". | ||
Cd "output". | ||
Recursive Extraction Library MetaModule. | ||
Cd "..". |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters