Tests: Adjust style in test_compress.sh.
This commit is contained in:
parent
52380678f4
commit
aafd67fba0
|
@ -84,15 +84,17 @@ XZDEC="../src/xzdec/xzdec" # No memory usage limiter available
|
||||||
test -x ../src/xzdec/xzdec || XZDEC=
|
test -x ../src/xzdec/xzdec || XZDEC=
|
||||||
|
|
||||||
# Create the required input file if needed.
|
# Create the required input file if needed.
|
||||||
FILE=$1
|
#
|
||||||
# Derive temporary filenames for compressed and uncompressed outputs
|
# Derive temporary filenames for compressed and uncompressed outputs
|
||||||
# from the input filename. This is needed when multiple tests are
|
# from the input filename. This is needed when multiple tests are
|
||||||
# run in parallel.
|
# run in parallel.
|
||||||
|
FILE=$1
|
||||||
TMP_COMP="tmp_comp_$FILE"
|
TMP_COMP="tmp_comp_$FILE"
|
||||||
TMP_UNCOMP="tmp_uncomp_$FILE"
|
TMP_UNCOMP="tmp_uncomp_$FILE"
|
||||||
|
|
||||||
case $FILE in
|
case $FILE in
|
||||||
# compress_generated files will be created in the build directory
|
# compress_generated files will be created in the build directory
|
||||||
# in the /tests/ sub-directory.
|
# in the /tests/ sub-directory.
|
||||||
compress_generated_*)
|
compress_generated_*)
|
||||||
if ./create_compress_files "$FILE" ; then
|
if ./create_compress_files "$FILE" ; then
|
||||||
:
|
:
|
||||||
|
@ -102,8 +104,8 @@ case $FILE in
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
# compress_prepared files exist in the source directory since they
|
# compress_prepared files exist in the source directory since they
|
||||||
# do not need to be copied or regenerated.
|
# do not need to be copied or regenerated.
|
||||||
compress_prepared_*)
|
compress_prepared_*)
|
||||||
FILE="$srcdir/$FILE"
|
FILE="$srcdir/$FILE"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue