File: sigtests

package info (click to toggle)
libnb-platform18-java 7.4%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 81,288 kB
  • ctags: 101,418
  • sloc: java: 682,018; xml: 117,409; ansic: 6,281; sh: 3,982; cpp: 2,458; objc: 288; perl: 276; makefile: 252
file content (45 lines) | stat: -rw-r--r-- 1,728 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh

if [ -z "$JOB_URL" ]; then
  JOB_URL=http://deadlock.netbeans.org/job/nbms-and-javadoc/
fi

sigtest_prev=$WORKSPACE/nbbuild/build/prior-sigtest
if [ -d $sigtest_prev ]
then
    echo SigTest: Previous Snapshots
    ls $sigtest_prev
    echo SigTest: Checking All Changes
    ANT_OPTS='-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/ant-check-sigtests.hprof' ant -Dsigtest.basedir=$sigtest_prev check-sigtests
    for report in `pwd`/nbbuild/build/sigtest/check-snapshot/*; do
    if ! expr "$report" : ".*/TESTS-.*" && grep 'failures="1"' $report >/dev/null; then
        sigtest_email=`cat $report | grep "^email:" | grep -v commit.mail | cut -c 8-`
        if [ -z "$sigtest_email" ]; then
        sigtest_email="api-changes@netbeans.org"
        fi
        content=`cat $report`
        (
            echo "Code changes:";
            echo "${BUILD_URL}changes"; 
            echo "API changes:";
            echo "${BUILD_URL}artifact/nbbuild/build/sigtest/check-snapshot/html/index.html"; 
            echo "Failure output is available as StdErr output of sigtest test for appropriate module.";
    #                echo "${BUILD_URL}artifact/$sigtest_out/`basename $report`"; 
            echo; 
            expr "$content" : ".*CDATA\[\(.*\)\]\].*"
        ) | mail -s "`basename $report` - sigchanges in $JOB_NAME build #$BUILD_NUMBER" $sigtest_email
    fi
    done
    echo SigTest: Checking All Changes Done
else
    echo SigTest: Did not find previous Snapshot
fi

echo SigTest: Generating Golden Files
ant gen-sigtests || exit 1
echo SigTest: Generating Golden Files Done

echo SigTest: Incompatible Changes
ant check-sigtests-release -Dfail.on.error=false
echo SigTest: Incompatible Changes Done