miniupnpc/testminiwget.sh / testupnpreplyparse.sh: allow to define executables

This commit is contained in:
Thomas Bernard 2022-10-21 22:45:46 +02:00
parent 2eecb06eb0
commit fef6d4d17c
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
2 changed files with 11 additions and 5 deletions

View File

@ -2,7 +2,8 @@
# $Id: testminiwget.sh,v 1.18 2020/05/29 21:14:22 nanard Exp $
# vim: tabstop=4 shiftwidth=4 noexpandtab
# project miniupnp : http://miniupnp.free.fr/
# (c) 2011-2019 Thomas Bernard
# or https://miniupnp.tuxfamily.org/
# (c) 2011-2022 Thomas Bernard
#
# test program for miniwget.c
# is usually invoked by "make check"
@ -17,8 +18,12 @@
# it should now also run with dash
TMPD=`mktemp -d -t miniwgetXXXXXXXXXX`
TESTSERVER=./build/minihttptestserver
TESTMINIWGET=./build/testminiwget
if [ -z "$TESTSERVER" ] ; then
TESTSERVER=./build/minihttptestserver
fi
if [ -z "$TESTMINIWGET" ] ; then
TESTMINIWGET=./build/testminiwget
fi
HTTPSERVEROUT="${TMPD}/httpserverout"
EXPECTEDFILE="${TMPD}/expectedfile"
DOWNLOADEDFILE="${TMPD}/downloadedfile"

View File

@ -1,6 +1,8 @@
#!/bin/sh
TESTUPNPREPLYPARSE=./build/testupnpreplyparse
if [ -z "$TESTUPNPREPLYPARSE" ] ; then
TESTUPNPREPLYPARSE=./build/testupnpreplyparse
fi
for f in testreplyparse/*.xml ; do
bf="`dirname $f`/`basename $f .xml`"
@ -13,4 +15,3 @@ for f in testreplyparse/*.xml ; do
done
exit 0