Commit 4d0ee4ed authored by Daniel Silveira's avatar Daniel Silveira

Gitlab runner provides now a time-out error

Add TEST-DEF-0022 running
d39ba626 - Add TEST-DEF-00023
da120c00 - Add TEST-DEF-00500
133856ef - Definition of new HM tables of AIR
5dd9b70b - Upgrade HM to all test validation configurations
c1a67e45 - Add TEST-DEF-00510
40e610fa - New HM Configuration in all examples
f120388a - Add TEST-DEF-00540
d83f11e1 - Add TEST-DEF-00560

Refs #58
parent 7670a2ca
......@@ -38,6 +38,10 @@ stages:
- test_00021_sparc
- test_00022_sparc
- test_00023_sparc
- test_00500_sparc
- test_00510_sparc
- test_00540_sparc
- test_00560_sparc
- sconfig-arm
- sclean-build-arm
- sbuild-arm
......@@ -138,44 +142,91 @@ build_arm:
#00021_sparc: ## Failing in step 5
## tags:
## - sparc
# stage: test_00021_sparc
# script:
# - cd $AIR/examples/validation/TEST-DEF-00021
# - cp $AIR/../utils/gitlab-runner/* .
# - ./do_leon4_grmon.bash
# - cd $AIR
# environment:
# name: SPARC LEON4
#00022_sparc: ## Failing in step 5
## tags:
## - sparc
# stage: test_00022_sparc
# script:
# - cd $AIR/examples/validation/TEST-DEF-00022
# - cp $AIR/../utils/gitlab-runner/* .
# - ./do_leon4_grmon.bash
# - cd $AIR
# environment:
# name: SPARC LEON4
#00023_sparc: ## Failing in step 5
## tags:
## - sparc
# stage: test_00023_sparc
# script:
# - cd $AIR/examples/validation/TEST-DEF-00023
# - cp $AIR/../utils/gitlab-runner/* .
# - ./do_leon4_grmon.bash
# - cd $AIR
# environment:
# name: SPARC LEON4
00021_sparc:
# tags:
# - sparc
stage: test_00021_sparc
script:
- cd $AIR/examples/validation/TEST-DEF-00021
- cp $AIR/../utils/gitlab-runner/* .
- ./do_leon4_grmon.bash
- cd $AIR
environment:
name: SPARC LEON4
00022_sparc:
# tags:
# - sparc
stage: test_00022_sparc
script:
- cd $AIR/examples/validation/TEST-DEF-00022
- cp $AIR/../utils/gitlab-runner/* .
- ./do_leon4_grmon.bash
- cd $AIR
environment:
name: SPARC LEON4
00023_sparc:
# tags:
# - sparc
stage: test_00023_sparc
script:
- cd $AIR/examples/validation/TEST-DEF-00023
- cp $AIR/../utils/gitlab-runner/* .
- ./do_leon4_grmon.bash
- cd $AIR
environment:
name: SPARC LEON4
########################
00500_sparc:
# tags:
# - sparc
stage: test_00500_sparc
script:
- cd $AIR/examples/validation/TEST-DEF-00500
- cp $AIR/../utils/gitlab-runner/* .
- ./do_leon4_grmon.bash
- cd $AIR
environment:
name: SPARC LEON4
00510_sparc:
# tags:
# - sparc
stage: test_00510_sparc
script:
- cd $AIR/examples/validation/TEST-DEF-00510
- cp $AIR/../utils/gitlab-runner/* .
- ./do_leon4_grmon.bash
- cd $AIR
environment:
name: SPARC LEON4
00540_sparc:
# tags:
# - sparc
stage: test_00540_sparc
script:
- cd $AIR/examples/validation/TEST-DEF-00540
- cp $AIR/../utils/gitlab-runner/* .
- ./do_leon4_grmon.bash
- cd $AIR
environment:
name: SPARC LEON4
00560_sparc:
# tags:
# - sparc
stage: test_00560_sparc
script:
- cd $AIR/examples/validation/TEST-DEF-00560
- cp $AIR/../utils/gitlab-runner/* .
- ./do_leon4_grmon.bash
- cd $AIR
environment:
name: SPARC LEON4
########################
#Tests for ARM #
########################
# tags:
......
This diff is collapsed.
......@@ -13,7 +13,7 @@
test_end_partition="0"
repeat="1"
mtf="0.3"
ms_per_tick="10"
ms_per_tick="2"
type="TEST_GMV_VAL"
personality="RTEMS5">
<description>
......
......@@ -79,6 +79,7 @@ int test_main(void) {
/* Test Start ****************************************************** */
test_enter(21);
debug_libtest();
/* Test Steps ******************************************************* */
/* Test Step 0
......@@ -109,7 +110,6 @@ int test_main(void) {
/* Test Step 1
Initialize P0 TSAL; */
test_step_announce(1, 1);
printf ("ANNOUNCE 1\n");
/* Test step 1 code */
rc = -1;
......@@ -132,7 +132,6 @@ int test_main(void) {
Verify that the target partitions mode is the initial mode
(COLD_START). */
test_step_announce(2, 1);
printf ("ANNOUNCE 2\n");
/* Test step 2 code */
rc = -1;
......@@ -169,7 +168,6 @@ int test_main(void) {
Attempt to set mode of target partitions to WARM_START; invalid
trans: COLD_START->WARM_START. */
test_step_announce(6, 1);
printf ("ANNOUNCE 6\n");
/* Test step 6 code */
rc = -1;
......@@ -307,7 +305,6 @@ int test_main(void) {
test_step_announce(10, 1);
/* Test step 10 code */
rc = -1;
test_error = 0;
......@@ -679,7 +676,6 @@ int test_main(void) {
test_step_announce(27, 1);
/* Test step 27 code */
rc = -1;
test_error = 0;
......@@ -687,6 +683,7 @@ int test_main(void) {
/* first clean up the variable to be verified*/
target_status[i].OPERATING_MODE = -1;
printf ("Set op mode\n");
/* obtain mode in partition status of target partitions */
GET_A_PARTITION_STATUS(target_ids[i], &target_status[i], &rc);
......@@ -1277,7 +1274,8 @@ int test_main(void) {
rtems_task_wake_after(mtf_ticks * 2);
/* Test End */
test_exit(res, mtf_ticks);
printf ("text exit\n");
test_finish(res);
return 0;
}
......
......@@ -71,12 +71,16 @@ int test_main(void) {
/* Test Start ****************************************************** */
test_enter(21);
//debug_libtest();
/* Test Steps ******************************************************* */
/* Reboot monitoring */
reboot_count += 1;
//if (reboot_count > 0) pal_pprint_enter_part(1, NULL);
air_status_code_e status_code;
air_partition_status_t partition_status;
status_code = air_syscall_get_partition_status(-1, &partition_status);
//printf ("P1 REBOOTS %d\n", partition_status.restart_count);
reboot_count = partition_status.restart_count;
/* Test step 3 code */
rc = TSAL_INIT();
......@@ -85,7 +89,6 @@ int test_main(void) {
/* Test Step 3
Initialize P1 TSAL. */
test_step_announce(3, 1);
printf ("ANNOUNCE 3\n");
/* EXPECTED: */
if ((NO_ERROR == rc) && (0 == unexp_error)) {
......@@ -108,7 +111,6 @@ int test_main(void) {
Set partition mode to normal (via SET_PARTITION_MODE); trans:
COLD_START->NORMAL. */
test_step_announce(12, 1);
printf ("ANNOUNCE 12\n");
/* Test step 12 code */
......@@ -130,7 +132,7 @@ int test_main(void) {
rtems_task_wake_after(mtf_ticks);
}
} else if (reboot_count == 2) {
} else if ((reboot_count == 2) || (reboot_count == 3)){
/* Test Step 24
Set partition mode to normal (via SET_PARTITION_MODE); trans:
......@@ -156,7 +158,7 @@ int test_main(void) {
rtems_task_wake_after(mtf_ticks);
}
} else if (reboot_count == 3) {
} else if (reboot_count == 4) {
/* Test Step 30
Set partition mode to NORMAL (via SET_PARTITION_MODE); trans:
......@@ -182,7 +184,7 @@ int test_main(void) {
rtems_task_wake_after(mtf_ticks);
}
} else if (reboot_count == 4) {
} else if ((reboot_count == 5) || (reboot_count == 6)) {
/* Test Step 38
Set up the transitions to idle -- 1: Set partition mode to NORMAL
......@@ -204,14 +206,14 @@ int test_main(void) {
ret);
}
for (i = 0; i < 100; i++) {
rtems_task_wake_after(mtf_ticks);
}
// for (i = 0; i < 100; i++) {
// rtems_task_wake_after(mtf_ticks);
// }
}
/* Test End */
test_return();
test_finish(res);
return 0;
}
......
......@@ -70,11 +70,15 @@ int test_main (void) {
/* Test Start ****************************************************** */
test_enter(21);
debug_libtest();
/* Test Steps ******************************************************* */
/* Reboot monitoring */
reboot_count += 1;
air_status_code_e status_code;
air_partition_status_t partition_status;
status_code = air_syscall_get_partition_status(-1, &partition_status);
//printf ("P2 REBOOTS %d\n", partition_status.restart_count);
reboot_count = partition_status.restart_count;
/* Test step 4 code */
......@@ -84,7 +88,6 @@ int test_main (void) {
/* Test Step 4
Initialize P2 TSAL. */
test_step_announce(4,1);
printf ("ANNOUNCE 4\n");
/* EXPECTED: */
if ((NO_ERROR == rc) && (0 == unexp_error)) {
......@@ -107,7 +110,6 @@ int test_main (void) {
Set partition mode to normal (via SET_PARTITION_MODE); trans:
COLD_START->NORMAL. */
test_step_announce(13,1);
printf ("ANNOUNCE 13\n");
/* Test step 13 code */
......@@ -129,7 +131,7 @@ int test_main (void) {
rtems_task_wake_after(mtf_ticks);
}
} else if (reboot_count == 2) {
} else if ((reboot_count == 2) || (reboot_count == 3)){
/* Test Step 25
Set partition mode to normal (via SET_PARTITION_MODE); trans:
......@@ -155,7 +157,7 @@ int test_main (void) {
rtems_task_wake_after(mtf_ticks);
}
} else if (reboot_count == 3) {
} else if (reboot_count == 4) {
/* Test Step 31
Set partition mode to NORMAL (via SET_PARTITION_MODE); trans:
......@@ -181,7 +183,7 @@ int test_main (void) {
rtems_task_wake_after(mtf_ticks);
}
} else if (reboot_count == 4) {
} else if ((reboot_count == 5) || (reboot_count == 6)) {
/* Test Step 39
......@@ -204,14 +206,13 @@ int test_main (void) {
ret);
}
for (i=0; i<100; i++){
rtems_task_wake_after(mtf_ticks);
}
}
// for (i=0; i<100; i++){
// rtems_task_wake_after(mtf_ticks);
// }
} else if (reboot_count == 7) {
}
/* Test End */
test_return();
test_finish(res);
return 0;
}
......
......@@ -64,29 +64,31 @@ int test_main (void) {
int res = TEST_SUCCESS;
/* Target partition iterator */
int i;
/* Test specific variables ****************************************** */
RETURN_CODE_TYPE rc = -1;
/* Test Start ****************************************************** */
test_enter(21);
//debug_libtest();
/* Test Steps ******************************************************* */
/* Reboot monitoring */
reboot_count += 1;
air_status_code_e status_code;
air_partition_status_t partition_status;
status_code = air_syscall_get_partition_status(-1, &partition_status);
//printf ("P3 REBOOTS %d\n", partition_status.restart_count);
reboot_count = partition_status.restart_count;
/* test step 5 code */
rc = TSAL_INIT();
if (reboot_count == 0) {
/* Test Step 5
Initialize P3 TSAL. */
test_step_announce(5,1);
printf ("ANNOUNCE 5\n");
/* expected: */
if ((NO_ERROR == rc) && (0 == unexp_error)) {
......@@ -130,7 +132,7 @@ int test_main (void) {
rtems_task_wake_after(mtf_ticks);
}
} else if (reboot_count == 2) {
} else if ((reboot_count == 2) || (reboot_count == 3)){
/* Test Step 26
Set partition mode to NORMAL (via SET_PARTITION_MODE); trans:
WARM_START->NORMAL. */
......@@ -155,7 +157,7 @@ int test_main (void) {
rtems_task_wake_after(mtf_ticks);
}
} else if (reboot_count == 3) {
} else if (reboot_count == 4) {
/* Test Step 32
Set partition mode to NORMAL (via SET_PARTITION_MODE); trans:
COLD_START->NORMAL (repeated). */
......@@ -176,14 +178,14 @@ int test_main (void) {
ret);
}
for (i=0; i<100; i++){
rtems_task_wake_after(mtf_ticks);
}
// for (i=0; i<100; i++){
// rtems_task_wake_after(mtf_ticks);
//}
}
/* Test End */
test_return();
test_finish(res);
return 0;
}
......
......@@ -19,8 +19,7 @@ int test_printf (void) {
while(1) {
control_partition_init(1, TEST_MEMSHARE);
/* TODO : this value is somewhat random */
rtems_task_wake_after(50);
}
return 0;
}
\ No newline at end of file
}
......@@ -50,8 +50,6 @@ int test_main (void) {
/* Test generic variables ****************************************** */
/* repeatition iteration counter */
int repeat = 0;
/* function to test return code */
rtems_status_code ret = RTEMS_SUCCESSFUL;
/* total test result */
int res = TEST_SUCCESS;
......@@ -65,15 +63,15 @@ int test_main (void) {
NAME_TYPE P1name = "p1";
PARTITION_STATUS_TYPE target_status;
printf ("WELLCOME 0\n");
/* Test Start ****************************************************** */
test_enter(22);
debug_libtest();
/* Test Steps ******************************************************* */
/* Test Step 0
TSAL_INIT; set partition mode to NORMAL; expect NO_ERROR. */
test_step_announce(0,1);
printf ("ANNOUNCED 0\n");
/* Test step 0 code */
......@@ -91,11 +89,11 @@ int test_main (void) {
if ((0 == test_err) && (NO_ERROR == rc) && (0 == unexp_error)) {
res &= test_report(__FILE__, __LINE__, TEST_SUCCESS,
RESULT_EQUAL | RESULT_TYPE_VALUE,
ret);
rc);
} else {
res &= test_report(__FILE__, __LINE__, TEST_FAILURE,
RESULT_DIFF | RESULT_TYPE_VALUE,
ret);
rc);
}
rtems_task_wake_after(mtf_ticks);
......@@ -104,7 +102,6 @@ int test_main (void) {
Attempt to call GET_A_PARTITION_STATUS using an invalid target
partition id; expect INVALID_PARAM. */
test_step_announce(2,1);
printf ("ANNOUNCED 2\n");
/* Test step 2 code */
......@@ -115,11 +112,11 @@ int test_main (void) {
if ((INVALID_PARAM == rc) && (0 == unexp_error)) {
res &= test_report(__FILE__, __LINE__, TEST_SUCCESS,
RESULT_EQUAL | RESULT_TYPE_VALUE,
ret);
} else {
rc);
} else {
res &= test_report(__FILE__, __LINE__, TEST_FAILURE,
RESULT_DIFF | RESULT_TYPE_VALUE,
ret);
rc);
}
/* Test Step 3
......@@ -136,11 +133,11 @@ int test_main (void) {
if ((INVALID_PARAM == rc) && (0 == unexp_error)) {
res &= test_report(__FILE__, __LINE__, TEST_SUCCESS,
RESULT_EQUAL | RESULT_TYPE_VALUE,
ret);
rc);
} else {
res &= test_report(__FILE__, __LINE__, TEST_FAILURE,
RESULT_DIFF | RESULT_TYPE_VALUE,
ret);
rc);
}
/* Test Step 4
......@@ -157,11 +154,11 @@ int test_main (void) {
if ((NO_ERROR == rc) && (0 == unexp_error)) {
res &= test_report(__FILE__, __LINE__, TEST_SUCCESS,
RESULT_EQUAL | RESULT_TYPE_VALUE,
ret);
rc);
} else {
res &= test_report(__FILE__, __LINE__, TEST_FAILURE,
RESULT_DIFF | RESULT_TYPE_VALUE,
ret);
rc);
}
/* Test Step 5
......@@ -178,11 +175,11 @@ int test_main (void) {
if ((INVALID_PARAM == rc) && (0 == unexp_error)) {
res &= test_report(__FILE__, __LINE__, TEST_SUCCESS,
RESULT_EQUAL | RESULT_TYPE_VALUE,
ret);
rc);
} else {
res &= test_report(__FILE__, __LINE__, TEST_FAILURE,
RESULT_DIFF | RESULT_TYPE_VALUE,
ret);
rc);
}
/* Test Step 6
......@@ -199,11 +196,11 @@ int test_main (void) {
if ((INVALID_PARAM == rc) && (0 == unexp_error)) {
res &= test_report(__FILE__, __LINE__, TEST_SUCCESS,
RESULT_EQUAL | RESULT_TYPE_VALUE,
ret);
rc);
} else {
res &= test_report(__FILE__, __LINE__, TEST_FAILURE,
RESULT_DIFF | RESULT_TYPE_VALUE,
ret);
rc);
}
/* Test Step 7
......@@ -220,11 +217,11 @@ int test_main (void) {
if ((NO_ERROR == rc) && (0 == unexp_error)) {
res &= test_report(__FILE__, __LINE__, TEST_SUCCESS,
RESULT_EQUAL | RESULT_TYPE_VALUE,
ret);
rc);
} else {
res &= test_report(__FILE__, __LINE__, TEST_FAILURE,
RESULT_DIFF | RESULT_TYPE_VALUE,
ret);
rc);
}
rtems_task_wake_after(mtf_ticks);
......@@ -248,18 +245,18 @@ int test_main (void) {
res &= test_report(__FILE__, __LINE__, TEST_SUCCESS,
RESULT_EQUAL | RESULT_TYPE_VALUE,
ret);
rc);
} else {
res &= test_report(__FILE__, __LINE__, TEST_FAILURE,
RESULT_DIFF | RESULT_TYPE_VALUE,
ret);
rc);
}
rtems_task_wake_after(mtf_ticks);
/* Test End */
test_return();
test_return(res);
return 0;
}
......