~rogpeppe/juju-core/438-local-instance-Addresses

« back to all changes in this revision

Viewing changes to scripts/checktesting.bash

  • Committer: Roger Peppe
  • Date: 2013-09-23 13:17:29 UTC
  • mto: (1816.6.14 403-prepare-createinfo)
  • mto: This revision was merged to the branch mainline in revision 1869.
  • Revision ID: roger.peppe@canonical.com-20130923131729-144qr7n5qix4cxw9
environs/storage, state/statecmd: reenable tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
exitstatus=0
 
3
for i in $(go list -f '{{.Dir}}' launchpad.net/juju-core/...)
 
4
do
 
5
        case $i in
 
6
        *testing)
 
7
                ;;
 
8
        *)
 
9
                src=$i/*.go
 
10
                if grep -q -l 'launchpad.net/gocheck' $src &&
 
11
                        ! egrep -l -q 'gc\.TestingT|testing\.MgoTestPackage' $src
 
12
                then
 
13
                        echo $i uses gocheck but never calls TestingT
 
14
                        exitstatus=1
 
15
                fi
 
16
                ;;
 
17
        esac
 
18
done
 
19
exit $exitstatus