.gitignore: cleanup test files
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 24 Apr 2024 06:25:33 +0000 (02:25 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 24 Apr 2024 21:04:19 +0000 (17:04 -0400)
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 <eeppeliteloop@gmail.com>
Change-Id: I2a4d541bd9624ed48051c944789c0b5f075a917b
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12466
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
.gitignore

index 22e401ee2a033d823cbd806439e6f720399382c4..a91e121df3b2d683dfb1975f26d44ea49ecb74e3 100644 (file)
@@ -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
This page took 0.024805 seconds and 4 git commands to generate.