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}
11 fill-file: fill-file.o
12 ${CC} fill-file.o -o fill-file
16 # XXX: key size is NOT GOOD. This is only for testing. Smaller keys
17 # are quicker to generate. DON'T DO THIS AT HOME.
19 printf ".\n.\n.\n.\n.\nlocalhost\n.\n" | \
20 openssl req -x509 -newkey rsa:2048 \
27 rm -f *.o iri_test cert.pem key.pem
32 ./fill-file testdata/bigfile
33 ./sha testdata/bigfile testdata/bigfile.sha
34 printf "# hello world\n" > testdata/index.gmi
35 ./sha testdata/index.gmi testdata/index.gmi.sha
36 cp hello slow err invalid testdata/
38 cp testdata/index.gmi testdata/dir/foo.gmi
40 runtime: testdata cert.pem