mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
unit test: run sphinx unit test by default
This commit is contained in:
parent
d5a6072642
commit
a3961c4e06
@ -177,25 +177,12 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
setup_locale();
|
setup_locale();
|
||||||
|
|
||||||
bool unit = false;
|
|
||||||
|
|
||||||
secp256k1_ctx = secp256k1_context_create(
|
secp256k1_ctx = secp256k1_context_create(
|
||||||
SECP256K1_CONTEXT_VERIFY | SECP256K1_CONTEXT_SIGN);
|
SECP256K1_CONTEXT_VERIFY | SECP256K1_CONTEXT_SIGN);
|
||||||
setup_tmpctx();
|
setup_tmpctx();
|
||||||
|
|
||||||
opt_register_noarg("--help|-h", opt_usage_and_exit,
|
run_unit_tests();
|
||||||
"--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);
|
|
||||||
|
|
||||||
if (unit) {
|
|
||||||
run_unit_tests();
|
|
||||||
}
|
|
||||||
secp256k1_context_destroy(secp256k1_ctx);
|
secp256k1_context_destroy(secp256k1_ctx);
|
||||||
opt_free_table();
|
opt_free_table();
|
||||||
tal_free(tmpctx);
|
tal_free(tmpctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user