aboutsummaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-10-31 22:53:16 +0000
committerOmar Polo <op@omarpolo.com>2022-10-31 22:53:16 +0000
commit4b93be289bc141a15484e782c85020b62b878ec2 (patch)
treea953b6d70de69dc26894d1130edc7d7323c8c3dd /regress
parent21cf735f37d3b5792112e02b58735d69ce18998b (diff)
rework `make dist'
Diffstat (limited to 'regress')
-rw-r--r--regress/Makefile27
1 files changed, 26 insertions, 1 deletions
diff --git a/regress/Makefile b/regress/Makefile
index 57013bf..5194636 100644
--- a/regress/Makefile
+++ b/regress/Makefile
@@ -2,11 +2,30 @@
# all.
TESTS=
+DISTFILES = Makefile \
+ env \
+ err \
+ example.mime.types \
+ fcgi-test.c \
+ fill-file.c \
+ hello \
+ invalid \
+ iri_test.c \
+ lib.sh \
+ max-length-reply \
+ puny-test.c \
+ regress \
+ serve-bigfile \
+ sha \
+ slow \
+ tests.sh \
+ valid.ext
+
include ../Makefile.local
COMPAT= ${COBJS:%=../%}
-.PHONY: all data clean regress
+.PHONY: all data clean dist
all: data puny-test iri_test fcgi-test
./regress ${TESTS}
@@ -87,3 +106,9 @@ testdata: fill-file
cp hello testdata/dir
cp testdata/index.gmi testdata/dir/foo.gmi
touch testdata/test.m3u8 testdata/foo.1
+
+dist: ${DISTFILES}
+ mkdir -p ${DESTDIR}/
+ ${INSTALL} -m 0644 ${DISTFILES} ${DESTDIR}/
+ cd ${DESTDIR}/ && chmod +x env err hello invalid \
+ max-length-reply regress sha slow