* [PATCH iproute2 v2 0/3] testsuite: make alltests fixes
@ 2018-09-19 23:36 Petr Vorel
2018-09-19 23:36 ` [PATCH iproute2 v2 1/3] testsuite: Fix missing generate_nlmsg Petr Vorel
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Petr Vorel @ 2018-09-19 23:36 UTC (permalink / raw)
To: netdev; +Cc: Petr Vorel, Stephen Hemminger, Phil Sutter, Luca Boccassi
Hi,
here are simply fixes to restore 'make alltests'.
Currently it does not run.
Kind regards,
Petr
Petr Vorel (3):
testsuite: Fix missing generate_nlmsg
testsuite: Generate generate_nlmsg when needed
testsuite: Warn about empty $(IPVERS)
testsuite/Makefile | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
--
2.19.0.rc2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH iproute2 v2 1/3] testsuite: Fix missing generate_nlmsg
2018-09-19 23:36 [PATCH iproute2 v2 0/3] testsuite: make alltests fixes Petr Vorel
@ 2018-09-19 23:36 ` Petr Vorel
2018-09-19 23:36 ` [PATCH iproute2 v2 2/3] testsuite: Generate generate_nlmsg when needed Petr Vorel
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Petr Vorel @ 2018-09-19 23:36 UTC (permalink / raw)
To: netdev; +Cc: Petr Vorel, Stephen Hemminger, Phil Sutter, Luca Boccassi
Commit ad23e152 caused generate_nlmsg to be always missing:
$ make alltests
make: ./tools/generate_nlmsg: Command not found
Create testclean: to remove only results directory.
Fixes: ad23e152 testsuite: remove all temp files and implement make clean
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
testsuite/Makefile | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/testsuite/Makefile b/testsuite/Makefile
index d1ac997d..a31d4531 100644
--- a/testsuite/Makefile
+++ b/testsuite/Makefile
@@ -30,7 +30,6 @@ configure:
compile: configure
echo "Entering iproute2" && cd iproute2 && $(MAKE) && cd ..;
- $(MAKE) -C tools
listtests:
@for t in $(TESTS); do \
@@ -39,9 +38,11 @@ listtests:
alltests: $(TESTS)
-clean:
+testclean:
@echo "Removing $(RESULTS_DIR) dir ..."
@rm -rf $(RESULTS_DIR)
+
+clean: testclean
@rm -f iproute2/iproute2-this
@rm -f tests/ip/link/dev_wo_vf_rate.nl
$(MAKE) -C tools clean
@@ -49,18 +50,18 @@ clean:
distclean: clean
echo "Entering iproute2" && cd iproute2 && $(MAKE) distclean && cd ..;
-$(TESTS): clean
+$(TESTS): testclean
ifeq (,$(HAVE_UNSHARED_UTIL))
$(error Please install util-linux tools to run tests in separated network namespace)
endif
@./tools/generate_nlmsg
@mkdir -p $(RESULTS_DIR)
-
+
@for d in $(TESTS_DIR); do \
mkdir -p $(RESULTS_DIR)/$$d; \
done
-
+
@if [ "$(KCPATH)" = "/proc/config.gz" ]; then \
gunzip -c $(KCPATH) >$(KENVFN); \
elif [ "$(KCPATH)" != "" ]; then \
--
2.19.0.rc2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH iproute2 v2 2/3] testsuite: Generate generate_nlmsg when needed
2018-09-19 23:36 [PATCH iproute2 v2 0/3] testsuite: make alltests fixes Petr Vorel
2018-09-19 23:36 ` [PATCH iproute2 v2 1/3] testsuite: Fix missing generate_nlmsg Petr Vorel
@ 2018-09-19 23:36 ` Petr Vorel
2018-09-19 23:36 ` [PATCH iproute2 v2 3/3] testsuite: Warn about empty $(IPVERS) Petr Vorel
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Petr Vorel @ 2018-09-19 23:36 UTC (permalink / raw)
To: netdev; +Cc: Petr Vorel, Stephen Hemminger, Phil Sutter, Luca Boccassi
Commit 886f2c43 added generate_nlmsg.c. Running alltests
target, which uses the binary required to run 'make -C tools' before.
Fixes: 886f2c43 testsuite: Generate nlmsg blob at runtime
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
testsuite/Makefile | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/testsuite/Makefile b/testsuite/Makefile
index a31d4531..1c2467f5 100644
--- a/testsuite/Makefile
+++ b/testsuite/Makefile
@@ -28,7 +28,7 @@ endif
configure:
echo "Entering iproute2" && cd iproute2 && $(MAKE) configure && cd ..;
-compile: configure
+compile: configure generate_nlmsg
echo "Entering iproute2" && cd iproute2 && $(MAKE) && cd ..;
listtests:
@@ -36,7 +36,10 @@ listtests:
echo "$$t"; \
done
-alltests: $(TESTS)
+generate_nlmsg:
+ $(MAKE) -C tools
+
+alltests: generate_nlmsg $(TESTS)
testclean:
@echo "Removing $(RESULTS_DIR) dir ..."
--
2.19.0.rc2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH iproute2 v2 3/3] testsuite: Warn about empty $(IPVERS)
2018-09-19 23:36 [PATCH iproute2 v2 0/3] testsuite: make alltests fixes Petr Vorel
2018-09-19 23:36 ` [PATCH iproute2 v2 1/3] testsuite: Fix missing generate_nlmsg Petr Vorel
2018-09-19 23:36 ` [PATCH iproute2 v2 2/3] testsuite: Generate generate_nlmsg when needed Petr Vorel
@ 2018-09-19 23:36 ` Petr Vorel
2018-09-20 8:02 ` [PATCH iproute2 v2 0/3] testsuite: make alltests fixes Phil Sutter
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Petr Vorel @ 2018-09-19 23:36 UTC (permalink / raw)
To: netdev; +Cc: Petr Vorel, Stephen Hemminger, Phil Sutter, Luca Boccassi
alltests target requires having symlink created by configure target
(default target). Without that there is no test being run.
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
testsuite/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/testsuite/Makefile b/testsuite/Makefile
index 1c2467f5..b3aebec1 100644
--- a/testsuite/Makefile
+++ b/testsuite/Makefile
@@ -54,6 +54,9 @@ distclean: clean
echo "Entering iproute2" && cd iproute2 && $(MAKE) distclean && cd ..;
$(TESTS): testclean
+ifeq (,$(IPVERS))
+ $(error Please run make first)
+endif
ifeq (,$(HAVE_UNSHARED_UTIL))
$(error Please install util-linux tools to run tests in separated network namespace)
endif
--
2.19.0.rc2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH iproute2 v2 0/3] testsuite: make alltests fixes
2018-09-19 23:36 [PATCH iproute2 v2 0/3] testsuite: make alltests fixes Petr Vorel
` (2 preceding siblings ...)
2018-09-19 23:36 ` [PATCH iproute2 v2 3/3] testsuite: Warn about empty $(IPVERS) Petr Vorel
@ 2018-09-20 8:02 ` Phil Sutter
2018-09-20 10:02 ` Luca Boccassi
2018-09-21 16:16 ` Stephen Hemminger
5 siblings, 0 replies; 7+ messages in thread
From: Phil Sutter @ 2018-09-20 8:02 UTC (permalink / raw)
To: Petr Vorel; +Cc: netdev, Stephen Hemminger, Luca Boccassi
Hi Petr,
On Thu, Sep 20, 2018 at 01:36:21AM +0200, Petr Vorel wrote:
> here are simply fixes to restore 'make alltests'.
> Currently it does not run.
Yeah, that testsuite definitely deserves some love.
Just one nit: The one-line summary in Fixes: tags should be enclosed in
quotes and parens, e.g.:
| Fixes: deadbeef ("foo bar")
Cheers, Phil
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH iproute2 v2 0/3] testsuite: make alltests fixes
2018-09-19 23:36 [PATCH iproute2 v2 0/3] testsuite: make alltests fixes Petr Vorel
` (3 preceding siblings ...)
2018-09-20 8:02 ` [PATCH iproute2 v2 0/3] testsuite: make alltests fixes Phil Sutter
@ 2018-09-20 10:02 ` Luca Boccassi
2018-09-21 16:16 ` Stephen Hemminger
5 siblings, 0 replies; 7+ messages in thread
From: Luca Boccassi @ 2018-09-20 10:02 UTC (permalink / raw)
To: Petr Vorel, netdev; +Cc: Stephen Hemminger, Phil Sutter
[-- Attachment #1: Type: text/plain, Size: 539 bytes --]
On Thu, 2018-09-20 at 01:36 +0200, Petr Vorel wrote:
> Hi,
>
> here are simply fixes to restore 'make alltests'.
> Currently it does not run.
>
> Kind regards,
> Petr
>
> Petr Vorel (3):
> testsuite: Fix missing generate_nlmsg
> testsuite: Generate generate_nlmsg when needed
> testsuite: Warn about empty $(IPVERS)
>
> testsuite/Makefile | 21 ++++++++++++++-------
> 1 file changed, 14 insertions(+), 7 deletions(-)
Series-tested-by: Luca Boccassi <bluca@debian.org>
--
Kind regards,
Luca Boccassi
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH iproute2 v2 0/3] testsuite: make alltests fixes
2018-09-19 23:36 [PATCH iproute2 v2 0/3] testsuite: make alltests fixes Petr Vorel
` (4 preceding siblings ...)
2018-09-20 10:02 ` Luca Boccassi
@ 2018-09-21 16:16 ` Stephen Hemminger
5 siblings, 0 replies; 7+ messages in thread
From: Stephen Hemminger @ 2018-09-21 16:16 UTC (permalink / raw)
To: Petr Vorel; +Cc: netdev, Phil Sutter, Luca Boccassi
On Thu, 20 Sep 2018 01:36:21 +0200
Petr Vorel <petr.vorel@gmail.com> wrote:
> Hi,
>
> here are simply fixes to restore 'make alltests'.
> Currently it does not run.
>
> Kind regards,
> Petr
>
> Petr Vorel (3):
> testsuite: Fix missing generate_nlmsg
> testsuite: Generate generate_nlmsg when needed
> testsuite: Warn about empty $(IPVERS)
>
> testsuite/Makefile | 21 ++++++++++++++-------
> 1 file changed, 14 insertions(+), 7 deletions(-)
>
Applied, it would be good to have 'make tests' at the top level.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-09-21 22:07 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-19 23:36 [PATCH iproute2 v2 0/3] testsuite: make alltests fixes Petr Vorel
2018-09-19 23:36 ` [PATCH iproute2 v2 1/3] testsuite: Fix missing generate_nlmsg Petr Vorel
2018-09-19 23:36 ` [PATCH iproute2 v2 2/3] testsuite: Generate generate_nlmsg when needed Petr Vorel
2018-09-19 23:36 ` [PATCH iproute2 v2 3/3] testsuite: Warn about empty $(IPVERS) Petr Vorel
2018-09-20 8:02 ` [PATCH iproute2 v2 0/3] testsuite: make alltests fixes Phil Sutter
2018-09-20 10:02 ` Luca Boccassi
2018-09-21 16:16 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).