From 91da2eec88a22ab89f9d8c268a64d04609b3bf84 Mon Sep 17 00:00:00 2001 From: kitty Date: Tue, 21 Apr 2026 15:05:17 +1000 Subject: run tests from makefile and clarify license --- Makefile | 4 ++++ readme.md | 7 +++++++ test.fs | 8 ++++++++ 3 files changed, 19 insertions(+) create mode 100644 test.fs diff --git a/Makefile b/Makefile index 24ae28f..40d1efa 100644 --- a/Makefile +++ b/Makefile @@ -13,3 +13,7 @@ $(TARGET).o: $(SRCS) $(FTHS) .PHONY: clean clean: -rm -f $(TARGET) $(TARGET).o + +.PHONY: test +test: $(TARGET) + echo 'include test.fs bye' | ./$(TARGET) diff --git a/readme.md b/readme.md index c71c00c..e6491a5 100644 --- a/readme.md +++ b/readme.md @@ -837,3 +837,10 @@ but it diverges in a few notable places: - the dynamic allocation `free` word requires a length. this is because munmap requires a length. - `abort"` does not take a flag and always executes. + +## license + +public domain. +although: a modified version of john hayes' test suite is used +which is under 'distribute but you have to include the copyright notice' +it's included in the source diff --git a/test.fs b/test.fs new file mode 100644 index 0000000..a0544d3 --- /dev/null +++ b/test.fs @@ -0,0 +1,8 @@ +\ tests +\ (C) 1995 JOHNS HOPKINS UNIVERSITY / APPLIED PHYSICS LABORATORY +\ MAY BE DISTRIBUTED FREELY AS LONG AS THIS COPYRIGHT NOTICE REMAINS. +\ ↑ some of the tests are lifted from the test suite. +\ no point in coming up with my own when this is here + +true verbose ! +testing peepee bullshit -- cgit v1.2.3