X-Git-Url: https://git.xandkar.net/?p=tiger.ml.git;a=blobdiff_plain;f=compiler%2FMakefile;h=0cb89eb5730fde66de34604d4166b3cf82fb1486;hp=9feaa76f9c6c625762c4cec9b693948a523a3364;hb=fca49f4f3908de86d5895b6a8708216fbb4dd529;hpb=8e47ed20c781e65940089e6f71e9a8ac6ea27d73 diff --git a/compiler/Makefile b/compiler/Makefile index 9feaa76..0cb89eb 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -1,5 +1,7 @@ MAKEFLAGS := --no-builtin-rules +DIR_TEST_CASES := ./testcases + EXE_TYPE := native # byte | native EXECUTABLES := tigerc tigert OCAMLBUILD_FLAGS_PKGS := -pkg unix @@ -17,6 +19,9 @@ OCAMLBUILD := \ all \ build \ clean \ + test_all \ + test_book \ + test_micro \ test all: clean @@ -32,5 +37,13 @@ clean: @$(OCAMLBUILD) -clean @rm -rf ./bin -test: build - @./bin/exe/tigert +test: test_all + +test_all: build + @./bin/exe/tigert all -dir $(DIR_TEST_CASES) + +test_book: build + @./bin/exe/tigert book -dir $(DIR_TEST_CASES) + +test_micro: build + @./bin/exe/tigert micro