add cram based unit tests
[project/fwtool.git] / tests / cram / test_crc32.t
diff --git a/tests/cram/test_crc32.t b/tests/cram/test_crc32.t
new file mode 100644 (file)
index 0000000..9102336
--- /dev/null
@@ -0,0 +1,13 @@
+set PATH for convenience:
+
+  $ [ -n "$TEST_CRC32" ] && export PATH="$(dirname "$TEST_CRC32"):$PATH"
+  $ alias test-crc32='valgrind --quiet --leak-check=full test-crc32'
+
+check that crc32 is producing expected results:
+
+  $ test-crc32
+  all_ffs=0x44f33105
+  all_7fs=0x3726dda7
+  all_ones=0xbea1dbe8
+  all_zeroes=0xa77a69f2
+  quick_fox=0x7c7180f2