diff mbox series

selftests: bpf: install script with_addr.sh

Message ID 20181010142704.26990-1-anders.roxell@linaro.org
State Accepted
Commit ef4ab8447aa2639d7a80a50f23d9f27c5c0db276
Headers show
Series selftests: bpf: install script with_addr.sh | expand

Commit Message

Anders Roxell Oct. 10, 2018, 2:27 p.m. UTC
When test_flow_dissector.sh runs it complains that it can't find script
with_addr.sh:

./test_flow_dissector.sh: line 81: ./with_addr.sh: No such file or
directory

Rework so that with_addr.sh gets installed, add it to
TEST_PROGS_EXTENDED variable.

Fixes: 50b3ed57dee9 ("selftests/bpf: test bpf flow dissection")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

---
 tools/testing/selftests/bpf/Makefile | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.19.1

Comments

Song Liu Oct. 10, 2018, 4:07 p.m. UTC | #1
On Wed, Oct 10, 2018 at 7:28 AM Anders Roxell <anders.roxell@linaro.org> wrote:
>

> When test_flow_dissector.sh runs it complains that it can't find script

> with_addr.sh:

>

> ./test_flow_dissector.sh: line 81: ./with_addr.sh: No such file or

> directory

>

> Rework so that with_addr.sh gets installed, add it to

> TEST_PROGS_EXTENDED variable.

>

> Fixes: 50b3ed57dee9 ("selftests/bpf: test bpf flow dissection")

> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>


Acked-by: Song Liu <songliubraving@fb.com>


> ---

>  tools/testing/selftests/bpf/Makefile | 2 ++

>  1 file changed, 2 insertions(+)

>

> diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile

> index 1381ab81099c..efd108ff737d 100644

> --- a/tools/testing/selftests/bpf/Makefile

> +++ b/tools/testing/selftests/bpf/Makefile

> @@ -51,6 +51,8 @@ TEST_PROGS := test_kmod.sh \

>         test_skb_cgroup_id.sh \

>         test_flow_dissector.sh

>

> +TEST_PROGS_EXTENDED := with_addr.sh

> +

>  # Compile but not part of 'make run_tests'

>  TEST_GEN_PROGS_EXTENDED = test_libbpf_open test_sock_addr test_skb_cgroup_id_user \

>         flow_dissector_load test_flow_dissector

> --

> 2.19.1

>
Daniel Borkmann Oct. 11, 2018, 8:36 a.m. UTC | #2
On 10/10/2018 04:27 PM, Anders Roxell wrote:
> When test_flow_dissector.sh runs it complains that it can't find script

> with_addr.sh:

> 

> ./test_flow_dissector.sh: line 81: ./with_addr.sh: No such file or

> directory

> 

> Rework so that with_addr.sh gets installed, add it to

> TEST_PROGS_EXTENDED variable.

> 

> Fixes: 50b3ed57dee9 ("selftests/bpf: test bpf flow dissection")

> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>


Applied to bpf-next, thanks Anders!
diff mbox series

Patch

diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile
index 1381ab81099c..efd108ff737d 100644
--- a/tools/testing/selftests/bpf/Makefile
+++ b/tools/testing/selftests/bpf/Makefile
@@ -51,6 +51,8 @@  TEST_PROGS := test_kmod.sh \
 	test_skb_cgroup_id.sh \
 	test_flow_dissector.sh
 
+TEST_PROGS_EXTENDED := with_addr.sh
+
 # Compile but not part of 'make run_tests'
 TEST_GEN_PROGS_EXTENDED = test_libbpf_open test_sock_addr test_skb_cgroup_id_user \
 	flow_dissector_load test_flow_dissector