X-Git-Url: http://git.onelab.eu/?p=iproute2.git;a=blobdiff_plain;f=testsuite%2FMakefile;fp=testsuite%2FMakefile;h=0000000000000000000000000000000000000000;hp=2a4e0ba9bfca8615b0dc312c8ed80f39d2f40f4d;hb=3331a68859fd71047bb1f309048960b48eab2d83;hpb=2bd4a72f2100be7ad7d9518cb1d49bb2a5b71994 diff --git a/testsuite/Makefile b/testsuite/Makefile deleted file mode 100644 index 2a4e0ba..0000000 --- a/testsuite/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -## -- Config -- -DEV := lo -PREFIX := sudo -## -- End Config -- - -TESTS := $(patsubst tests/%,%,$(wildcard tests/*.t)) -IPVERS := $(filter-out iproute2/Makefile,$(wildcard iproute2/*)) -KENV := $(shell cat /proc/config.gz | gunzip | grep ^CONFIG) - -.PHONY: compile listtests alltests configure $(TESTS) - -configure: - echo "Entering iproute2" && cd iproute2 && $(MAKE) configure && cd ..; - -compile: configure - echo "Entering iproute2" && cd iproute2 && $(MAKE) && cd ..; - -listtests: - @for t in $(TESTS); do \ - echo "$$t"; \ - done - -alltests: $(TESTS) - -clean: - @rm -rf results/* - -distclean: clean - echo "Entering iproute2" && cd iproute2 && $(MAKE) distclean && cd ..; - -$(TESTS): - @for i in $(IPVERS); do \ - o=`echo $$i | sed -e 's/iproute2\///'`; \ - echo -n "Running $@ [$$o/`uname -r`]: "; \ - TC="$$i/tc/tc" IP="$$i/ip/ip" DEV="$(DEV)" IPVER="$@" SNAME="$$i" \ - ERRF="results/$@.$$o.err" $(KENV) $(PREFIX) tests/$@ > results/$@.$$o.out; \ - if [ "$$?" = "127" ]; then \ - echo "SKIPPED"; \ - elif [ -e "results/$@.$$o.err" ]; then \ - echo "FAILED"; \ - else \ - echo "PASS"; \ - fi; \ - dmesg > results/$@.$$o.dmesg; \ - done