Skip to content

Commit 796d309

Browse files
committed
Arm backend: Add pytests time stats for unit test
This will show time for all model tests but to avoid spamming only show the 10 slowest ops tests. Signed-off-by: Zingo Andersen <[email protected]> Change-Id: I95bd74932c69206b0579aeec0adb6f4c223b2e7a
1 parent 1b42512 commit 796d309

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backends/arm/test/test_arm_baremetal.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ test_pytest_ops() { # Test ops and other things
7777
backends/arm/scripts/build_executorch.sh
7878

7979
# Run arm baremetal pytest tests without FVP
80-
pytest --verbose --color=yes --numprocesses=auto backends/arm/test/ --ignore=backends/arm/test/models
80+
pytest --verbose --color=yes --numprocesses=auto --durations=10 backends/arm/test/ --ignore=backends/arm/test/models
8181
echo "${TEST_SUITE_NAME}: PASS"
8282
}
8383

@@ -88,7 +88,7 @@ test_pytest_models() { # Test ops and other things
8888
backends/arm/scripts/build_executorch.sh
8989

9090
# Run arm baremetal pytest tests without FVP
91-
pytest --verbose --color=yes backends/arm/test/models
91+
pytest --verbose --color=yes --durations=0 backends/arm/test/models
9292
echo "${TEST_SUITE_NAME}: PASS"
9393
}
9494

@@ -109,7 +109,7 @@ test_pytest_ops_ethosu_fvp() { # Same as test_pytest but also sometime verify us
109109
backends/arm/test/setup_testing.sh
110110

111111
# Run arm baremetal pytest tests with FVP
112-
pytest --verbose --color=yes --numprocesses=auto backends/arm/test/ --ignore=backends/arm/test/models
112+
pytest --verbose --color=yes --numprocesses=auto --durations=10 backends/arm/test/ --ignore=backends/arm/test/models
113113
echo "${TEST_SUITE_NAME}: PASS"
114114
}
115115

@@ -123,7 +123,7 @@ test_pytest_models_ethosu_fvp() { # Same as test_pytest but also sometime verify
123123
backends/arm/test/setup_testing.sh
124124

125125
# Run arm baremetal pytest tests with FVP
126-
pytest --verbose --color=yes backends/arm/test/models
126+
pytest --verbose --color=yes --durations=0 backends/arm/test/models
127127
echo "${TEST_SUITE_NAME}: PASS"
128128
}
129129

0 commit comments

Comments
 (0)