From eee31a1519e78477e57a97393360468c0d5b2687 Mon Sep 17 00:00:00 2001 From: Mark Beckwith Date: Tue, 25 Sep 2018 09:34:15 -0500 Subject: [PATCH] git: ignore all current and future unit tests I wanted to add run-secret_eq_consttime and run-find_my_abspath to the .gitignore file, but instead I replaced all the names of tests with a simple regex. This works because git doesn't ignore files that are already in git. So source and header file are safe. It doesn't ignore *.c files that haven't been added to git either. Signed-off-by: Mark Beckwith --- .gitignore | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/.gitignore b/.gitignore index cb5f4a1fc..706a608dd 100644 --- a/.gitignore +++ b/.gitignore @@ -21,32 +21,11 @@ __pycache__ config.vars # Ignore some generated binaries -lightningd/test/run-channel -lightningd/test/run-cryptomsg -lightningd/test/run-commit_tx -lightningd/test/run-find_my_path -lightningd/test/run-funding_tx -lightningd/test/run-param -lightningd/test/run-key_derive -common/test/run-ip_port_parsing -wire/test/run-peer-wire -bitcoin/test/run-tx-encode -channeld/test/run-full_channel -common/test/run-bolt11 -common/test/run-derive_basepoints -common/test/run-features -common/test/run-json -common/test/run-sphinx -connectd/test/run-initiator-success -connectd/test/run-responder-success -daemon/test/run-maxfee +*/test/run-* +!*/test/run-*.c external/libbacktrace-build/ external/libbacktrace.a external/libbacktrace.la -gossipd/test/run-find_route-specific -gossipd/test/run-initiator-success -gossipd/test/run-responder-success -onchaind/test/run-grind_feerate test/test_protocol test/test_sphinx tests/.pytest.restart