commit e9e9983ebccd77f991af91b1010b179f556148ff
parent 5ac3a0d4c1a9d7e4d3912c4770084b885007aca6
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sat, 2 Jul 2022 08:50:09 +0200
tests: Fix skip conditions
Diffstat:
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/ld/execute/Makefile b/tests/ld/execute/Makefile
@@ -10,9 +10,9 @@ OBJLIB = f3.o
all: a.out
tests:
- @if $(AS) 2>/dev/null;\
+ @if $(AS) /dev/null 2>/dev/null;\
then\
- $(MAKE);\
+ $(MAKE) |\
grep -v TODO |\
grep FAIL >/dev/null &&\
printf '[FAIL]' || printf '[PASS]';\
diff --git a/tests/nm/execute/Makefile b/tests/nm/execute/Makefile
@@ -9,9 +9,9 @@ all: $(OUT)
@PATH=$(ROOT)/bin:$$PATH:. chktest.sh
tests:
- @if $(AS) 2>/dev/null;\
+ @if $(AS) /dev/null 2>/dev/null;\
then\
- $(MAKE);\
+ $(MAKE) |\
grep -v TODO |\
grep FAIL >/dev/null &&\
printf '[FAIL]' || printf '[PASS]';\
diff --git a/tests/size/execute/Makefile b/tests/size/execute/Makefile
@@ -9,9 +9,9 @@ all: $(OUT)
@PATH=$(ROOT)/bin:$$PATH:. chktest.sh
tests:
- @if $(AS) 2>/dev/null;\
+ @if $(AS) /dev/null 2>/dev/null;\
then\
- $(MAKE);\
+ $(MAKE) | \
grep -v TODO |\
grep FAIL >/dev/null &&\
printf '[FAIL]' || printf '[PASS]';\
diff --git a/tests/strip/execute/Makefile b/tests/strip/execute/Makefile
@@ -9,9 +9,9 @@ all: $(OUT)
@PATH=$(ROOT)/bin:$$PATH:. chktest.sh
tests:
- @if $(AS) 2>/dev/null;\
+ @if $(AS) /dev/null 2>/dev/null;\
then\
- $(MAKE);\
+ $(MAKE) |\
grep -v TODO |\
grep FAIL >/dev/null &&\
printf '[FAIL]' || printf '[PASS]';\