diff options
Diffstat (limited to 'common/scripts/dt-selftests.sh')
-rwxr-xr-x | common/scripts/dt-selftests.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/scripts/dt-selftests.sh b/common/scripts/dt-selftests.sh new file mode 100755 index 0000000..1c77099 --- /dev/null +++ b/common/scripts/dt-selftests.sh @@ -0,0 +1,12 @@ +#!/bin/sh +cd common/scripts +dmesg | awk -f dt-selftests.awk > dt-selftest-stdout.log +NO_OF_PASS=`grep "DT-SELFTEST passed" dt-selftest-stdout.log | awk '{print $3}'` +NO_OF_FAIL=`grep "DT-SELFTEST failed" dt-selftest-stdout.log | awk '{print $3}'` +if [ $NO_OF_FAIL -ne 0 ] ; then + echo "test_case_id:dt-selftest-passed measurement:$NO_OF_PASS result:passed" + echo "test_case_id:dt-selftest-failed measurement:$NO_OF_FAIL result:failed" +else + echo "test_case_id:dt-selftest-passed measurement:$NO_OF_PASS result:passed" + echo "test_case_id:dt-selftest-failed measurement:$NO_OF_FAIL result:passed" +fi |