tests: converted to Makefiles
This commit is contained in:
11
Makefile
11
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user