Add option to generate random inputs to tests.

Change-Id: I940e6405fbd964bbe8c815f9fc8466d04efe4bbf
This commit is contained in:
Mrozek, Michal
2018-12-06 14:14:41 +01:00
committed by sys_ocldev
parent c18d0d7634
commit 17de3fbeb9

View File

@ -61,6 +61,7 @@ PRODUCT_FAMILY defaultProductFamily = productFamily;
extern bool printMemoryOpCallStack;
extern std::string lastTest;
bool generateRandomInput = false;
void applyWorkarounds() {
{
@ -275,6 +276,8 @@ int main(int argc, char **argv) {
if (i < argc) {
dieRecovery = atoi(argv[i]) ? 1 : 0;
}
} else if (!strcmp("--generate_random_inputs", argv[i])) {
generateRandomInput = true;
}
}