Merge pull request #503 from SchmErik/aslts-dt

ASLTS: add option to only execute data table compiler tests
This commit is contained in:
Robert Moore 2019-08-29 13:09:31 -07:00 committed by GitHub
commit 6c3eb2a816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -238,7 +238,10 @@ CommentField {LabelName}{WhiteSpace}*:{WhiteSpace}{Comment}?$
int size = strlen (DtCompilerParsertext);
s=UtLocalCacheCalloc (size + 1);
AcpiUtSafeStrncpy (s, DtCompilerParsertext, size + 1);
DtCompilerParserlval.s = s;
DtCompilerParserlval.u = (DT_TABLE_UNIT *) UtLocalCacheCalloc (sizeof (DT_TABLE_UNIT));
DtCompilerParserlval.u->Value = s;
DtCompilerParserlval.u->Line = DtCompilerParserlineno;
DtCompilerParserlval.u->Column = DtCompilerParsercolumn;
DtLabelByteOffset = DtCompilerParserByteOffset;
DbgPrint (ASL_PARSE_OUTPUT, "Label: %s\n", s);
return (DT_PARSEOP_LABEL);

View File

@ -13,6 +13,7 @@ TEST_CASES=
TEST_MODES=
REBUILD_TOOLS=yes
BINCOMPONLY=no
DATATABLEONLY=no
EXECONLY=no
usage() {
@ -25,6 +26,7 @@ usage() {
echo " -u: Do not force rebuilding of ACPICA utilities (acpiexec, iasl)"
echo " -e: Perform the execution of aml files and omit binary comparison of regular aml and disassembled aml file."
echo " -b: Only perform binary comparison of regular aml and disasssembled aml file"
echo " -d: Only execute data table compiler/disassembler test"
echo ""
echo "Available test modes:"
@ -151,6 +153,10 @@ run_aslts() {
run_compiler_template_test
if [ "x$DATATABLEONLY" = "xyes" ]; then
return 0
fi;
if [ "x$TEST_MODES" = "x" ]; then
TEST_MODES="n32 n64 o32 o64"
fi
@ -189,7 +195,7 @@ RESET_SETTINGS
INIT_ALL_AVAILABLE_CASES
INIT_ALL_AVAILABLE_MODES
while getopts "c:m:ueb" opt
while getopts "c:m:uebd" opt
do
case $opt in
b)
@ -205,6 +211,10 @@ do
TEST_CASES="$OPTARG $TEST_CASES"
fi
;;
d)
DATATABLEONLY=yes
echo "Running only data table test"
;;
e)
EXECONLY=yes
echo "Running tests without binary comparisons"