1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Execute each test as make target. Remove the shell wrapper. Mark

failing test so that claudio@ can fix them.
This commit is contained in:
bluhm 2023-04-28 19:41:07 +00:00
parent 9a5480b53e
commit e6a9832747
2 changed files with 24 additions and 14 deletions

View File

@ -1,6 +1,27 @@
# $OpenBSD: Makefile,v 1.1 2023/04/28 16:28:28 claudio Exp $
# $OpenBSD: Makefile,v 1.2 2023/04/28 19:41:07 bluhm Exp $
regress:
sh ${.CURDIR}/runtests.sh ${.CURDIR}
# evaluate once in main make invocation, pass test list in environment
.if ! (make(clean) || make(cleandir) || make(obj))
RSYNC_TESTS ?!= ls -1 ${.CURDIR}/*.test
.MAKEFLAGS := RSYNC_TESTS="${RSYNC_TESTS}"
.endif
clean:
rm -rf dir* find*
# these fail permanently and should be investigated
REGRESS_EXPECTED_FAILURES = run-test11_middlediff \
run-test11b_middlediff \
run-test3_minusexclude \
run-test7_symlinks
# these fail randomly with Permission denied
# run-test6_perms
# run-test6b_perms
.for t in ${RSYNC_TESTS:T:R}
REGRESS_TARGETS += run-$t
run-$t:
tstdir=${.CURDIR} sh ${.CURDIR}/$t.test
.endfor
.include <bsd.regress.mk>

View File

@ -1,11 +0,0 @@
#!/bin/sh
for i in ${1}/*.test; do
echo $(basename ${i})
tstdir=${1} sh ${i}
if [ "$?" -eq "0" ]; then
echo OK
else
echo FAIL
fi
done