mirror of
https://github.com/janet-lang/janet
synced 2026-10-04 06:41:41 +00:00
Add some tests for the amalgamated source/
Adds tests to Makefile and CI on Poisx platforms.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user