]> git.ipfire.org Git - thirdparty/ccache.git/commit
Improve test cases that use objdump
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 1 Sep 2020 17:48:24 +0000 (19:48 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 1 Sep 2020 17:58:46 +0000 (19:58 +0200)
commit98b8ad231bb738d79d7de9b6d35b6bef27bb15a2
tree63174e3b08017b0c7c4a3e4e5529a4dfcb644d1f
parentdd654743cb90e668b9ade3ac5e4ae3b1ed213134
Improve test cases that use objdump

- Added expect_objdump_contains and expect_objdump_not_contains utility
  functions to the main test framework, making objdump_cmd and grep_cmd
  (renamed to objdump_grep_cmd) internal utility functions.
- Removed strange support for the $HOST_OS_WINDOWS || $HOST_OS_CYGWIN
  case in objdump_grep_cmd. Let’s re-add it later if and when it becomes
  a problem.
- objdump_grep_cmd now greps for literal strings, thus no longer
  interpreting $PWD as a regex.
- Made test cases use expect_objdump_(not_)contains instead of
  “objdump_grep_cmd | grep_cmd”.
test/run
test/suites/debug_prefix_map.bash
test/suites/split_dwarf.bash