about summary refs log tree commit diff
path: root/test/pgmhist.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pgmhist.test')
-rwxr-xr-xtest/pgmhist.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/pgmhist.test b/test/pgmhist.test
new file mode 100755
index 00000000..42666fbf
--- /dev/null
+++ b/test/pgmhist.test
@@ -0,0 +1,12 @@
+#! /bin/bash
+# This script tests: pgmhist
+# Also requires: pgmramp
+
+
+# Ignore differences in spaces.
+
+pgmramp -maxval=8 -lr 8 2 | pgmhist | \
+  sed -e 's/  */ /g' -e 's/ *$//'
+
+pgmhist testgrid.pbm | \
+  sed -e 's/  */ /g' -e 's/ *$//'