297 Commits

Author SHA1 Message Date
Robert Moore
8d285e942c Remove some extra blank lines
Mostly in generate and tests.
2020-01-22 08:10:39 -08:00
Robert Moore
1c43d6da1d ASLTS: Update all copyrights to 2020
All ASL code in the test suite.
2020-01-09 14:31:21 -08:00
Erik Schmauss
7d27237a9d ASLTS: additional fixes for 32-bit optimized mode
fixes were made in onamedloc and rstore

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-12 13:46:32 -08:00
Erik Schmauss
4fb441d1dd ASLTS: abbu: fixing tests based on CreateField() changes 2019-12-11 15:52:49 -08:00
Erik Schmauss
c4ba8f40ad ASLTS: bdemo: update expected values due to CreateField() change
Test cases updated: 65, 67, 155, 161, 170, 191

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-11 15:52:34 -08:00
Erik Schmauss
4f994c0844 ASLTS: exc_operand2: fixing expected values due to CreateField() change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-11 15:51:01 -08:00
Erik Schmauss
304ad70bc1 ASLTS: exc: updating expected behavior to reflect CreateField() change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-11 15:51:01 -08:00
Erik Schmauss
8ad6f6b5a0 ASLTS: rstore, rcopyobject: fix expected values to account for CreateField() change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-11 15:51:01 -08:00
Erik Schmauss
a085f79b18 ASLTS: oreftonamed: change expected output to reflect changes in CreateField()
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-11 15:51:01 -08:00
Erik Schmauss
4dc5207d25 ASLTS: onamedglob: fix expected values due to CreateField() change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-11 15:51:01 -08:00
Erik Schmauss
340f83ee49 ASLTS: onamedloc: fixing expected values to reflect CreateField() change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-11 15:51:01 -08:00
Erik Schmauss
94e1af1876 ASLTS: namespace: fixing values to reflect CreateField() changes
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-11 15:51:01 -08:00
Erik Schmauss
a46bb4cbd6 ASLTS: misc: fixing code to reflect CreateField() change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-11 15:51:01 -08:00
Erik Schmauss
8ab1142a68 ASLTS: region: fixing expected values to reflect CreateField() change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-11 15:51:01 -08:00
Erik Schmauss
c6b7deb500 ASLTS: bfield: fixing results to align with CreateField() changes
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-11 15:51:01 -08:00
Erik Schmauss
8e3da86214 ASLTS: Reference: clean up and fix expected values for CreateField() behavior change
Clean up involves adding line numbers to error check control methods

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-11 15:51:01 -08:00
Erik Schmauss
cef0fbbd8e ASLTS: control: add expected compiler error for duplicate case statements
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-12-11 09:44:17 -08:00
Robert Moore
fb492456ac badcode.asl: Update the compile-time statistics
Output from iASL.
2019-11-14 13:46:25 -08:00
Robert Moore
7819219b06 ASLTS: Remove trailing spaces
In the .asl files
From: ehaouas@noos.fr
2019-11-07 13:05:52 -08:00
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