diff options
author | Andrii Nakryiko <andriin@fb.com> | 2019-10-15 23:00:45 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-10-17 12:15:08 -0700 |
commit | 0b6e71c398a947a335622ad52807e500e1b5fefa (patch) | |
tree | 34889cd896dde85861c8c7dc150a17deb31b6d82 /tools/testing/selftests/bpf/test_lirc_mode2.sh | |
parent | 8d285a3b2e83796d33ec3674b25fe0bfcc647e92 (diff) |
selftests/bpf: Teach test_progs to cd into subdir
We are building a bunch of "flavors" of test_progs, e.g., w/ alu32 flag
for Clang when building BPF object. test_progs setup is relying on
having all the BPF object files and extra resources to be available in
current working directory, though. But we actually build all these files
into a separate sub-directory. Next set of patches establishes
convention of naming "flavored" test_progs (and test runner binaries in
general) as test_progs-flavor (e.g., test_progs-alu32), for each such
extra flavor. This patch teaches test_progs binary to automatically
detect its own extra flavor based on its argv[0], and if present, to
change current directory to a flavor-specific subdirectory.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191016060051.2024182-2-andriin@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/test_lirc_mode2.sh')
0 files changed, 0 insertions, 0 deletions