1 include ../Makefile.local
3 .PHONY: all clean runtime
8 iri_test: iri_test.o ../iri.o ../utf8.o
9 ${CC} iri_test.o ../iri.o ../utf8.o -o iri_test ${LDFLAGS}
13 # XXX: key size is NOT GOOD. This is only for testing. Smaller keys
14 # are quicker to generate. DON'T DO THIS AT HOME.
16 printf ".\n.\n.\n.\n.\nlocalhost\n.\n" | \
17 openssl req -x509 -newkey rsa:1024 \
24 rm -f *.o iri_test cert.pem key.pem
29 ./genbigfile testdata/bigfile
30 ./sha testdata/bigfile testdata/bigfile.sha
31 printf "# hello world\n" > testdata/index.gmi
32 ./sha testdata/index.gmi testdata/index.gmi.sha
33 cp hello slow err testdata/
35 cp testdata/index.gmi testdata/dir/foo.gmi
37 runtime: testdata cert.pem