summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 16:10:15 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 16:10:15 +0000
commitaf501f6c192faeb810b4dfb587ef6206a95b2446 (patch)
tree536cc0b864f878fec3812d3f46aa41f00933a504 /testsuite
parentAdding upstream version 0.2. (diff)
downloadzutils-af501f6c192faeb810b4dfb587ef6206a95b2446.tar.xz
zutils-af501f6c192faeb810b4dfb587ef6206a95b2446.zip
Adding upstream version 0.3.upstream/0.3
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/check.sh31
1 files changed, 20 insertions, 11 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh
index 5d20086..dbbf076 100755
--- a/testsuite/check.sh
+++ b/testsuite/check.sh
@@ -45,12 +45,25 @@ for i in ${extensions}; do
echo -n .
done
+"${ZCAT}" in > copy || fail=1
+cmp in copy || fail=1
+echo -n .
"${ZCAT}" in in.gz in.bz2 in.lz -- -in- > copy5 || fail=1
cmp in5 copy5 || fail=1
echo -n .
for i in ${extensions}; do
+ "${ZDIFF}" --cmp in.$i || fail=1
+ echo -n .
+ "${ZDIFF}" --cmp in in.$i || fail=1
+ echo -n .
+ "${ZDIFF}" --cmp in.$i in || fail=1
+ echo -n .
+done
+
+
+for i in ${extensions}; do
"${ZDIFF}" in.$i || fail=1
echo -n .
"${ZDIFF}" in in.$i || fail=1
@@ -82,26 +95,22 @@ echo -n .
for i in ${extensions}; do
- "${ZDIFF}" --cmp in.$i || fail=1
- echo -n .
- "${ZDIFF}" --cmp in in.$i || fail=1
- echo -n .
- "${ZDIFF}" --cmp in.$i in || fail=1
- echo -n .
-done
-
-
-for i in ${extensions}; do
"${ZGREP}" License in.$i 2>&1 > /dev/null || fail=1
echo -n .
done
+"${ZGREP}" License in 2>&1 > /dev/null || fail=1
+echo -n .
+"${ZGREP}" License -- -in- 2>&1 > /dev/null || fail=1
+echo -n .
+"${ZGREP}" License -- -in-.lz 2>&1 > /dev/null || fail=1
+echo -n .
"${ZGREP}" License in in.gz in.bz2 in.lz -- -in- 2>&1 > /dev/null || fail=1
echo -n .
echo
-if test ${fail} = 0; then
+if [ ${fail} = 0 ]; then
echo "tests completed successfully."
cd "${objdir}" && rm -r tmp
else