diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-04-22 19:04:21 +1000 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-04-22 19:04:21 +1000 |
| commit | cde31929dff3e1ff006071df5d2c690472c64a6f (patch) | |
| tree | 35b97754afe84ac9fcf50ab3d54f88f751366bb3 | |
| parent | bc1f902b28ff6821e844e8220f91b304e46b851b (diff) | |
feat(Makefile): Use user-specified gdb debug tests
| -rw-r--r-- | Makefile | 14 | ||||
| -rwxr-xr-x | png_test | bin | 31256 -> 0 bytes |
2 files changed, 11 insertions, 3 deletions
@@ -50,7 +50,15 @@ test-png: clean test: test-png +# $(TEST) is passed in via `make gdb TEST=<test_name>` +# NOTE: <test_name> should be the name of the test target's output binary +# inside the Makefile but cannot be the more generic 'test' target +# +# +# +# WARNING: TEST does not have a default value + gdb: debug - gdb -x debug/.gdbinit - -.PHONY: all clean debug release asan test test-png gdb + gdb -x debug/.gdbinit $(OUTDIR)/$(TEST) + +.PHONY: all clean debug release asan test test-png gdb
\ No newline at end of file diff --git a/png_test b/png_test Binary files differdeleted file mode 100755 index eef54af..0000000 --- a/png_test +++ /dev/null |
