summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #409 from SchmErik/aslts_dev08Robert Moore2018-09-261-2/+4
|\ | | | | ASLTS: improve speed of building ACPICA tools by adding -j flag to make command
| * ASLTS: improve speed of building ACPICA tools by adding -j flag to make commandErik Schmauss2018-08-161-2/+4
| | | | | | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* | Update for field accessRobert Moore2018-09-071-591/+365
|/ | | | Fix implemention of generic serial bus, cleanup for others.
* ASLTS: adding package resolution with table load testingErik Schmauss2018-05-072-0/+74
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* iASL: Add support to detect illegal forward referencesRobert Moore2018-04-202-2/+6
| | | | | | | | | 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).
* ASLTS: parallelize ASLTS acpiexec execution for speedErik Schmauss2018-02-282-29/+28
| | | | | | | | | 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>
* ASLTS: Change CH03 to use __LINE__ and __METHOD__ macrosErik Schmauss2018-02-26159-1620/+1620
| | | | | | This changes hard-coded digits to macros. Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: change M380-M387, M390, M391 to use the __LINE__ macroErik Schmauss2018-02-163-594/+594
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: change CH04 to emit line numbers instead of indexErik Schmauss2018-02-1690-711/+711
| | | | | | This is done by replacing hardcorded index values with __LINE__ macro Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: change formatting of ERR to emit decimal line numbersErik Schmauss2018-02-141-5/+2
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: adding macros to ERR functionsErik Schmauss2018-02-14266-3809/+3809
| | | | | | | | | | 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>
* Integrate package handling with module-level codeRobert Moore2018-02-071-1/+1
| | | | | | | 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.
* ASLTS: Remove octal constants from common scriptRobert Moore2018-01-181-1/+1
| | | | | Some versions of bash, etc. will type a local variable as an octal if initialization values are specified in octal.
* ASLTS: replace TS with __METHOD__ to improve styleErik Schmauss2018-01-04125-5645/+5285
| | | | | | This removes most of the TS objects which is used to store method names. Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: Update all copyrights to 2018Robert Moore2018-01-041273-1275/+1275
| | | | All ASL code in the test suite.
* ASLTS: Automated cleanup, no functional changesRobert Moore2018-01-04513-36774/+36255
| | | | Mostly trailing spaces and extra lines at EOF.
* ASLTS: converting files to ASL plus with converterErik Schmauss2017-11-10734-494758/+573753
| | | | | | | 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>
* ASLTS: fix parsing of memory statisticsErik Schmauss2017-10-091-21/+19
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: provide proper PATH for acpibin in tests[devel-bounces@acpica.org]2017-09-274-6/+27
| | | | | | | | | | | | | | | | | | | 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>
* ASLTS: adding expected compilation failure flags for recursive methods that ↵Erik Schmauss2017-09-153-0/+3
| | | | | | create named objects Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* Makefile: continue compiling other test cases after failureErik Schmauss2017-09-151-5/+3
| | | | | | | | | | 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>
* ASLTS: Do: do not perform binary compare unless both files existErik Schmauss2017-09-151-6/+10
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: script: fix ADD_FLAGS parameter for compilation and conversion targetsErik Schmauss2017-09-151-8/+8
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: add a 60 second timeout for loopsErik Schmauss2017-09-081-1/+1
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: make stylistic adjustments to pass converter testErik Schmauss2017-09-082-9/+9
| | | | | | | | | 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>
* ASLTS: add converter test sequence and rename all .dsl files to .aslErik Schmauss2017-09-084-1/+65
| | | | | | | | | | | | | | 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>
* ASLTS: asltsrun: add functionality to save the output from Do 2 to the ↵Erik Schmauss2017-08-311-0/+13
| | | | | | | | | 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>
* ASLTS: scripts: trivial syntax edits, no functional changeErik Schmauss2017-08-312-2/+6
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: script: removing debug messages, no functional changeErik Schmauss2017-08-301-3/+0
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: Do: adding binary comparison for the aslplus and aslminus targetsErik Schmauss2017-08-301-1/+47
| | | | | | | | 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>
* ASLTS: script: add targets for disassembler test sequenceErik Schmauss2017-08-303-12/+97
| | | | | | | | | | | | | | 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>
* ASLTS: Makefile: remove compile-disassemble-recompile from ↵Erik Schmauss2017-08-301-60/+1
| | | | | | | | | 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>
* ASLTS: Makefile: splitting iASL flags to output and non-output based flagsErik Schmauss2017-08-301-1/+2
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: Do: moving NPARAM checking outside of run_asl_compiler for cleanlinessErik Schmauss2017-08-301-26/+26
| | | | | | This NPARAM counts the amount of enabled test cases given to the Do script Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* iasl: Move aslversion determination logic from Makefile.def to Do scriptLv Zheng2017-08-303-68/+42
|
* ASLTS: Split install target into install_n32/n64/s32/s64Lv Zheng2017-08-303-131/+192
| | | | | | | 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>
* ASLTS: Allow cases/modes to be specified for aslts compileLv Zheng2017-08-303-27/+63
| | | | | | | 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>
* ASLTS: Convert make_install into make_targetLv Zheng2017-08-301-27/+26
| | | | | | | 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>
* ASLTS: exc: change test case to allow implicit conversion of strings with ↵Erik Schmauss2017-08-101-1/+4
| | | | | | | | | | | | "0x" to hex The ACPI spec's definition of implicit conversion does not allow '0x' within strings that are converted to integers. Without '0x' the number being converted could be mistaken as a decimal number. Instead we are allowing with 0x or no 0x and both versions are implicitly converted to hex. Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* Tests: Fix an incorrect argument countRobert Moore2017-07-271-1/+1
| | | | | The _ERR method requires three arguments, not two. Eliminates a warning message.
* ASLTS: resolving conflict from rebasingErik Schmauss2017-07-21218-3928/+3928
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: CH03 and CH04 is intended to take line numbers as arguments rather ↵Erik Schmauss2017-07-211-2/+2
| | | | | | than a number indicating the "index of error". Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: changing the third argument of ERR to __LINE__ to print line numbers ↵Erik Schmauss2017-07-21335-6337/+6337
| | | | | | instead of indices. Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: getting rid of unnecessary error reporting.Erik Schmauss2017-07-211-4/+1
| | | | | | This error information is redundant. Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: descriptor: update test buffers to include shared bit in V2 descriptorsErik Schmauss2017-07-173-54/+54
| | | | | | | | | | | | | | | These tests compare a resource descriptor and an equivalent buffer to ensure proper resource descriptor compilation. The buffer does not account for the shared bit for V2 resource descriptors (see section 6.4.3.8.2.x in the ACPI 6.2 spec). This commit changes this test buffer to include the shared bit (the 3rd bit of the 6th byte of V2 resource descriptors). The specification is expected to reflect these changes (sections 6.4.3.8.2.1, 6.4.3.8.2.2, and 6.4.3.8.2.3). Updated buffers include buffers equivalent to I2cSearialBusv2, SpiSerialBusv2, and UartSerialBusv2 Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: External: adding testcases from bz1389 by racerrehabmanErik Schmauss2017-06-091-0/+43
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* ASLTS: misc: adding ASL/ASL+ converter sampleErik Schmauss2017-05-311-0/+84
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* Merge pull request #252 from zetalog/acpica-asltsRobert Moore2017-05-254-30/+11
|\ | | | | Acpica aslts
| * ASLTS: exc_result2: Fix old m689 breakage (exceptional)Lv Zheng2017-05-031-0/+4
| | | | | | | | | | | | | | | | When tests are meant to return exceptions, proceeding causes unexpected number of exceptions left. This patch fixes such issues by interrupting the tests when exception is expected. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>
| * ASLTS: rstore: Fix old m689 breakage (store matrix)Lv Zheng2017-05-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The p6a0 store matrix is used to indicate "Stroe" allowable types while b67a contains indexes to this matrix. 1. Row[3] is used for Package target, Row[4] is used for Method target, Row[5] is used for Non-computational data (Device/Event/...) target. 2. Col[2] is used for FIXED fields result, Col[3] is used for Computational data (Integer/String/Buffer) result, Col[4] is used for Package result. As it is not possible to: 1. Store(Package/Method/Noncomputation, Field/Computationl/Package) 2. Store(Method/Noncomputation, Field/Computational) We must change the matrix to reflect the validated Windows behavior. By doing so, several m689 failures are fixed. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>