aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-01-04 18:40:28 +0200
committerLasse Collin <lasse.collin@tukaani.org>2023-01-04 23:17:09 +0200
commit34a9c2d650d6c30bd88e1b21910dd863209aa884 (patch)
tree25d76832c192ad8619ac748d1613c8443a744410
parentTests: Replace non portable shell parameter expansion (diff)
downloadxz-34a9c2d650d6c30bd88e1b21910dd863209aa884.tar.xz
Tests: Adjust style in test_compress.sh.
-rwxr-xr-xtests/test_compress.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/test_compress.sh b/tests/test_compress.sh
index 361903a7..61d20ce9 100755
--- a/tests/test_compress.sh
+++ b/tests/test_compress.sh
@@ -84,15 +84,17 @@ XZDEC="../src/xzdec/xzdec" # No memory usage limiter available
test -x ../src/xzdec/xzdec || XZDEC=
# Create the required input file if needed.
-FILE=$1
+#
# Derive temporary filenames for compressed and uncompressed outputs
# from the input filename. This is needed when multiple tests are
# run in parallel.
+FILE=$1
TMP_COMP="tmp_comp_$FILE"
TMP_UNCOMP="tmp_uncomp_$FILE"
+
case $FILE in
-# compress_generated files will be created in the build directory
-# in the /tests/ sub-directory.
+ # compress_generated files will be created in the build directory
+ # in the /tests/ sub-directory.
compress_generated_*)
if ./create_compress_files "$FILE" ; then
:
@@ -102,8 +104,8 @@ case $FILE in
exit 1
fi
;;
-# compress_prepared files exist in the source directory since they
-# do not need to be copied or regenerated.
+ # compress_prepared files exist in the source directory since they
+ # do not need to be copied or regenerated.
compress_prepared_*)
FILE="$srcdir/$FILE"
;;