|
|
482972 |
This is a temporary workaround for some of the ASLTS tests failing to compile
|
|
|
482972 |
due to acpica commit 73ddb40da6c4afdfe587 as described in...
|
|
|
482972 |
|
|
|
482972 |
https://bugs.acpica.org/show_bug.cgi?id=1112
|
|
|
482972 |
|
|
|
482972 |
With regard to stdout and stderr, upstream wants to hide all errors reported by
|
|
|
482972 |
the iASL compiler when the tests are compiled. And instead indicate their
|
|
|
482972 |
occurrance through the errors encountered when the tests are run. The iASL
|
|
|
482972 |
errors are written to tests/aslts/tmp/aml/<version>-<bit>/error.txt. But that
|
|
|
482972 |
only works if one is running interactively and can access the tmp directory.
|
|
|
482972 |
|
|
|
482972 |
So this patch writes to stderr the iASL compiler error info that could normally
|
|
|
482972 |
be found in compile.txt (also located in the tmp directory). It is not the
|
|
|
482972 |
detailed error info, but it shows the number of errors encountered for the
|
|
|
482972 |
named test.
|
|
|
482972 |
|
|
|
482972 |
diff --git a/tests/aslts/Makefile.def b/tests/aslts/Makefile.def
|
|
|
482972 |
--- a/tests/aslts/Makefile.def
|
|
|
482972 |
+++ b/tests/aslts/Makefile.def
|
|
|
482972 |
@@ -72,7 +72,14 @@
|
|
|
482972 |
"$(ASL)" $$CUR_ASLFLAGS "$(COMMON_ASL_FLAGS)" $(ADD_ASLFLAGS) $$j.asl >> $(COMPILER_LOG) 2>> $(COMPILER_ERROR_LOG); \
|
|
|
482972 |
ret=$$?; \
|
|
|
482972 |
echo "" >> $(COMPILER_LOG); \
|
|
|
482972 |
- if [ $$ret != 0 ]; then rval=1; echo "**** Unexpected iASL failure!"; exit 1; fi; \
|
|
|
482972 |
+ if [ $$ret != 0 ]; then \
|
|
|
482972 |
+ rval=1; \
|
|
|
482972 |
+ echo "---- Test path: $$dd" >> /dev/stderr; \
|
|
|
482972 |
+ echo "---- Test type: $$CUR_AMLDIR (Flags $(COMMON_ASL_FLAGS) $$CUR_ASLFLAGS $(ADD_ASLFLAGS))" >> /dev/stderr; \
|
|
|
482972 |
+ tail -2 $(COMPILER_LOG) >> /dev/stderr; \
|
|
|
482972 |
+ echo "**** Unexpected iASL failure!" >> /dev/stderr; \
|
|
|
482972 |
+ exit 1; \
|
|
|
482972 |
+ fi; \
|
|
|
482972 |
done; \
|
|
|
482972 |
if [ $$ret != 0 ]; then break; fi; \
|
|
|
482972 |
for j in ${AMLMOD}; do \
|