functionality-test-suite-20020114
[openafs.git] / src / tests / grind-arla-with-cvs
1 #!/bin/sh
2
3 if [ x`uname` != xLinux ] ; then
4     echo This test does not run on this architecture
5     exit 1
6 fi
7
8 echo '***********************************************************'
9 echo '*                                                         *'
10 echo '*               Infinite run until error                  *'
11 echo '*                                                         *'
12 echo '***********************************************************'
13 sleep 5
14
15 # First argument is our working dir
16 test $1 || exit 1
17 mkdir $1
18 cd $1 || exit 1
19
20 TOPDIR=$PWD
21 export TOPDIR
22 CVSROOT=/afs/stacken.kth.se/src/SourceRepository
23 export CVSROOT
24
25 # test if cvs takes -R
26 cvs -R help 2>&1 | grep Usage: > /dev/null && exit 1
27
28 cvs -R checkout arla
29 while true; do
30         echo Starting at $TOPDIR
31
32         cd $TOPDIR || exit 1
33         cd arla || exit 1
34         cvs -R update -A -d
35         sh HACKING
36         cd $TOPDIR || exit 1
37         mkdir arla-obj
38         cd arla-obj || exit 1
39         
40         ../arla/configure && mv xfs/linux/Makefile xfs/linux/Makefile.old && sed 's/ -Werror//g' < xfs/linux/Makefile.old > xfs/linux/Makefile &&  make || exit 1
41
42         cd $TOPDIR || exit 1
43         cd arla || exit 1
44         cvs -R update -r arla-0-35-branch -d
45         sh HACKING
46         cd $TOPDIR || exit 1
47         mkdir arla-obj
48         cd arla-obj || exit 1
49         ../arla/configure && mv xfs/linux/Makefile xfs/linux/Makefile.old && sed 's/ -Werror//g' < xfs/linux/Makefile.old > xfs/linux/Makefile &&  make || exit 1
50 done
51         
52