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.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/yuv-roundtrip.test b/test/yuv-roundtrip.test
new file mode 100755
index 00000000..e339b418
--- /dev/null
+++ b/test/yuv-roundtrip.test
@@ -0,0 +1,10 @@
+#! /bin/bash
+# This script tests: ppmtoyuv yuvtoppm
+# Also requires: pamgradient
+
+
+# Should produce 1904478375 253455
+
+pamgradient rgb:00/ff/ff rgb:ff/ff/00 \
+                            rgb:ff/00/00 rgb:00/ff/00 352 240 | \
+    ppmtoyuv | yuvtoppm 352 240 | cksum