ref: e9e9983ebccd77f991af91b1010b179f556148ff
parent: 5ac3a0d4c1a9d7e4d3912c4770084b885007aca6
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Jul 2 04:50:09 EDT 2022
tests: Fix skip conditions
--- a/tests/ld/execute/Makefile
+++ b/tests/ld/execute/Makefile
@@ -10,9 +10,9 @@
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]';\
--- a/tests/nm/execute/Makefile
+++ b/tests/nm/execute/Makefile
@@ -9,9 +9,9 @@
@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]';\
--- a/tests/size/execute/Makefile
+++ b/tests/size/execute/Makefile
@@ -9,9 +9,9 @@
@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]';\
--- a/tests/strip/execute/Makefile
+++ b/tests/strip/execute/Makefile
@@ -9,9 +9,9 @@
@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]';\