add spec tests
This commit is contained in:
parent
40a612df95
commit
8c0abca85f
7 changed files with 143 additions and 0 deletions
22
tests/suite/Makefile
Normal file
22
tests/suite/Makefile
Normal file
|
@ -0,0 +1,22 @@
|
|||
.POSIX:
|
||||
|
||||
.SUFFIXES: .test .rs
|
||||
|
||||
TEST=$(shell find . -name '*.test' | sort)
|
||||
TEST_RS=${TEST:.test=.rs}
|
||||
|
||||
.PHONY: suite
|
||||
suite: mod.rs
|
||||
|
||||
mod.rs: ${TEST_RS}
|
||||
printf "" > $@
|
||||
for f in ${TEST}; do \
|
||||
name=$$(basename -s .test $$f); \
|
||||
echo "mod $$name;" >> $@; \
|
||||
done
|
||||
|
||||
.test.rs:
|
||||
awk -fgen.awk $< > $@
|
||||
|
||||
clean:
|
||||
rm -f *.rs
|
Loading…
Add table
Add a link
Reference in a new issue