aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_archive_zzip.sh
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-31 11:11:14 +0100
committerMax Kellermann <max@duempel.org>2009-12-31 15:50:59 +0100
commita0384aaead1427e9f7bd3643c4149371d687e53d (patch)
tree7a60322cedc1fb3af7c01ad773053ea2fe33f7a9 /test/test_archive_zzip.sh
parentefc885a9dc2e6632ca2a24a0ff52ab51bb1d82d1 (diff)
downloadmpd-a0384aaead1427e9f7bd3643c4149371d687e53d.tar.gz
mpd-a0384aaead1427e9f7bd3643c4149371d687e53d.tar.xz
mpd-a0384aaead1427e9f7bd3643c4149371d687e53d.zip
Makefile.am: added unit tests for the archive plugins
Diffstat (limited to 'test/test_archive_zzip.sh')
-rwxr-xr-xtest/test_archive_zzip.sh10
1 files changed, 10 insertions, 0 deletions
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" -