diff options
author | Max Kellermann <max@duempel.org> | 2009-12-31 11:11:14 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-12-31 15:50:59 +0100 |
commit | a0384aaead1427e9f7bd3643c4149371d687e53d (patch) | |
tree | 7a60322cedc1fb3af7c01ad773053ea2fe33f7a9 /test | |
parent | efc885a9dc2e6632ca2a24a0ff52ab51bb1d82d1 (diff) | |
download | mpd-a0384aaead1427e9f7bd3643c4149371d687e53d.tar.gz mpd-a0384aaead1427e9f7bd3643c4149371d687e53d.tar.xz mpd-a0384aaead1427e9f7bd3643c4149371d687e53d.zip |
Makefile.am: added unit tests for the archive plugins
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_archive_bzip2.sh | 10 | ||||
-rwxr-xr-x | test/test_archive_iso9660.sh | 10 | ||||
-rwxr-xr-x | test/test_archive_zzip.sh | 10 |
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" - |