1.1 --- a/test_files/mk_e2test.sh Fri Jun 17 23:36:03 2022 +0200
1.2 +++ b/test_files/mk_e2test.sh Fri Jun 17 23:54:54 2022 +0200
1.3 @@ -31,18 +31,19 @@
1.4 fi
1.5
1.6 PKGDIR=$(realpath "$1")
1.7 -PROGRAMS_DIR=$(realpath "$2")
1.8 -E2ACCESS_DIR=$(realpath "$3")
1.9 -TARGET=$(realpath "$4")
1.10 +E2ACCESS_DIR=$(realpath "$2")
1.11 +TARGET=$(realpath "$3")
1.12
1.13 -if [ ! -e "$PKGDIR" ] || [ ! -e "$PROGRAMS_DIR" ] || [ ! -e "$E2ACCESS_DIR" ] || [ ! "$TARGET" ] ; then
1.14 +shift 3
1.15 +
1.16 +if [ ! -e "$PKGDIR" ] || [ ! -e "$E2ACCESS_DIR" ] || [ ! "$TARGET" ] ; then
1.17 cat 1>&2 <<EOF
1.18 -Usage: $PROGNAME [ -q ] <package directory> <programs directory> <e2access directory> <target>
1.19 +Usage: $PROGNAME [ -q ] <package directory> <e2access directory> <target> [ <program> ... ]
1.20
1.21 Package directory: $PKGDIR
1.22 -Programs directory: $PROGRAMS_DIR
1.23 e2access directory: $E2ACCESS_DIR
1.24 Target filesystem: $TARGET
1.25 +Programs: $*
1.26 EOF
1.27 exit 1
1.28 fi
1.29 @@ -110,7 +111,9 @@
1.30
1.31 # Put some programs in the same place.
1.32
1.33 -cp "$PROGRAMS_DIR/dstest_"* .
1.34 +for PROGRAM in $* ; do
1.35 + cp $(realpath "$PROGRAM") .
1.36 +done
1.37
1.38 # Leave the filesystem root.
1.39