summaryrefslogtreecommitdiffstats
path: root/storage/tokudb/PerconaFT/third_party/xz-4.999.9beta/tests/test_files.sh
diff options
context:
space:
mode:
Diffstat (limited to 'storage/tokudb/PerconaFT/third_party/xz-4.999.9beta/tests/test_files.sh')
-rwxr-xr-xstorage/tokudb/PerconaFT/third_party/xz-4.999.9beta/tests/test_files.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/storage/tokudb/PerconaFT/third_party/xz-4.999.9beta/tests/test_files.sh b/storage/tokudb/PerconaFT/third_party/xz-4.999.9beta/tests/test_files.sh
new file mode 100755
index 00000000..7dd9a390
--- /dev/null
+++ b/storage/tokudb/PerconaFT/third_party/xz-4.999.9beta/tests/test_files.sh
@@ -0,0 +1,33 @@
+#/bin/sh
+
+###############################################################################
+#
+# Author: Lasse Collin
+#
+# This file has been put into the public domain.
+# You can do whatever you want with this file.
+#
+###############################################################################
+
+for I in "$srcdir"/files/good-*.xz
+do
+ if ../src/xzdec/xzdec "$I" > /dev/null 2> /dev/null ; then
+ :
+ else
+ echo "Good file failed: $I"
+ (exit 1)
+ exit 1
+ fi
+done
+
+for I in "$srcdir"/files/bad-*.xz
+do
+ if ../src/xzdec/xzdec "$I" > /dev/null 2> /dev/null ; then
+ echo "Bad file succeeded: $I"
+ (exit 1)
+ exit 1
+ fi
+done
+
+(exit 0)
+exit 0