|
71 | 71 | # Unit tests |
72 | 72 | if [[ "$TEST_TYPE" == *"UNIT"* ]]; then |
73 | 73 |
|
| 74 | + SECONDS=0 |
| 75 | + |
74 | 76 | /bin/bash "$SCRIPT_DIR/unit-tests.sh" run unit "$BUILD_DIR" "$SRC_DIR" "$RESULTS_DIR" $VM_MAX_PARALLEL_TESTS |
75 | 77 | /bin/bash "$SCRIPT_DIR/unit-tests.sh" print-summary unit "$BUILD_DIR" "$SRC_DIR" "$RESULTS_DIR" $VM_MAX_PARALLEL_TESTS |
76 | 78 |
|
| 79 | + duration=$SECONDS |
| 80 | + |
77 | 81 | echo "tests_suites=$(/bin/bash "$SCRIPT_DIR/unit-tests.sh" count-test-suites unit $BUILD_DIR $SRC_DIR $RESULTS_DIR)" > $RESULTS_DIR/unit-tests/unit-tests_results.txt |
78 | 82 | echo "tests_total=$(/bin/bash "$SCRIPT_DIR/unit-tests.sh" count-tests unit $BUILD_DIR $SRC_DIR $RESULTS_DIR)" >> $RESULTS_DIR/unit-tests/unit-tests_results.txt |
79 | 83 | echo "tests_disabled=$(/bin/bash "$SCRIPT_DIR/unit-tests.sh" count-disabled unit $BUILD_DIR $SRC_DIR $RESULTS_DIR)" >> $RESULTS_DIR/unit-tests/unit-tests_results.txt |
80 | 84 | echo "tests_failures=$(/bin/bash "$SCRIPT_DIR/unit-tests.sh" count-failures unit $BUILD_DIR $SRC_DIR $RESULTS_DIR)" >> $RESULTS_DIR/unit-tests/unit-tests_results.txt |
81 | 85 | echo "tests_errors=$(/bin/bash "$SCRIPT_DIR/unit-tests.sh" count-errors unit $BUILD_DIR $SRC_DIR $RESULTS_DIR)" >> $RESULTS_DIR/unit-tests/unit-tests_results.txt |
82 | | - echo "tests_duration=$(/bin/bash "$SCRIPT_DIR/unit-tests.sh" count-durations unit $BUILD_DIR $SRC_DIR $RESULTS_DIR)" >> $RESULTS_DIR/unit-tests/unit-tests_results.txt |
| 86 | + echo "tests_duration=$duration" >> $RESULTS_DIR/unit-tests/unit-tests_results.txt |
83 | 87 |
|
84 | 88 | python3 "$SCRIPT_DIR/exctractErrorFromXML.py" "$RESULTS_DIR/unit-tests/reports" "$RESULTS_DIR/unit-tests" |
85 | 89 |
|
|
90 | 94 | ############# |
91 | 95 | # Scene tests |
92 | 96 | if [[ "$TEST_TYPE" == *"SCENE"* ]]; then |
| 97 | + |
| 98 | + SECONDS=0 |
| 99 | + |
93 | 100 | /bin/bash "$SCRIPT_DIR/scene-tests.sh" run "$BUILD_DIR" "$SRC_DIR" "$RESULTS_DIR" $VM_MAX_PARALLEL_TESTS |
94 | 101 | /bin/bash "$SCRIPT_DIR/scene-tests.sh" print-summary "$BUILD_DIR" "$SRC_DIR" "$RESULTS_DIR" $VM_MAX_PARALLEL_TESTS |
95 | 102 |
|
| 103 | + duration=$SECONDS |
| 104 | + |
96 | 105 | echo "scenes_total=$(/bin/bash $SCRIPT_DIR/scene-tests.sh count-tested-scenes $BUILD_DIR $SRC_DIR $RESULTS_DIR)" > $RESULTS_DIR/scene-tests/scene-tests_results.txt |
97 | 106 | echo "scenes_successes=$(/bin/bash "$SCRIPT_DIR/scene-tests.sh" count-successes $BUILD_DIR $SRC_DIR $RESULTS_DIR)" >> $RESULTS_DIR/scene-tests/scene-tests_results.txt |
98 | 107 | echo "scenes_errors=$(/bin/bash "$SCRIPT_DIR/scene-tests.sh" count-errors $BUILD_DIR $SRC_DIR $RESULTS_DIR)" >> $RESULTS_DIR/scene-tests/scene-tests_results.txt |
99 | 108 | echo "scenes_crashes=$(/bin/bash "$SCRIPT_DIR/scene-tests.sh" count-crashes $BUILD_DIR $SRC_DIR $RESULTS_DIR)" >> $RESULTS_DIR/scene-tests/scene-tests_results.txt |
100 | | - echo "scenes_duration=$(/bin/bash "$SCRIPT_DIR/scene-tests.sh" count-durations $BUILD_DIR $SRC_DIR $RESULTS_DIR)" >> $RESULTS_DIR/scene-tests/scene-tests_results.txt |
| 109 | + echo "scenes_duration=$duration" >> $RESULTS_DIR/scene-tests/scene-tests_results.txt |
101 | 110 |
|
102 | 111 | if [[ -f "$RESULTS_DIR/scene-tests/reports/crashes.txt" && "$(cat "$RESULTS_DIR/scene-tests/reports/crashes.txt")" != "" ]]; then |
103 | 112 | cp $RESULTS_DIR/scene-tests/reports/crashes.txt $RESULTS_DIR/scene-tests_crashes |
|
112 | 121 | ################## |
113 | 122 | # Regression tests |
114 | 123 | if [[ "$TEST_TYPE" == *"REGRESSION"* ]]; then |
| 124 | + |
| 125 | + SECONDS=0 |
| 126 | + |
115 | 127 | /bin/bash "$SCRIPT_DIR/unit-tests.sh" run regression "$BUILD_DIR" "$SRC_DIR" "$RESULTS_DIR" $VM_MAX_PARALLEL_TESTS |
116 | 128 | /bin/bash "$SCRIPT_DIR/unit-tests.sh" print-summary regression "$BUILD_DIR" "$SRC_DIR" "$RESULTS_DIR" $VM_MAX_PARALLEL_TESTS |
117 | 129 |
|
| 130 | + duration=$SECONDS |
| 131 | + |
118 | 132 | echo "regressions_suites=$(/bin/bash "$SCRIPT_DIR/unit-tests.sh" count-test-suites regression $BUILD_DIR $SRC_DIR $RESULTS_DIR )" > $RESULTS_DIR/regression-tests/regression-tests_results.txt |
119 | 133 | echo "regressions_total=$(/bin/bash "$SCRIPT_DIR/unit-tests.sh" count-tests regression $BUILD_DIR $SRC_DIR $RESULTS_DIR )" >> $RESULTS_DIR/regression-tests/regression-tests_results.txt |
120 | 134 | echo "regressions_disabled=$(/bin/bash "$SCRIPT_DIR/unit-tests.sh" count-disabled regression $BUILD_DIR $SRC_DIR $RESULTS_DIR )" >> $RESULTS_DIR/regression-tests/regression-tests_results.txt |
121 | 135 | echo "regressions_failures=$(/bin/bash "$SCRIPT_DIR/unit-tests.sh" count-failures regression $BUILD_DIR $SRC_DIR $RESULTS_DIR )" >> $RESULTS_DIR/regression-tests/regression-tests_results.txt |
122 | 136 | echo "regressions_errors=$(/bin/bash "$SCRIPT_DIR/unit-tests.sh" count-errors regression $BUILD_DIR $SRC_DIR $RESULTS_DIR )" >> $RESULTS_DIR/regression-tests/regression-tests_results.txt |
123 | | - echo "regressions_duration=$(/bin/bash "$SCRIPT_DIR/unit-tests.sh" count-durations regression $BUILD_DIR $SRC_DIR $RESULTS_DIR )" >> $RESULTS_DIR/regression-tests/regression-tests_results.txt |
| 137 | + echo "regressions_duration=$duration" >> $RESULTS_DIR/regression-tests/regression-tests_results.txt |
124 | 138 |
|
125 | 139 | python3 "$SCRIPT_DIR/exctractErrorFromXML.py" "$RESULTS_DIR/regression-tests/reports" "$RESULTS_DIR/regression-tests" |
126 | 140 | fi |
|
0 commit comments