mirror of https://github.com/opencv/opencv.git
parent
3e59ddbace
commit
d45350a06a
3 changed files with 37 additions and 4 deletions
@ -0,0 +1,24 @@ |
|||||||
|
#!/bin/sh |
||||||
|
|
||||||
|
OPENCV_TEST_PATH=@OPENCV_TEST_INSTALL_PATH@ |
||||||
|
export OPENCV_TEST_DATA_PATH=@CMAKE_INSTALL_PREFIX@/share/OpenCV/testdata |
||||||
|
|
||||||
|
SUMMARY_STATUS=0 |
||||||
|
for t in "$OPENCV_TEST_PATH/"opencv_test_* "$OPENCV_TEST_PATH/"opencv_perf_*; |
||||||
|
do |
||||||
|
"$t" --perf_min_samples=1 --perf_force_samples=1 --gtest_output=xml:$t-`date --rfc-3339=date`.xml |
||||||
|
TEST_STATUS=$? |
||||||
|
if [ $TEST_STATUS -ne 0 ]; then |
||||||
|
SUMMARY_STATUS=$TEST_STATUS |
||||||
|
fi |
||||||
|
done |
||||||
|
|
||||||
|
rm -f /tmp/__opencv_temp.* |
||||||
|
|
||||||
|
if [ $SUMMARY_STATUS -eq 0 ]; then |
||||||
|
echo "All OpenCV tests finished successfully" |
||||||
|
else |
||||||
|
echo "OpenCV tests finished with status $SUMMARY_STATUS" |
||||||
|
fi |
||||||
|
|
||||||
|
return $SUMMARY_STATUS |
Loading…
Reference in new issue