tests: converted to Makefiles

This commit is contained in:
2024-08-02 17:29:30 -06:00
parent 94873a2ddc
commit ce8a0a5be3
20 changed files with 249 additions and 194 deletions

View File

@@ -31,6 +31,13 @@ RUSTLIBS = --extern getopt=build/o/libgetopt.rlib \
--extern strerror=build/o/libstrerror.rlib
CFLAGS += -I$(SYSEXITS)
# testing requires the absolute path to the bin directory set
BIN = build/bin
include tests/tests.mk
.PHONY: default
default: all test
.PHONY: all
all: dj false fop hru intcmp mm npc rpn scrut str strcmp swab true
@@ -53,8 +60,8 @@ install: dist
cp -r $(DESTDIR)/* /
.PHONY: test
test: all build /tmp/getopt
tests/test.sh
test: all $(TESTS) /tmp/getopt
@echo $(TESTS)
/tmp/getopt
/tmp/getopt: src/libgetopt.rs