|
|
cbe2c5 |
#!/usr/bin/bash
|
|
|
cbe2c5 |
# Analyze and print specialized (basic/webrender) test results
|
|
|
cbe2c5 |
|
|
|
cbe2c5 |
TEST_DIR=$1
|
|
|
cbe2c5 |
TEST_FLAVOUR=$2
|
|
|
cbe2c5 |
|
|
|
cbe2c5 |
MPASS=`grep "TEST_END: Test OK" $TEST_DIR/mochitest$TEST_FLAVOUR | wc -l`
|
|
|
cbe2c5 |
MERR=`grep "TEST_END: Test ERROR" $TEST_DIR/mochitest$TEST_FLAVOUR | wc -l`
|
|
|
cbe2c5 |
MUNEX=`grep "TEST-UNEXPECTED-FAIL" $TEST_DIR/mochitest$TEST_FLAVOUR | wc -l`
|
|
|
cbe2c5 |
echo "Mochitest PASSED: $MPASS FAILED: $MERR UNEXPECTED-FAILURES: $MUNEX"
|
|
|
cbe2c5 |
|
|
|
cbe2c5 |
XPCPASS=`grep --text "Expected results:" $TEST_DIR/xpcshell$TEST_FLAVOUR | cut -d ' ' -f 3`
|
|
|
cbe2c5 |
XPCFAIL=`grep --text "Unexpected results:" $TEST_DIR/xpcshell$TEST_FLAVOUR | cut -d ' ' -f 3`
|
|
|
cbe2c5 |
echo "XPCShell: PASSED: $XPCPASS FAILED: $XPCFAIL"
|
|
|
cbe2c5 |
|
|
|
cbe2c5 |
CRPASS=`grep "REFTEST INFO | Successful:" $TEST_DIR/crashtest$TEST_FLAVOUR | cut -d ' ' -f 5`
|
|
|
cbe2c5 |
CRFAIL=`grep "^REFTEST INFO | Unexpected:" $TEST_DIR/crashtest$TEST_FLAVOUR | cut -d ' ' -f 5`
|
|
|
cbe2c5 |
echo "Crashtest: PASSED: $CRPASS FAILED: $CRFAIL"
|
|
|
cbe2c5 |
|
|
|
cbe2c5 |
RFPASS=`grep --text "REFTEST INFO | Successful:" $TEST_DIR/reftest$TEST_FLAVOUR | cut -d ' ' -f 5`
|
|
|
cbe2c5 |
RFUN=`grep --text "^REFTEST INFO | Unexpected:" $TEST_DIR/reftest$TEST_FLAVOUR | cut -d ' ' -f 5`
|
|
|
cbe2c5 |
RFKNOWN=`grep --text "REFTEST INFO | Known problems:" $TEST_DIR/reftest$TEST_FLAVOUR | cut -d ' ' -f 6`
|
|
|
cbe2c5 |
echo "Reftest: PASSED: $RFPASS FAILED: $RFUN Known issues: $RFKNOWN"
|