summaryrefslogtreecommitdiff
path: root/api/GenerateTestFiles.cpp
Commit message (Collapse)AuthorAgeFilesLines
* For custom tests, initialize double counterpart of Float16 variablePirama Arumuga Nainar2016-03-311-0/+13
| | | | | | | | | | Bug: http://b/27512382 For functions with 'custom' test label, initialize an 'outDouble' variable which has the 'short' output value 'out' converted to double. Also, print this converted value in case of error. Change-Id: Iff4123f2103bb9ccad2028bd170f95ce3ebb8515
* Initialize Double field for Float16 parameterPirama Arumuga Nainar2016-03-231-0/+7
| | | | | | | | | Bug: http://b/27512382 Add missing initialization of the Double field corresponding to Float16 parameter to vector parameters when vector size is one. Change-Id: Ida81ebc6151019df164dede5f769d79d60c32afa
* Extend test generator to generate tests for Float16Pirama Arumuga Nainar2016-03-071-4/+52
| | | | | | | | | | | | http://b/27512382 Extend the test generator to add a short and double field to the Arguments class for Float16 parameters. Input short values get converted to double while initializating the Arguments class and output short values get converted to double before invoking Target.Floaty.couldBe(). Change-Id: I9848cb4b2ba7b79c5b77d849a4c48e827d24f64c
* Pass new parameters while generating Target objectPirama Arumuga Nainar2016-02-191-4/+41
| | | | | | | | | http://b/23536224 While generating tests, identify and pass FunctionType and ReturnType parameters to Target's constructor. Change-Id: I0e1be6279d21028175571d53a7def7fc197778eb
* Add rsForEachInternalYang Ni2015-10-231-3/+3
| | | | | | | | | | | | | | | | Bug: 23535985 Added a compiler intrinsic rsParallelFor to the runtime API, which is translated into an internal API (rsForEachInternal) by slang. Added a test to RsTest (for native) and RSTest_CompatLib (for support). Enhanced the auto api generator to handle ellipsis argument, intrinsics, internal-only APIs, and special level for API under development. Change-Id: I6e2cf3db868f426aa8e0b9a77732b66c1e6b9f03
* Provide better diagnostics on CTS failures.Jean-Luc Brouillet2015-08-041-8/+43
| | | | | | | | | | | | Intializes the arrays to a non-zero value to help diagnose what is causing the 0 return bug, i.e. is a zero found in b/22556317 because the buffer is not copied or because it is copied and all null? Also reports all the failures instead of stopping after the first one. See b/22556317 Change-Id: I5ad769616f120a847eebe1386c726daacb831fc7
* Move details of variable printing out of the generated code.Jean-Luc Brouillet2015-04-141-53/+16
| | | | | | This will make upcoming changes to support fp16 and double easier. Change-Id: I80605771906ae7b9751978fa91795848ef1710ba
* Fix a small parsing problem with arguments of type rs_matrix2x2, 3x3, 4x4.Jean-Luc Brouillet2015-04-091-1/+1
| | | | | | Also fix some style issues and added a missing comment. Change-Id: Ieaca181453f38f948bc2a5e3d183b264d7215413
* Allow specifications for a function to be found in more than one spec file.Jean-Luc Brouillet2015-03-241-5/+3
| | | | | | | | To enable the upcoming change that has rsClearOjbect, rsIsObject, and rsSetObject in two spec files (core & graphics), we need to change the generator. Change-Id: I87925dcbe199f11c217907343455b2e8a7a76ed4
* Shorten the generated test file names.Jean-Luc Brouillet2015-03-221-15/+17
| | | | | | Also place the generated files in their own directories. Change-Id: I51c1acf15810ec199d17cc2d6e63adebdc0fc3c9
* Generate all APIs.Jean-Luc Brouillet2015-03-201-0/+1039
This CL expands the generator to create all the .rsh files, not just the core_math one. To do so, processing of types (simple, struct, enums) and constants was added. .spec files corresponding to each .rsh file was created. Documentation was added. This CL also generates HTML documentation files. This generation will soon be upgraded. To make the code easier to expand, I've done fairly extensive refactoring. In a subsequent CL, the APIs will be regrouped in different header files to simplify learning the APIs. In an other, the documentation generation will be futher improved and incorporated in the actual online help. Also removes rs_path & related functions. Change-Id: I2c88554c9c6a8625233772b89e055fc6c4ad5da5