From eabba0421f7a6e7261ab179377fcd5e18ea47a96 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Wed, 24 Apr 2024 02:25:33 -0400 Subject: [PATCH] .gitignore: cleanup test files MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Given that, under the `tests` directory: ✔ All shell file names end with `.sh`. ✔ All C file names end with `.c` or `.h`. ✔ All C++ file names end with `.cpp` or `.hpp`. ✔ No Python file name contains `-`. Then it's safe to ignore everything named `test-` except the files of which the name ends with one of the extensions above. Also sort the list of remaining specific file names. Signed-off-by: Philippe Proulx Change-Id: I2a4d541bd9624ed48051c944789c0b5f075a917b Reviewed-on: https://review.lttng.org/c/babeltrace/+/12466 Reviewed-by: Simon Marchi --- .gitignore | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index 22e401ee..a91e121d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,26 +1,13 @@ -/tests/bitfield/test-bitfield -/tests/argpar/test-argpar -/tests/cpp-common/test-c-string-view -/tests/cpp-common/test-uuid +/tests/**/test-* +!/tests/**/test-*.sh +!/tests/**/test-*.[hc] +!/tests/**/test-*.[hc]pp /tests/ctf-writer/ctf-writer -/tests/lib/plugin -/tests/lib/test-bt-uuid -/tests/lib/test-bt-values -/tests/lib/test-fields-bin -/tests/lib/test-graph-topo -/tests/lib/test-trace-ir-ref -/tests/lib/test-simple-sink -/tests/lib/test-remove-destruction-listener-in-destruction-listener /tests/lib/conds/conds-triggers -/tests/lib/test-plugin-init-fail -/tests/lib/test-plugins -/tests/plugins/flt.utils.muxer/test-clock-compatibility -/tests/param-validation/test-param-validation -/tests/plugins/flt.lttng-utils.debug-info/test-bin-info -/tests/plugins/flt.lttng-utils.debug-info/test-dwarf -/tests/plugins/src.ctf.fs/succeed/gen-trace-simple -/tests/plugins/sink.ctf.fs/succeed/gen-trace-float +/tests/lib/plugin /tests/plugins/sink.ctf.fs/succeed/gen-trace-double +/tests/plugins/sink.ctf.fs/succeed/gen-trace-float +/tests/plugins/src.ctf.fs/succeed/gen-trace-simple /tests/utils/env.sh *~ *.o -- 2.34.1