Replace another instance of realpath; add quiet test on platforms

This commit is contained in:
Stephane Peter
2023-03-11 20:16:41 -08:00
parent 44b91a2e37
commit 159120e689
2 changed files with 6 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ doInfoListCheckExec() {
# rest : content basenames
assertFileContains() {
local file_name=""
file_name="$(realpath "$1")"
file_name="$(readlink -f "$1")"
shift
local target="${file_name}.d"
rm -rf "${target}"
@@ -55,7 +55,7 @@ doTestOpts() {
"${file_name}" \
"${stem}" \
"echo ${stem}"
file_name="$(realpath ${file_name})"
file_name="$(readlink -f ${file_name})"
doInfoListCheckExec "${file_name}"
assertFileContains "${file_name}" "fee\nfie"

View File

@@ -12,6 +12,10 @@ uname -a
cd "$THISDIR"
# Try a quiet run
sh "../build-ubuntu/makeself-$VERSION.run" --quiet --target ./tmp/makeself-ubuntu
# Regular runs
sh "../build-ubuntu/makeself-$VERSION.run" --target ./tmp/makeself-ubuntu
sh "../build-alpine/makeself-$VERSION.run" --target ./tmp/makeself-alpine
sh "../build-windows/makeself-$VERSION.run" --target ./tmp/makeself-windows