Browse Source

unit test: run sphinx unit test by default

travis-debug
gorazdko 5 years ago
committed by Christian Decker
parent
commit
a3961c4e06
  1. 15
      common/test/run-sphinx.c

15
common/test/run-sphinx.c

@ -177,25 +177,12 @@ int main(int argc, char **argv)
{
setup_locale();
bool unit = false;
secp256k1_ctx = secp256k1_context_create(
SECP256K1_CONTEXT_VERIFY | SECP256K1_CONTEXT_SIGN);
setup_tmpctx();
opt_register_noarg("--help|-h", opt_usage_and_exit,
"--unit\n"
"Run unit tests against test vectors",
"Print this message.");
opt_register_noarg("--unit",
opt_set_bool, &unit,
"Run unit tests against test vectors");
opt_parse(&argc, argv, opt_log_stderr_exit);
run_unit_tests();
if (unit) {
run_unit_tests();
}
secp256k1_context_destroy(secp256k1_ctx);
opt_free_table();
tal_free(tmpctx);

Loading…
Cancel
Save