221 Commits

Author SHA1 Message Date
Robert Moore
a927068705 Tests/ASLTS: Fix a failure related to the OEM_TABLE_ID_SIZE.
This patch fixes the failure reported for the following ASLTS test:
 exceptions:exc_tbl:TLT1.tsth (32 bit slack mode)

The "FAIL" is emitted due to the iasl flag "-r 1" that is used to compile
this case. The implicit converted integer size is then 8, which is not
greater than ACPI_OEM_TABLE_ID_SIZE, thus no exception can rise.  Lv Zheng.

The command to confirm this test:
 aslts.sh -m s32 -c exc_tbl -t
The result in __STATUS_OF_TESTS before applying this fix:
 ":STST:exceptions:exc_tbl:TLT1.tsth:FAIL:Errors # 01 00 00 00:"
The result in __STATUS_OF_TESTS after applying this fix:
 ":STST:exceptions:exc_tbl:TLT1.tsth:PASS:"
2013-11-07 14:03:15 -08:00
Robert Moore
b018dde949 Tests/ASLTS: Enable CHECKSUM_ABORT to allow feature to be tested properly.
This patch fixes the failure reported for the following ASLTS test:
 exceptions:exc_tbl:TLD1.tstf

The "FAIL" is emitted due to the lackness of AE_BAD_CHECKSUM exception
generation which can be fixed by compiling acpiexec to generate a different
version for ASLTS environment.  Lv Zheng.

The command to confirm this test:
 aslts.sh -c exc_tbl -t
The result in __STATUS_OF_TESTS before applying this fix:
 ":STST:exceptions:exc_tbl:TLD1.tstf:FAIL:Errors # 02 00 00 00:"
The result in __STATUS_OF_TESTS after applying this fix:
 ":STST:exceptions:exc_tbl:TLD1.tstf:PASS:"
2013-11-07 13:57:37 -08:00
Robert Moore
e5ba060a1e Tests/ASLTS: Add options to specify individual test cases and modes.
This patch adds support to allow testers running aslts.sh to optionally
specify individual test modes and test cases. This can improve ACPICA
test efficiency. Lv Zheng.
2013-11-07 13:50:02 -08:00
Robert Moore
0d93cbf26f ASLTS: Update tests for FieldUnit and BufferField.
Fixes errors in ASLTS due to an incorrect interpretation of the
use of references for Field Units and Buffer Fields. Per the ACPI
spec, "Fields permanently retain their types and cannot be changed".
Fixes those errors that incorrectly expected the Field type to change.
David Box.

Please enter the commit message for your changes. Lines starting
2013-09-26 11:49:08 -07:00
Robert Moore
b26683cc29 Tests/AAPITS: Insert legal header in all source modules (.c, .h)
Insert missing Intel legal header in all modules.
2013-08-21 12:20:49 -07:00
Robert Moore
6ac67e15da ASLTS: Serialize all methods that create named objects.
This change greatly reduces the remark that iASL emits when a
non-serialized control method creates named objects. David Box.
2013-08-02 13:07:39 -07:00
Robert Moore
9e07e469a4 ASLTS: Some additional fixes to support recent DerefOf behavior change.
Can no longer DerefOf on an uninitialized package element.
2013-07-25 09:11:20 -07:00
Robert Moore
342052a9b8 ASLTS: Handle new exception for DerefOf operator.
Changed the error checking function to correctly expect two errors
(instead of one) and to correctly check for the exception
AE_AML_UNINITIALIZED_ELEMENT when unitialized objects are referenced.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
2013-07-25 07:56:30 -07:00
Robert Moore
346762a661 ASLTS: Handle ACPICA change that now causes multiple errors in test
M708 expects errors. Recent DerefOf change in ACPICA now causes two
errors instead of one. This change fixes the test to expect this.
David Box.
2013-07-24 12:01:43 -07:00
Robert Moore
0c61f39d2b ASLTS: Fix for region test.
Fixes AE_NOT_EXIST error by including a conditional for the
EmbeddedControl which does not have a handler in the interpreter.

Also fixes AML_NO_RETURN_VALUE errors due the Derefof patch fix
by referencing the correct value that should be returned and checked
against by a Derefof operation.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
2013-07-23 13:56:13 -07:00
Robert Moore
2d680bf6e4 ASLTS: Update bdemo/0241 test to expect two errors, not just one.
Change in ACPICA behavior after DeRefOf fix.
2013-07-17 13:05:05 -07:00
Robert Moore
cf8b77624f Tests/ASLTS: miscellaneous fixes to resolve test errors.
Reduces runtime error count(s). Chao Guan.
2013-07-03 12:01:11 -07:00
Robert Moore
b0dcf1681a Tests: Misc aslts error fixes for Identity2MS test.
Fixes some problems with the test itself, reducing runtime errors.
Chao Guan.
2013-06-21 09:45:34 -07:00
Robert Moore
a46f7ba7e8 ASLTS: Fix for test MS2C.
Fixes a bug in this test. Chao Guan.
2013-06-04 14:36:03 -07:00
Robert Moore
3d39b6d688 Tests/ASLTS: Update master script for recent makefile changes.
bin32/bin64 changed to simple "bin".
2013-05-09 09:21:59 -07:00
Robert Moore
fad0d289af Deploy ACPI_DEBUG_INITIALIZE across all ACPICA utilities.
This macros enables per-host and per-compiler initialization
of debug information/output, etc. for the debug versions of the
utilities only.
2013-05-02 11:40:20 -07:00
Robert Moore
80c3cc3255 ASLTS: Miscellaneous tests updates/fixes.
STST:exceptions:exc_tbl:TUL1.tst5
STST:exceptions:exc_tbl:TLT1.tsth
STST:exceptions:exc_tbl:TLD1.tste.0
STST:Identity2MS:abbu:ms14

Chao Guan.
2013-04-16 12:40:23 -07:00
Robert Moore
994f5e3bfa Tests/ASLTS: Global update for exception handling.
Now some differences between slack mode and regular mode.
Chao Guan.
2013-03-07 14:01:50 -08:00
Robert Moore
8509166557 Tests/ASLTS: Fix all cases of "return value not used".
This is now an error in iASL, so must be fixed in the test suite.
Chao Guan.
2013-03-07 13:58:57 -08:00
Robert Moore
05f01ddd47 Tests: Update ASLTS for new iASL package validation.
Fixes a compile error in m764 - GPIO test.
2013-02-13 08:03:36 -08:00
Robert Moore
027053cf58 Test suites: Miscellaneous ASLTS updates.
Updates to resolve and reduce runtime test errors.
Chao Guan.
2013-02-06 13:33:52 -08:00
Robert Moore
c0a9146fa9 Tests: Update all copyrights to 2013.
Test suites only. Includes headers in all ASL test code.
2013-01-08 09:25:38 -08:00
Robert Moore
9eb35c2518 ASLTS: Remove an invalid error condition.
Remove another issue with the m006 method.
Chao Guan.
2012-12-14 09:30:58 -08:00
Robert Moore
bfc6a107b3 ASLTS: Remove a couple of incorrect tests.
Two tests found to be based on incorrect assumptions about ACPI and
ACPICA behavior. Chao Guan.
2012-12-12 08:47:37 -08:00
Robert Moore
aa3b6824ac Tests: Fix problem with Increment/Decrement ASL tests.
These operators do not change the type of the target object, due
to implicit conversion rules. Chao Guan.
2012-12-07 10:10:03 -08:00
Robert Moore
016e87a5a6 ASLTS: Fix several issues with mutex tests.
Global acquire/release tests are note valid, removed.
2012-11-29 14:01:58 -08:00
Robert Moore
187747bca3 ASLTS: update package name for the bug demo test (bdemo).
Change name from bug-demo to bdemo because this matches the source
directory structure. Chao Guan.
2012-11-27 08:50:27 -08:00
Robert Moore
53f8c132e4 ASLTS: Update for ObjectType syntax change.
A method invocation is no longer legal as an argument to ObjectType.
This is because the interpreter cannot determine the difference between
a simple ObjectType on a method versus a method invocation that is
intended to return an object to be typed.

This is pending as a change to the ACPI specification.
2012-11-26 09:41:27 -08:00
Robert Moore
4fbff1f055 ASLTS: Update generation/execution scripts.
Improve ease-of-use and clean up extraneous summary output.
2012-11-21 11:14:41 -08:00
Robert Moore
8f69e2b6f8 ASLTS: Remove a test case for ObjectType operator.
Removed a test that invokes a control method for an ObjectType argument.
This does not work properly (method is not invoked), and the ability
to use this construct is being removed from the grammar for ObjectType.
(Requires a change to the ACPI specification.) Chao Guan.
2012-11-16 09:01:17 -08:00
Robert Moore
c93543b857 ASLTS: Remove test that tests a nearly impossible condition.
For LoadTable tests, remove the the test that uses Load() to load a
table, then unloads the table, then uses LoadTable to load the same
table. This would be highly improbable in the real world.
Chao Guan.
2012-11-16 08:53:53 -08:00
Robert Moore
c2d6c80dfa ASLTS: Update for changed exception codes for LoadTable operator.
Changed AE_BAD_PARAMETER to AE_AML_STRING_LIMIT in acpica.
Chao Guan.
2012-11-16 08:49:25 -08:00
Robert Moore
947575f335 ASLTS: Remove an invalid/obsolete test case.
Test mf77 is an invalid test case that also fails on Windows.
This change comments out the test permanently.  Chao Guan.
2012-11-09 08:43:11 -08:00
Robert Moore
f63f02b481 ASLTS: Fix for several incorrect AE_AML_MUTEX_ORDER errors.
Problem was with the test itself.
Chao Guan.
2012-11-08 14:11:05 -08:00
Robert Moore
1dbda3d3e1 Tests: Miscellaneous ASLTS fixes.
Remove several tests that cause errors because the tests are invalid
or the basis of the tests are invalid. Fix several error reporting
issues. Guan Chao.
2012-10-11 08:57:11 -07:00
Robert Moore
8ab2f175bf Tests/aapits: Remove extraneous spaces in C source code.
Remove extra spaces after periods and commas.
2012-09-27 09:39:08 -07:00
Robert Moore
5cf391810f Fix some typos in comments. No functional changes.
Some small fixes within commments. Colin Ian King.
2012-09-25 12:28:13 -07:00
Robert Moore
c0b396e9a2 iASL/Tools: Cleanup empty lines at file start and end.
Maintenance for source code consistency.
2012-09-21 13:45:48 -07:00
Robert Moore
8086d9e839 Tests/AAPITS: return statement audit.
Ensure that all normal return statements surround the return
expression (value) with parens, for consistency.
2012-09-21 09:51:55 -07:00
Robert Moore
54983bb3f6 Test Suites: Update ASLTS object reference tests.
Fixes a couple bugs in the object reference tests.
Guan Chao.
2012-09-13 09:37:51 -07:00
Robert Moore
3d75370ac8 Test Suites: Add more debug info to ASLTS makefile.
Emits more information about each compile to the compile log
file.
2012-08-31 13:06:10 -07:00
Robert Moore
7bcb9f04c0 Test suites: Several fixes for ASLTS recursion subtest.
Fixes a couple bugs that allow the test to run without error.
Chao Guan.
2012-08-31 12:27:46 -07:00
Robert Moore
33b1aae263 Remove all use of deprecated _GTS and _BFS methods.
The _GTS (Going To Sleep) and _BFS (Back From Sleep) methods are
essentially deprecated and will probably be removed from the ACPI
specification. Windows does not invoke them, and reportedly never
will. The final nail in the coffin is that the ACPI specification
states that these methods must be run with interrupts off, which
is not going to happen in a kernel interpreter. Tang Feng.
Note: Linux has removed all use of the methods also. It was discovered
that invoking these functions caused failures on some machines,
probably because they were never tested since Windows does not
call them.
2012-08-09 12:57:11 -07:00
Robert Moore
b3e9f9a93b Tests: Update aslts for AcpiExec SSDT1 table changes.
Some tests depend on the SSDT1 table that is defined and loaded
by AcpiExec code.
2012-07-09 13:41:48 -07:00
Robert Moore
5ff986a2a9 Introduce AcpiOsWaitEventsComplete interface.
This interface will block until asynchronous events like notifies
and GPEs are complete. Within ACPICA, it is called before a notify or GPE
handler is removed. ACPICA BZ 868.
2012-05-16 13:36:07 -07:00
Robert Moore
01d5902500 Tests: Update master ASLTS makefile for test messages.
Fix message output to emit correct iASL flags.
2012-05-02 13:39:56 -07:00
Robert Moore
c760d1f111 AcpiExec: Update to test multiple notify handler support.
Installs/removes multiple notify handlers. Also update grammar.asl
to test multiple handlers.
2012-04-20 09:19:48 -07:00
Robert Moore
5a77df1622 Tests/ASLTS: Update for iASL/descriptor fixes.
Update for iASL fix for StartDependendent* descriptors. The iASL bug
did not take into account the length of these descriptors, affecting
the offsets for any resource tags that follow.
2012-04-06 14:16:48 -07:00
Robert Moore
ac3c089229 Tests/ASLTS: Update error output routines, reformat output.
Cleanup output, add decimal values in addition to hex values for
integers.
2012-04-06 14:15:59 -07:00
Robert Moore
4d6063a105 Tests/ASLTS: Reduce warnings related to use of Switch().
Serialize methods that use Switch(), use ToInteger where appropriate.
2012-04-04 14:15:37 -07:00