debug: Autogenerate _FORTIFY_SOURCE tests
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 12 Jan 2022 18:04:23 +0000 (23:34 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 12 Jan 2022 18:04:23 +0000 (23:34 +0530)
commitdb27f1251b008280a29d540b4f8ab2a38a0d80af
tree5a4b377ce8dc2908a88f50cbf7cf7167b14e0df8
parentf0ed50e1c783395c424e4d51587b0ade5c1c3006
debug: Autogenerate _FORTIFY_SOURCE tests

Rename debug/tst-chk1.c to debug/tst-fortify.c and add make hackery to
autogenerate tests with different macros enabled to build and run the
same test with different configurations as well as different
fortification levels.

The change also ends up expanding the -lfs tests to include
_FORTIFY_SOURCE=3.

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
17 files changed:
Makerules
debug/Makefile
debug/tst-chk1.c [deleted file]
debug/tst-chk2.c [deleted file]
debug/tst-chk3.c [deleted file]
debug/tst-chk4.cc [deleted file]
debug/tst-chk5.cc [deleted file]
debug/tst-chk6.cc [deleted file]
debug/tst-chk7.c [deleted file]
debug/tst-chk8.cc [deleted file]
debug/tst-fortify.c [new file with mode: 0644]
debug/tst-lfschk1.c [deleted file]
debug/tst-lfschk2.c [deleted file]
debug/tst-lfschk3.c [deleted file]
debug/tst-lfschk4.cc [deleted file]
debug/tst-lfschk5.cc [deleted file]
debug/tst-lfschk6.cc [deleted file]