summaryrefslogtreecommitdiffstats
path: root/tests/cpio_test.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpio_test.in')
-rw-r--r--tests/cpio_test.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/cpio_test.in b/tests/cpio_test.in
new file mode 100644
index 0000000..5742cf1
--- /dev/null
+++ b/tests/cpio_test.in
@@ -0,0 +1,16 @@
+#!@BUILD_SHEBANG@
+
+set -e
+
+if ! which cpio >/dev/null 2>&1; then
+ echo "cpio not installed; cannot test cpio."
+ exit 77
+fi
+
+"@builddir@/grub-fs-tester" cpio_bin
+"@builddir@/grub-fs-tester" cpio_odc
+"@builddir@/grub-fs-tester" cpio_newc
+"@builddir@/grub-fs-tester" cpio_crc
+"@builddir@/grub-fs-tester" cpio_ustar
+"@builddir@/grub-fs-tester" cpio_hpbin
+"@builddir@/grub-fs-tester" cpio_hpodc