From 95f7f43c35004ddd9acdeddf192a64d8ab92bd1b Mon Sep 17 00:00:00 2001 From: Alvaro Denis Date: Mon, 13 May 2019 22:47:56 -0400 Subject: [PATCH] run tests against hardware wallet ref #34 --- lib/cgo/tests/test_main_hw.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/cgo/tests/test_main_hw.c diff --git a/lib/cgo/tests/test_main_hw.c b/lib/cgo/tests/test_main_hw.c new file mode 100644 index 000000000..fcc7e3e44 --- /dev/null +++ b/lib/cgo/tests/test_main_hw.c @@ -0,0 +1,18 @@ +#include +#include + +Suite *common_check_cipher_hash(void); + +// run suite +int main(void) +{ + int number_failed = 0; + int number_failed_fork = 0; + SRunner *sr = srunner_create(common_check_cipher_hash()); + srunner_run_all(sr, CK_VERBOSE); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); + sr = NULL; + return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; + // return 0; +}