Round out the test suite
authorJason Self <j@jxself.org>
Mon, 25 Feb 2019 04:46:45 +0000 (20:46 -0800)
committerJason Self <j@jxself.org>
Mon, 25 Feb 2019 04:46:45 +0000 (20:46 -0800)
By adding tests for the remaining programs

30 files changed:
README
testing/Run_tests
testing/skein1024sum-0.command [new file with mode: 0644]
testing/skein1024sum-0.result [new file with mode: 0644]
testing/skein1024sum-echo-n.command [new file with mode: 0644]
testing/skein1024sum-echo-n.result [new file with mode: 0644]
testing/skein1024sum-echo.command [new file with mode: 0644]
testing/skein1024sum-echo.result [new file with mode: 0644]
testing/skein1024sum-short_file-stdio.command [new file with mode: 0644]
testing/skein1024sum-short_file-stdio.result [new file with mode: 0644]
testing/skein1024sum-short_file.command [new file with mode: 0644]
testing/skein1024sum-short_file.result [new file with mode: 0644]
testing/skein1024sum-short_file_b.command [new file with mode: 0644]
testing/skein1024sum-short_file_b.result [new file with mode: 0644]
testing/skein1024sum-unexisting.command [new file with mode: 0644]
testing/skein1024sum-unexisting.result [new file with mode: 0644]
testing/skein512sum-0.command [new file with mode: 0644]
testing/skein512sum-0.result [new file with mode: 0644]
testing/skein512sum-echo-n.command [new file with mode: 0644]
testing/skein512sum-echo-n.result [new file with mode: 0644]
testing/skein512sum-echo.command [new file with mode: 0644]
testing/skein512sum-echo.result [new file with mode: 0644]
testing/skein512sum-short_file-stdio.command [new file with mode: 0644]
testing/skein512sum-short_file-stdio.result [new file with mode: 0644]
testing/skein512sum-short_file.command [new file with mode: 0644]
testing/skein512sum-short_file.result [new file with mode: 0644]
testing/skein512sum-short_file_b.command [new file with mode: 0644]
testing/skein512sum-short_file_b.result [new file with mode: 0644]
testing/skein512sum-unexisting.command [new file with mode: 0644]
testing/skein512sum-unexisting.result [new file with mode: 0644]

diff --git a/README b/README
index efba2bc6641230fc165677f26cbc6d51e9781098..b2175fba81a16123b07ddd1b76d68f21100e86eb 100644 (file)
--- a/README
+++ b/README
@@ -5,6 +5,10 @@ or, at your option, any later version. See COPYING for details.
 First run autoreconf --install; then see the INSTALL file for 
 installation information.
 
+You may also wish to run the tests in the testing directory. This
+verifies that the programs are able to compute the correct hashes
+against the test suite.
+
 Once the software is installed, invoke skein256sum, skein512sum, or 
 skein1024sum with the --help option to see usage information.
 
index 5fd4b7fdbd696282c3ce538430f8a7ec9d9c3684..eedb8304343d45097df802666fd3ccb97fec09f2 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2015 Jason Self <j@jxself.org>
+# Copyright (C) 2015 2019 Jason Self <j@jxself.org>
 #
 # Copying and distribution of this file, with or without modification,
 # are permitted in any medium without royalty provided the copyright
@@ -15,7 +15,7 @@ for f in *.command; do
     t="$n.$(date +%Y-%m-%d-%H%M%S)"
     test -s "$r" || { echo "WARNING: missing $r"; continue; }
     sh "$f" > $t 2>&1
-    diff -U0 "$r" "$t" && { rm "$t"; continue; }
+    diff -U0 "$r" "$t" && { rm "$t"; echo "$n completed successfully." ; continue; }
     echo "ERROR: $n failed"
     exit 1
 done
diff --git a/testing/skein1024sum-0.command b/testing/skein1024sum-0.command
new file mode 100644 (file)
index 0000000..ac341bb
--- /dev/null
@@ -0,0 +1 @@
+../skein1024sum -0 a aa aaa b bb bbb
diff --git a/testing/skein1024sum-0.result b/testing/skein1024sum-0.result
new file mode 100644 (file)
index 0000000..99abb79
--- /dev/null
@@ -0,0 +1,6 @@
+6AB4C4BA9814A3D976EC8BFFA7FCC638CEBA0544A97B3C98411323FFD2DC936315D13DC93C13C4E88CDA6F5BAC6F2558B2D8694D3B6143E40D644AE43CA940685CB37F809D3D0550C56CBA8036DEE729A4F8FB960732E59E64D57F7F7710F8670963CDCDC95B41DAAB4855FCF8B6762A64B173EE61343A2C7689AF1D293EBA97 -a
+8A0BF2835A4A631F140F615E00CC35E05BDA4A97803E927CCAFB5BA88688A168D7894CAB7089CA04DE2257DD901CC89631EA2C2B91934A7A4ABA13BF8BCD786DCC3024346E8C370CC391EC091F3DBAAB0087B248641B6F90359B864978B83E4CC096F55E1931B0690248FF4A8A4C61A80F72BBA31D28ED4DD4A9095FD42D3751 -aa
+79772473A7EF1DB6FE3B293C41A208A82EF4EAA62F8312B307D0D810007D5D5ADAF42C3F2D8B79A44D7289F414E225BEE9E73D06A414B42F578A6D86644D06BFFEEF61A0279508544C570FD789ED973B906726F1072385C1262DC017F60DA804FF5B6AC83AC4BCF328171769BB9A86585E5C514A9AE6CA63D534279C23A880C9 -aaa
+4945D8CA309F79910773CFF5363BC6655303CC597D87F1729CA180BAE77622AC4C2B3E3759646DDB1D02E5AA834076A672563D7DADE88EE4B13B2E892D8C2847573244EA8B6760E33A71C89D16DDCA25E792A37D54FBA4158688E5F58F0211410431A3C1F8E96A19D346AF6C0458B2F921424CB524C06A34A0A94E1A0140657F -b
+8DD6820F4441BB022D6B8F52A27F487DFA435D9743E5B4110E854C45AE26B992A865D3A82352BA6991DD5A493596851E75A40401FEDDD87B34D12D3B8D21E3C9CB2263666CD730FAC1BE153BF9F861C8A5B8862D622D70181815F56AEE2F3AD7EC74C98C18060C891EFAB89DE9E5E20DA70E33B77AE06D86A042FCBC3789899C -bb
+3C27B0A853D383528277BA43953D9C2048265C3488C8E8A6ED9655B47B5EABF247FBE5B30C2DEFFF732C34260C0A4A0532E19E96CB2731A8BE10B09D97B30B8CD0054487D5D36AF7A99645378974E11AA6A0B52F9F1B3F1FDBC9F52D04390F36EE33C99508964820B31AA3D5FFEF3A0148FF5CA39F738FF464CE26A3CFB83BCD -bbb
diff --git a/testing/skein1024sum-echo-n.command b/testing/skein1024sum-echo-n.command
new file mode 100644 (file)
index 0000000..aff39e3
--- /dev/null
@@ -0,0 +1 @@
+echo -n | ../skein1024sum
diff --git a/testing/skein1024sum-echo-n.result b/testing/skein1024sum-echo-n.result
new file mode 100644 (file)
index 0000000..96a99f6
--- /dev/null
@@ -0,0 +1 @@
+0FFF9563BB3279289227AC77D319B6FFF8D7E9F09DA1247B72A0A265CD6D2A62645AD547ED8193DB48CFF847C06494A03F55666D3B47EB4C20456C9373C86297D630D5578EBD34CB40991578F9F52B18003EFA35D3DA6553FF35DB91B81AB890BEC1B189B7F52CB2A783EBB7D823D725B0B4A71F6824E88F68F982EEFC6D19C6 -
diff --git a/testing/skein1024sum-echo.command b/testing/skein1024sum-echo.command
new file mode 100644 (file)
index 0000000..c52d107
--- /dev/null
@@ -0,0 +1 @@
+echo | ../skein1024sum
diff --git a/testing/skein1024sum-echo.result b/testing/skein1024sum-echo.result
new file mode 100644 (file)
index 0000000..aeef5f5
--- /dev/null
@@ -0,0 +1 @@
+89C873779F4612C28176E310BE9E916FB077ACD6B63EA15569D3656BBFC3D855B8F7C133F23A645B86781600C9A765C3AD5A5BFF3A828E4DDECC925876B6F32E44E16A76E24DCFD4E88A4DFB70240BC015E1A5D58535B54D3B6F0117D20364989CDDA63E533476AE0C381A8CC4080D08C6C1CF6082BF3EB16E1484BF8ED5A944 -
diff --git a/testing/skein1024sum-short_file-stdio.command b/testing/skein1024sum-short_file-stdio.command
new file mode 100644 (file)
index 0000000..2a4b604
--- /dev/null
@@ -0,0 +1 @@
+../skein1024sum < short_file.txt
diff --git a/testing/skein1024sum-short_file-stdio.result b/testing/skein1024sum-short_file-stdio.result
new file mode 100644 (file)
index 0000000..9fe2188
--- /dev/null
@@ -0,0 +1 @@
+F050CCA19D33CB9E0868E39E229A148E3C6755D6C402E39EC9061DFBE70959316DC2807FEDCE5F57060A5B6EA642D61B41C3C47BD7D950D5128498CFF5E37558A18E928161CB8A1074822464CCF0462E1303573FA7DC7632528EE6332BE616C8EFC9D926DEDC853FB8284D1791AA96F411361FE8A7DABEA1DE85FF6940142B73 -
diff --git a/testing/skein1024sum-short_file.command b/testing/skein1024sum-short_file.command
new file mode 100644 (file)
index 0000000..4720352
--- /dev/null
@@ -0,0 +1 @@
+../skein1024sum short_file.txt
diff --git a/testing/skein1024sum-short_file.result b/testing/skein1024sum-short_file.result
new file mode 100644 (file)
index 0000000..3e7afc3
--- /dev/null
@@ -0,0 +1 @@
+F050CCA19D33CB9E0868E39E229A148E3C6755D6C402E39EC9061DFBE70959316DC2807FEDCE5F57060A5B6EA642D61B41C3C47BD7D950D5128498CFF5E37558A18E928161CB8A1074822464CCF0462E1303573FA7DC7632528EE6332BE616C8EFC9D926DEDC853FB8284D1791AA96F411361FE8A7DABEA1DE85FF6940142B73 short_file.txt
diff --git a/testing/skein1024sum-short_file_b.command b/testing/skein1024sum-short_file_b.command
new file mode 100644 (file)
index 0000000..b2d4985
--- /dev/null
@@ -0,0 +1 @@
+../skein1024sum -b short_file.txt
diff --git a/testing/skein1024sum-short_file_b.result b/testing/skein1024sum-short_file_b.result
new file mode 100644 (file)
index 0000000..050bafd
--- /dev/null
@@ -0,0 +1 @@
+F050CCA19D33CB9E0868E39E229A148E3C6755D6C402E39EC9061DFBE70959316DC2807FEDCE5F57060A5B6EA642D61B41C3C47BD7D950D5128498CFF5E37558A18E928161CB8A1074822464CCF0462E1303573FA7DC7632528EE6332BE616C8EFC9D926DEDC853FB8284D1791AA96F411361FE8A7DABEA1DE85FF6940142B73 *short_file.txt
diff --git a/testing/skein1024sum-unexisting.command b/testing/skein1024sum-unexisting.command
new file mode 100644 (file)
index 0000000..4322736
--- /dev/null
@@ -0,0 +1 @@
+../skein1024sum Something_unexisting
diff --git a/testing/skein1024sum-unexisting.result b/testing/skein1024sum-unexisting.result
new file mode 100644 (file)
index 0000000..90b717a
--- /dev/null
@@ -0,0 +1 @@
+skein1024sum: Something_unexisting: no such file or directory
diff --git a/testing/skein512sum-0.command b/testing/skein512sum-0.command
new file mode 100644 (file)
index 0000000..7faa905
--- /dev/null
@@ -0,0 +1 @@
+../skein512sum -0 a aa aaa b bb bbb
diff --git a/testing/skein512sum-0.result b/testing/skein512sum-0.result
new file mode 100644 (file)
index 0000000..5523f37
--- /dev/null
@@ -0,0 +1,6 @@
+B1CD8D33F61B3737ADFD59BB13AD82F4A9548E92F22956A8976CCA3FDB7FEE4FE91698146C4197CEC85D38B83C5D93BDBA92C01FD9A53870D0C7F967BC62BDCE -a
+6E1DE40E4546CA019E22E5CB54F07A68AC9F06B056EB31EF5DF88E1A6D7BF5FBB1BDCF7C98FD7A0F4B0CB1DE1A2AB5412863AF67249054354A4E66C6F78BB12C -aa
+FF46F3FB7ED1A1550ED3687D64AE49EEC17CAC9793A5BFCC660278790005D5999E3A9FD4EBC03A60E137B0A9418E5D35E2DE47756754178AF82E172C92C74F56 -aaa
+CFD8FEAB71E42BCB28DAAA0ABF6EB264BB5BA1F8208267961A702687E69BB0C302D51209E1A5C970784F419D5005A60BE46C132D5BE690C2D5666E8A5AF4CA45 -b
+613C646F08E61024624BF0445D76C529AA019B5E73CC3CD3DCEE51558C451C8D45650C1C39C2BAFA99A440E537F0476032161C8B63DD5E60A72A37EC4588BD1F -bb
+BBA3B6F3143A2833E3081835812DCD2D12644ECFEDE0A6DCFD40187FB5818287F73CA1A3C0B19E2CB1B7FF6FC46D54227EAEAF40D978CB4ECF27704E48DDF6A2 -bbb
diff --git a/testing/skein512sum-echo-n.command b/testing/skein512sum-echo-n.command
new file mode 100644 (file)
index 0000000..abe3e28
--- /dev/null
@@ -0,0 +1 @@
+echo -n | ../skein512sum
diff --git a/testing/skein512sum-echo-n.result b/testing/skein512sum-echo-n.result
new file mode 100644 (file)
index 0000000..4a12b77
--- /dev/null
@@ -0,0 +1 @@
+BC5B4C50925519C290CC634277AE3D6257212395CBA733BBAD37A4AF0FA06AF41FCA7903D06564FEA7A2D3730DBDB80C1F85562DFCC070334EA4D1D9E72CBA7A -
diff --git a/testing/skein512sum-echo.command b/testing/skein512sum-echo.command
new file mode 100644 (file)
index 0000000..c1a28a8
--- /dev/null
@@ -0,0 +1 @@
+echo | ../skein512sum
diff --git a/testing/skein512sum-echo.result b/testing/skein512sum-echo.result
new file mode 100644 (file)
index 0000000..1204b00
--- /dev/null
@@ -0,0 +1 @@
+8F684DA72A6FA991D3C660C4B9B2DB6730C4C7E22103FAD1EC376BF1A1C37FD814CB1538B70E401B9F04D55B20E06A789581EE87E02101B761141EECC5FDDE21 -
diff --git a/testing/skein512sum-short_file-stdio.command b/testing/skein512sum-short_file-stdio.command
new file mode 100644 (file)
index 0000000..cb965fc
--- /dev/null
@@ -0,0 +1 @@
+../skein512sum < short_file.txt
diff --git a/testing/skein512sum-short_file-stdio.result b/testing/skein512sum-short_file-stdio.result
new file mode 100644 (file)
index 0000000..ae5315c
--- /dev/null
@@ -0,0 +1 @@
+7AFBF89B1E6A8F6BCE8DF4ECE036128217FEE8E67B2F42A95B8525F1B34A58EB1E173FDE6F4EDE3A5C6337EAB5876089F9942747AAAB469013C3435004363B0D -
diff --git a/testing/skein512sum-short_file.command b/testing/skein512sum-short_file.command
new file mode 100644 (file)
index 0000000..177f980
--- /dev/null
@@ -0,0 +1 @@
+../skein512sum short_file.txt
diff --git a/testing/skein512sum-short_file.result b/testing/skein512sum-short_file.result
new file mode 100644 (file)
index 0000000..d49dc57
--- /dev/null
@@ -0,0 +1 @@
+7AFBF89B1E6A8F6BCE8DF4ECE036128217FEE8E67B2F42A95B8525F1B34A58EB1E173FDE6F4EDE3A5C6337EAB5876089F9942747AAAB469013C3435004363B0D short_file.txt
diff --git a/testing/skein512sum-short_file_b.command b/testing/skein512sum-short_file_b.command
new file mode 100644 (file)
index 0000000..dca48cd
--- /dev/null
@@ -0,0 +1 @@
+../skein512sum -b short_file.txt
diff --git a/testing/skein512sum-short_file_b.result b/testing/skein512sum-short_file_b.result
new file mode 100644 (file)
index 0000000..6ee3236
--- /dev/null
@@ -0,0 +1 @@
+7AFBF89B1E6A8F6BCE8DF4ECE036128217FEE8E67B2F42A95B8525F1B34A58EB1E173FDE6F4EDE3A5C6337EAB5876089F9942747AAAB469013C3435004363B0D *short_file.txt
diff --git a/testing/skein512sum-unexisting.command b/testing/skein512sum-unexisting.command
new file mode 100644 (file)
index 0000000..c99003a
--- /dev/null
@@ -0,0 +1 @@
+../skein512sum Something_unexisting
diff --git a/testing/skein512sum-unexisting.result b/testing/skein512sum-unexisting.result
new file mode 100644 (file)
index 0000000..2bfb706
--- /dev/null
@@ -0,0 +1 @@
+skein512sum: Something_unexisting: no such file or directory