diff options
author | Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com> | 2019-09-22 06:15:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-22 06:15:18 -0400 |
commit | 566f3f9c0dc72d0fc49ca0cb1dedf90e75c226e2 (patch) | |
tree | ab877193da84b7a00dc6d363dccbbcb09065372d | |
parent | Merge pull request #21 from altendky/full_siphash_format_specifiers (diff) | |
parent | Separate test function and main() (diff) | |
download | siphash-566f3f9c0dc72d0fc49ca0cb1dedf90e75c226e2.tar.gz siphash-566f3f9c0dc72d0fc49ca0cb1dedf90e75c226e2.tar.xz |
Merge pull request #24 from altendky/separate_test_and_main
Separate test function and main()
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),) @@ -43,7 +43,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; #ifndef GETVECTORS 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(); +} |