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>
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>
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).
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>
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>
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.
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>
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>