selftests/bpf: Copy runqslower to OUTPUT directory
authorVeronika Kabatova <vkabatov@redhat.com>
Tue, 28 Apr 2020 17:37:42 +0000 (19:37 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 28 Apr 2020 19:27:20 +0000 (21:27 +0200)
commitb26d1e2b60284dc9f66ffad9ccd5c5da1100bb4b
treea2be1e841385a60a3d853df5503967a9ed9cf0b2
parent0b54142e4b09fbf719eb9fc6fe8bcacbd0547ac3
selftests/bpf: Copy runqslower to OUTPUT directory

$(OUTPUT)/runqslower makefile target doesn't actually create runqslower
binary in the $(OUTPUT) directory. As lib.mk expects all
TEST_GEN_PROGS_EXTENDED (which runqslower is a part of) to be present in
the OUTPUT directory, this results in an error when running e.g. `make
install`:

rsync: link_stat "tools/testing/selftests/bpf/runqslower" failed: No
       such file or directory (2)

Copy the binary into the OUTPUT directory after building it to fix the
error.

Fixes: 3a0d3092a4ed ("selftests/bpf: Build runqslower from selftests")
Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200428173742.2988395-1-vkabatov@redhat.com
tools/testing/selftests/bpf/Makefile