ref: c4afc52929251f46552f59b7740d563d1dc5c65e
parent: 34eee09f621a7e603baf6f0a58cd3c96ad745f88
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Fri Nov 17 12:25:45 EST 2023
More test
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,8 @@
#
.PHONY: clean bootstrap install ghcgen
+all: bin/gmhs
+
# Compile mhs from distribution, with C compiler
bin/mhs: src/runtime/eval.c src/runtime/config*.h #generated/mhs.c
@mkdir -p bin
@@ -89,3 +91,12 @@
@echo "*** Set environment variable MHSDIR to $(PREFIX)/lib/mhs"
@echo "***"
+everytest: runtest bootcombtest
+
+runtest: bin/mhseval bin/gmhs tests/*.hs
+ cd tests; make alltest
+
+bootcombtest: bin/gmhs bin/mhseval
+ bin/gmhs -ilib -isrc -ogmhs.comb MicroHs.Main
+ bin/mhseval +RTS -v -rgmhs.comb -RTS -ilib -isrc -omhs.comb MicroHs.Main
+ cmp gmhs.comb mhs.comb
--
⑨