aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_archive_bzip2.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_bzip2.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_bzip2.sh')
-rwxr-xr-xtest/test_archive_bzip2.sh10
1 files changed, 10 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" -