ref: 56fef7b22f015c1097cac4f7f8e009db4b865786
parent: 4f01480af85edf6d21cfc98ddf2882bd1d2f5aac
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Mon Nov 27 16:38:40 EST 2023
Test fixes.
--- a/.github/workflows/c-cpp.yml
+++ b/.github/workflows/c-cpp.yml
@@ -85,6 +85,9 @@
- name: make bootstrap
run: make CONF=unix-32 bootstrap
shell: alpine.sh {0}+ - name: make nfib
+ run: make CONF=unix-32 nfibtest
+ shell: alpine.sh {0}# segfaults :(
# - name: make everytestmhs
# run: make CONF=unix-32 everytestmhs
@@ -111,4 +114,7 @@
shell: alpine.sh {0}- name: make bootstrap
run: make CONF=unix-32 bootstrap
+ shell: alpine.sh {0}+ - name: make nfib
+ run: make CONF=unix-32 nfibtest
shell: alpine.sh {0}--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@
GHCPROF= # -prof -fprof-late #-prof -fprof-auto
GHCFLAGS= $(GHCEXTS) $(GHCINCS) $(GHCWARNS) $(GHCOPTS) $(GHCTOOL) $(GHCPKGS) $(GHCOUT) $(GHCPROF)
#
-.PHONY: clean bootstrap install ghcgen newmhs cachelib timecompile exampletest cachetest runtest runtestmhs everytest everytestmhs
+.PHONY: clean bootstrap install ghcgen newmhs cachelib timecompile exampletest cachetest runtest runtestmhs everytest everytestmhs nfibtest
all: bin/mhs
@@ -109,10 +109,10 @@
everytest: runtest exampletest cachetest bootcombtest
-everytestmhs: bin/mhs bin/mhseval exampletest cachetest bootstrap runtestmhs
+everytestmhs: bin/mhs bin/mhseval exampletest cachetest bootstrap runtestmhs nfibtest
runtestmhs:
- cd tests; make MHS=../bin/mhs cache; make MHS="../bin/mhs -c" test nfib
+ cd tests; make MHS=../bin/mhs cache; make MHS="../bin/mhs -c" test
bootcombtest: bin/gmhs bin/mhseval
bin/gmhs -ilib -isrc -ogmhs.comb MicroHs.Main
@@ -129,3 +129,6 @@
bin/mhs -c AllOfLib
bin/mhs -c Example && bin/mhseval
rm -f .mhscache
+
+nfibtest: bin/mhs bin/mhseval
+ bin/mhs -itests Nfib && bin/mhseval
--- a/Makefile.windows
+++ b/Makefile.windows
@@ -17,4 +17,4 @@
bin\mhs -r Example
bin\mhs Example && bin\mhseval
# bin\mhs Example -oEx.exe && Ex && rm Ex.exe
- bin\mhs -i tests Nfib && bin\mhseval
+ bin\mhs -itests Nfib && bin\mhseval
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -3,7 +3,7 @@
EVAL=../bin/mhseval
.PHONY: test nfib clean errtest alltest cache
-alltest: test errtest nfib
+alltest: test errtest
cache:
rm -f .mhscache
--
⑨