Add some tests for the amalgamated source/

Adds tests to Makefile and CI on Poisx platforms.
This commit is contained in:
Calvin Rose
2019-05-23 10:34:01 -04:00
parent b5e6c0b8fc
commit a303704a7d
6 changed files with 53 additions and 4 deletions
+10
View File
@@ -304,6 +304,16 @@ install: $(JANET_TARGET) build/version.txt
test-install:
cd test/install && rm -rf build && janet build && janet build
build/embed_janet.o: build/janet.c $(JANET_HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
build/embed_main.o: test/amalg/main.c $(JANET_HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
build/embed_test: build/embed_janet.o build/embed_main.o
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(CLIBS)
test-amalg: build/embed_test
./build/embed_test
uninstall:
-rm $(BINDIR)/../$(JANET_TARGET)
-rm -rf $(INCLUDEDIR)