Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | # This script checks all the configurations
|
---|
4 |
|
---|
5 | cd "$(dirname "$0")"
|
---|
6 |
|
---|
7 | echo
|
---|
8 | echo
|
---|
9 | echo STARTING TESTS
|
---|
10 | echo please wait...
|
---|
11 | echo
|
---|
12 | echo
|
---|
13 |
|
---|
14 | CD=`pwd`
|
---|
15 |
|
---|
16 | # Iterate over the directories
|
---|
17 | for dir in `echo *`
|
---|
18 | do
|
---|
19 | if [ -f $CD/$dir/checkConfig.sh ] ; then
|
---|
20 | echo ':::::::' checking $dir 1>> $CD/output
|
---|
21 | $CD/$dir/checkConfig.sh 1>> $CD/output
|
---|
22 | if [ $? != 0 ] ; then
|
---|
23 | echo "$dir failed"
|
---|
24 | exit $? ;
|
---|
25 | fi
|
---|
26 | fi
|
---|
27 | done
|
---|
28 |
|
---|
29 | cd $CD
|
---|
30 | cat output
|
---|
31 | echo
|
---|
32 | echo
|
---|
33 | echo
|
---|
34 | WARN=`cat output | grep Warning | wc -l`
|
---|
35 | if [ "$WARN" -ne "0" ] ; then
|
---|
36 | echo Warnings: $WARN, see above for details
|
---|
37 | cat output | grep Warning
|
---|
38 | fi
|
---|
39 |
|
---|
40 | ERR=`cat output | grep Error | wc -l`
|
---|
41 | if [ "$ERR" -ne "0" ] ; then
|
---|
42 | echo Error: $ERR, see above for details
|
---|
43 | cat output | grep Error
|
---|
44 | fi
|
---|
45 |
|
---|
46 |
|
---|
47 | rm output
|
---|
Note:
See
TracBrowser
for help on using the repository browser.