diff options
author | Kyle Altendorf <sda@fstab.net> | 2019-09-22 10:47:44 -0400 |
---|---|---|
committer | Kyle Altendorf <sda@fstab.net> | 2019-09-22 10:47:44 -0400 |
commit | b0fa69bb8869cc80a7151dd6ee8a407a0c5f9e8d (patch) | |
tree | 0f90e388be8a7f9c79eccba64e7b8a8d6266e646 | |
parent | Return non-zero when tests fail (diff) | |
parent | Merge pull request #24 from altendky/separate_test_and_main (diff) | |
download | siphash-b0fa69bb8869cc80a7151dd6ee8a407a0c5f9e8d.tar.gz siphash-b0fa69bb8869cc80a7151dd6ee8a407a0c5f9e8d.tar.xz |
Merge branch 'master' into return_for_test_failed
Diffstat (limited to '')
-rw-r--r-- | makefile | 2 | ||||
-rw-r--r-- | test.c | 2 | ||||
-rw-r--r-- | testmain.c | 5 |
3 files changed, 7 insertions, 2 deletions
@@ -1,6 +1,6 @@ CC=gcc CFLAGS=-Wall --std=c99 -SRC=siphash.c halfsiphash.c test.c +SRC=siphash.c halfsiphash.c test.c testmain.c BIN=test debug vectors ifneq ($(cROUNDS),) @@ -44,7 +44,7 @@ const char *labels[4] = { size_t lengths[4] = {8, 16, 4, 8}; -int main() { +int siphash_test() { uint8_t in[64], out[16], k[16]; int i; bool any_failed; diff --git a/testmain.c b/testmain.c new file mode 100644 index 0000000..bb9e024 --- /dev/null +++ b/testmain.c @@ -0,0 +1,5 @@ +int siphash_test(); + +int main(void) { + return siphash_test(); +} |