run all kinds of tests via tests.sh/runtime

while there also change the dependency in the makefile: iri_test should
be alone, not as deps of `data'.
This commit is contained in:
Omar Polo 2021-12-09 19:02:09 +00:00
parent ea47a245aa
commit 5741561d57
3 changed files with 14 additions and 4 deletions

View File

@ -6,12 +6,10 @@ include ../Makefile.local
.PHONY: all data clean runtime
all: data gg puny-test fcgi-test
./puny-test
./iri_test
all: data gg puny-test iri_test fcgi-test
./runtime ${TESTS}
data: testdata iri_test cert.pem testca.pem valid.crt invalid.cert.pem
data: testdata cert.pem testca.pem valid.crt invalid.cert.pem
gg: gg.o ../iri.o ../utf8.o ${COMPAT}
${CC} gg.o ../iri.o ../utf8.o ${COMPAT} -o $@ ${LDFLAGS}

View File

@ -25,6 +25,8 @@ if [ $# -ne 0 ]; then
tests_done
fi
run_test test_punycode
run_test test_iri
run_test test_configless_mode
run_test test_static_files
run_test test_directory_redirect

View File

@ -1,3 +1,13 @@
test_punycode() {
dont_check=yes
./puny-test
}
test_iri() {
dont_check=yes
./iri_test
}
test_configless_mode() {
dont_check=yes