source: release-kits/lirk3/bin/ant-installer/examples/buildtypes/checkConfig.sh@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

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