278 Commits

Author SHA1 Message Date
Erik Schmauss
69b6a3c50e ASLTS: add option to only execute data table compiler tests
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-27 10:25:29 -07:00
Erik Schmauss
7b0edf13a5 ASLTS: fix reference to ACPICA tools
In ASLTS script code, the ACPICA tools must be referenced through
variables that have been exported. If not, ASLTS uses ACPICA tools in
the existing path.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-23 13:52:05 -07:00
Erik Schmauss
a9f3b38f9d ASLTS: add iASL template test suite
For each template supported by iASL, this test suite does the
following:

    1) Compile with iASL
    2) Disassemble .aml file generated from 1)
    3) Re-compile .dsl file generated from 2)
    4) Use acpibin to compare files generated from 1) and 3) using
       acpibin

This test exercises the data table compiler as well as the data table
disassembler.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-14 13:54:56 -07:00
Robert Moore
01f9848222
Merge pull request #449 from SchmErik/pcc-fix-01
PCC operation region: fix if statement by correctly checking the SpaceId
2019-02-26 13:26:18 -08:00
Erik Schmauss
111934c313 ASLTS: adding PCC operation region tests
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-22 17:21:06 -08:00
Robert Moore
158b3583cd Test suite: makefile changes for new iASL error
Checks for illegal forward references, must be ignored
by some of the tests.
2019-02-22 10:38:46 -08:00
Robert Moore
4a6a10b5a7 Revert "Test suite: Update makefiles for new iASL error"
This reverts commit 65f57d734ce7036b8f8e081346835e3dd3c95979.

Some issues with these changes.
2019-02-22 09:49:17 -08:00
Robert Moore
65f57d734c Test suite: Update makefiles for new iASL error
iASL now detects illegal forward references.
This error must be ignored by some tests.
Makefiles updated.
2019-02-22 08:21:59 -08:00
Erik Schmauss
ff5a9c5437 Trivial: fix spelling mistakes
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-14 15:14:57 -08:00
Erik Schmauss
d39cd405e8 ASLTS: add flag to expect cross reference error during compilation
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-05 15:02:26 -08:00
Robert Moore
f446e7b05a ASLTS: Update all copyrights to 2019
All ASL code in the test suite.
2019-01-08 10:10:05 -08:00
Erik Schmauss
10c40902c3 ASLTS: Region: get rid of nested comments that cause converter error
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-10-24 13:27:15 -07:00
Robert Moore
76a8a65e9e
Merge pull request #409 from SchmErik/aslts_dev08
ASLTS: improve speed of building ACPICA tools by adding -j flag to make command
2018-09-26 09:22:59 -07:00
Robert Moore
e0e144189e Update for field access
Fix implemention of generic serial bus, cleanup for others.
2018-09-07 10:46:47 -07:00
Erik Schmauss
9ee7e533aa ASLTS: improve speed of building ACPICA tools by adding -j flag to make command
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-08-16 13:05:18 -07:00
Erik Schmauss
6ecc4fc073 ASLTS: adding package resolution with table load testing
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-05-07 15:17:04 -07:00
Robert Moore
e855bcebcd iASL: Add support to detect illegal forward references
Forward references have never been allowed within control methods,
and now there are illegal from module-level code (This makes
ACPICA compatible with "other" acpi implementations).

Both types of fwd refs now generate an error message (this is
also a new addition to iASL).
2018-04-20 09:43:09 -07:00
Erik Schmauss
051eccad30 ASLTS: parallelize ASLTS acpiexec execution for speed
This change adds parallelization of ASLTS execution via xargs. This
results in a performance gain of 2.3x (14m 22sec to 6m 7sec).
Various functions and variables are exported so that they can be used
in each run_test_case execution.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-28 13:08:12 -08:00
Erik Schmauss
f39e31e5d7 ASLTS: Change CH03 to use __LINE__ and __METHOD__ macros
This changes hard-coded digits to macros.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-26 15:32:23 -08:00
Erik Schmauss
12799888ae ASLTS: change M380-M387, M390, M391 to use the __LINE__ macro
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-16 13:38:43 -08:00
Erik Schmauss
671b9476f6 ASLTS: change CH04 to emit line numbers instead of index
This is done by replacing hardcorded index values with __LINE__ macro

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-16 12:37:39 -08:00
Erik Schmauss
a32eebec57 ASLTS: change formatting of ERR to emit decimal line numbers
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-14 16:51:16 -08:00
Erik Schmauss
e4af07e9b9 ASLTS: adding macros to ERR functions
This change replaces the first parameter of ERR with __METHOD__ in
bdemo testcases and replaces the third parameter of ERR with
__LINE__. The __METHOD macro evaluates to the current method and
__LINE__ evaluates to the current line number during compilation. By
doing these macros help clarify error messages in ASLTS.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-14 16:51:09 -08:00
Robert Moore
8faf6fca44 Integrate package handling with module-level code
This change completes the integration of the recent changes to
package object handling with the module-level code support.

For AcpiExec, the -ep flag is removed.
2018-02-07 12:47:58 -08:00
Robert Moore
1de399b3a5 ASLTS: Remove octal constants from common script
Some versions of bash, etc. will type a local variable as an
octal if initialization values are specified in octal.
2018-01-18 08:03:20 -08:00
Erik Schmauss
fef09f31c7 ASLTS: replace TS with __METHOD__ to improve style
This removes most of the TS objects which is used to store method names.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-01-04 14:15:36 -08:00
Robert Moore
c94962e710 ASLTS: Update all copyrights to 2018
All ASL code in the test suite.
2018-01-04 10:12:49 -08:00
Robert Moore
4ca62a8141 ASLTS: Automated cleanup, no functional changes
Mostly trailing spaces and extra lines at EOF.
2018-01-04 09:48:44 -08:00
Erik Schmauss
407244a52d ASLTS: converting files to ASL plus with converter
functional/control test case has been left unconverted for
readability of deeply nested control statements (if, switch, while)

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-11-10 14:36:41 -08:00
Erik Schmauss
754280d5d1 ASLTS: fix parsing of memory statistics
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-10-09 14:36:06 -07:00
[devel-bounces@acpica.org]
78ed290b17 ASLTS: provide proper PATH for acpibin in tests
Recent versions of ASLTS now use the acpibin utility, much like they
use acpiexec.  However, when use of acpibin was added, it was not
treated like acpiexec and was assumed to exist in whatever PATH a user
had set when running the tests.  When trying to use ASLTS in a very
pristine environment (i.e., no previous version of ACPICA user space
tools is available), portions of the test suite will produce false
failures because acpibin cannot be found and run.

This patch fixes ASLTS so that the use of acpibin is treated exactly
the same as acpiexec -- an environment variable must be defined (in
this case, $acpibin) with the location of the executable, aslts.sh
makes sure a value for the variable is set, Do uses $acpibin (instead
of assuming acpibin exists in a user's PATH), and the various bits
of documentation are updated to note the new environment variable.

Signed-off-by: Al Stone <ahs3@redhat.com>
2017-09-27 15:36:28 -07:00
Erik Schmauss
7f2ae61bda ASLTS: adding expected compilation failure flags for recursive methods that create named objects
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-09-15 16:51:18 -07:00
Erik Schmauss
9bebbe8d8a Makefile: continue compiling other test cases after failure
This change continues compilation of ASLTS test cases even
if one of the test cases fail. This is helpful when deliberate
compilation changes are made to iASL. When these compiler changes
occur, it is helpful for the test suite to run all the way to
completion.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-09-15 16:43:46 -07:00
Erik Schmauss
badfdbf54c ASLTS: Do: do not perform binary compare unless both files exist
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-09-15 16:34:30 -07:00
Erik Schmauss
1ed56f3402 ASLTS: script: fix ADD_FLAGS parameter for compilation and conversion targets
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-09-15 15:00:09 -07:00
Erik Schmauss
e3665e34bd ASLTS: add a 60 second timeout for loops
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-09-08 14:04:23 -07:00
Erik Schmauss
f6d83487a7 ASLTS: make stylistic adjustments to pass converter test
MT_MUTEX/DYNOBJ - converter does not support nested comments.
      Remove the nested comment so that it is just a single-line comment
EXC - converter does not currently support #include directives.
      replace these with ASL include statements.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-09-08 13:47:37 -07:00
Erik Schmauss
d6583fe044 ASLTS: add converter test sequence and rename all .dsl files to .asl
This is similar to the ASLTS disassembler test sequence.
The converter test sequence converts each test case using iasl -ca flag
and then recompiles using flags from a normal test case compilation.
After recompilation, normally compiled AML is compared with the
converted and recompiled AML.

Converter test sequence removes all .dsl files after testing. Because
of this, all .dsl files that belong in the ASLTS directory needs to be
renamed as .asl.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-09-08 13:47:37 -07:00
Erik Schmauss
f306328d75 ASLTS: asltsrun: add functionality to save the output from Do 2 to the result directory
This is a convenient way to look at the difference between the current and
previous ASLTSL run if there exists a difference.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-31 16:53:36 -07:00
Erik Schmauss
c5adbb87d2 ASLTS: scripts: trivial syntax edits, no functional change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-31 11:15:46 -07:00
Erik Schmauss
2e492ed995 ASLTS: script: removing debug messages, no functional change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-30 15:05:37 -07:00
Erik Schmauss
be0c7aa577 ASLTS: Do: adding binary comparison for the aslplus and aslminus targets
This is intended to be used as a part of the disassembler test
sequence in order to ensure that compiling, disassembling and
recompiling has the same effect as simply compiling the ASL files.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-30 15:05:37 -07:00
Erik Schmauss
d79775d864 ASLTS: script: add targets for disassembler test sequence
The disassembler test sequence is as follows:

Given a test case ASL file, it will compile, disassemble and re-compile.
The above procedures result in an AML file. This should be then compared
to a file that is compiled by ASLTS for a normal compilation by using
the acpibin utility (not yet implemented).

This sequence of commands ensures that the disassembler does not inject
any unwanted code in the AML.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-30 15:05:37 -07:00
Erik Schmauss
6c50a9e3b5 ASLTS: Makefile: remove compile-disassemble-recompile from install_all_modes_of_test_case
Compile-disassemble-recompile will be in different targets. This means that
the OPT argument is no longer needed in install_all_modes_of_test_case.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-30 15:05:37 -07:00
Erik Schmauss
05bc03a5df ASLTS: Makefile: splitting iASL flags to output and non-output based flags
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-30 15:05:37 -07:00
Erik Schmauss
ac8f111efc ASLTS: Do: moving NPARAM checking outside of run_asl_compiler for cleanliness
This NPARAM counts the amount of enabled test cases given to the Do script

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-30 15:05:37 -07:00
Lv Zheng
5a52881149 iasl: Move aslversion determination logic from Makefile.def to Do script 2017-08-30 15:05:37 -07:00
Lv Zheng
bf8ee64902 ASLTS: Split install target into install_n32/n64/s32/s64
This patch splits install target into install_n32/n64/s32/s64 targets
so that they can be invoked from "Do" script separately. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-08-30 15:05:37 -07:00
Lv Zheng
66b85dc874 ASLTS: Allow cases/modes to be specified for aslts compile
This patch adds support in Do to allow test cases/modes to be specified
in "Do 0" mode - build aslts aml test cases. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-08-30 15:05:37 -07:00
Lv Zheng
421e5d9439 ASLTS: Convert make_install into make_target
Convert make_install into make_target so that other targets can be used
in Do script. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-08-30 15:05:37 -07:00