ipa-kernel-tests: Pull latest changes

Updating the kernel tests to the latest sha1 form the old project:
367590c22ab9d77f22290f0b11bd55b8c9e050cd

Specifically porting the changes:
1. I93a09b45ac1e04107ddf0f5af0782251e45dfaaf
2. Ic816ed3da12cb82a23a745467d6ed818ce569492

Change-Id: I71fe69ba02f3134d3ab9d2a8d5cf6b95ef7694ef
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
This commit is contained in:
Ilia Lin
2021-05-06 11:38:16 +03:00
parent 389f327c0f
commit 253428ee49
6 changed files with 48 additions and 41 deletions

View File

@@ -91,6 +91,7 @@ const char *ipa_hw_type_name[] = {
"4.5",
"4.9",
"5.0",
"5.1",
"MAX"
};
@@ -199,10 +200,15 @@ int chooserMode() {
const char* res;
int result = 0;
char input_str[4];
char* temp;
printf("Welcome to the ip_accelerator\nChoose an option:\n");
printf("1) Run tests\n2) Run suites\n3) Exit\nChoose an option: ");
res = fgets(input_str, sizeof(input_str), stdin);
temp = fgets(input_str, sizeof(input_str), stdin);
if (!temp) {
printf("Error: fgets returned nullptr !!");
return -1;
}
type = atoi(input_str);
switch((enum ipa_test_type)type) {
case TEST:
@@ -210,7 +216,11 @@ int chooserMode() {
showTests();
printf("Choose which test you wish to run: \n");
fflush(stdin);
res = fgets(input_str, sizeof(input_str), stdin);
temp = fgets(input_str, sizeof(input_str), stdin);
if (!temp) {
printf("Error: fgets returned nullptr !!");
return -1;
}
test_num = atoi(input_str);
if ( test_num > testmanager->m_testList.size()) {
printf("Invalid test number. Try again\n");
@@ -231,7 +241,11 @@ int chooserMode() {
showSuits();
printf("Choose which suite you wish to run: \n");
fflush(stdin);
res = fgets(input_str, sizeof(input_str), stdin);
temp = fgets(input_str, sizeof(input_str), stdin);
if (!temp) {
printf("Error: fgets returned nullptr !!");
return -1;
}
suite_num = atoi(input_str);
if (suite_num < 0 || suite_num > MAX_SUITES) {
printf("Invalid test number. Try again\n");