about summary refs log tree commit diff
path: root/test/yuv-roundtrip.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/yuv-roundtrip.test')
-rwxr-xr-xtest/yuv-roundtrip.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/yuv-roundtrip.test b/test/yuv-roundtrip.test
new file mode 100755
index 00000000..c160c480
--- /dev/null
+++ b/test/yuv-roundtrip.test
@@ -0,0 +1,8 @@
+#! /bin/bash
+# This script tests: ppmtoyuv yuvtoppm
+# Also requires: pamgradient
+
+# Should produce 1904478375 253455
+
+${PBM_BINPREFIX}pamgradient cyan yellow red green 352 240 | \
+    ${PBM_TESTPREFIX}ppmtoyuv | ${PBM_TESTPREFIX}yuvtoppm 352 240 | cksum