aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_archive_bzip2.sh10
-rwxr-xr-xtest/test_archive_iso9660.sh10
-rwxr-xr-xtest/test_archive_zzip.sh10
3 files changed, 30 insertions, 0 deletions
diff --git a/test/test_archive_bzip2.sh b/test/test_archive_bzip2.sh
new file mode 100755
index 000000000..2c45076aa
--- /dev/null
+++ b/test/test_archive_bzip2.sh
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+SRC_BASE=configure
+SRC="$(dirname $0)/../${SRC_BASE}"
+DST="$(pwd)/test/tmp/${SRC_BASE}.bz2"
+
+mkdir -p test/tmp
+rm -f "$DST"
+bzip2 -c "$SRC" >"$DST"
+./test/run_input "$DST/${SRC_BASE}" |diff "$SRC" -
diff --git a/test/test_archive_iso9660.sh b/test/test_archive_iso9660.sh
new file mode 100755
index 000000000..070d2da0a
--- /dev/null
+++ b/test/test_archive_iso9660.sh
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+SRC_BASE=configure
+SRC="$(dirname $0)/../${SRC_BASE}"
+DST="$(pwd)/test/tmp/${SRC_BASE}.iso"
+
+mkdir -p test/tmp
+rm -f "$DST"
+mkisofs -quiet -l -o "$DST" "$SRC"
+./test/run_input "$DST/${SRC_BASE}" |diff "$SRC" -
diff --git a/test/test_archive_zzip.sh b/test/test_archive_zzip.sh
new file mode 100755
index 000000000..a8d23f6d7
--- /dev/null
+++ b/test/test_archive_zzip.sh
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+SRC_BASE=configure
+SRC="$(dirname $0)/../${SRC_BASE}"
+DST="$(pwd)/test/tmp/${SRC_BASE}.zip"
+
+mkdir -p test/tmp
+rm -f "$DST"
+zip --quiet --junk-paths "$DST" "$SRC"
+./test/run_input "$DST/${SRC_BASE}" |diff "$SRC" -