summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile14
-rw-r--r--src/test/run_tests.ml7
-rw-r--r--src/test/test1.sail1
3 files changed, 10 insertions, 12 deletions
diff --git a/src/Makefile b/src/Makefile
index 59f9165c..4ecf9ba7 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,15 +1,7 @@
-.PHONY: all test clean
+.PHONY: all clean
-all: main.native test
-
-.PHONY: main.native
-main.native:
- ocamlbuild main.native
-
-TESTS=test/test1.native
-
-test:
- ocamlbuild $(TESTS)
+all:
+ ocamlbuild main.native test/run_tests.native
clean:
-ocamlbuild -clean
diff --git a/src/test/run_tests.ml b/src/test/run_tests.ml
new file mode 100644
index 00000000..56dd88c9
--- /dev/null
+++ b/src/test/run_tests.ml
@@ -0,0 +1,7 @@
+let tests = [
+ "test1", Test1.defs;
+] ;;
+
+let run_all () = List.iter Run_interp.run tests ;;
+
+run_all () ;;
diff --git a/src/test/test1.sail b/src/test/test1.sail
index 29f479d6..e3a98e3f 100644
--- a/src/test/test1.sail
+++ b/src/test/test1.sail
@@ -10,4 +10,3 @@ typedef maybe = const union forall a. { unit None; a Some; }
typedef colors = enumerate { red; green; blue }
typedef creg = register bits [5:i] { 5 : h ; 6..7 : j}
let bool e = true
-let unit x = main ()