Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / tests / grind-arla-with-cvs
CommitLineData
805e021f
CE
1#!/bin/sh
2
3if [ x`uname` != xLinux ] ; then
4 echo This test does not run on this architecture
5 exit 1
6fi
7
8echo '***********************************************************'
9echo '* *'
10echo '* Infinite run until error *'
11echo '* *'
12echo '***********************************************************'
13sleep 5
14
15# First argument is our working dir
16test $1 || exit 1
17mkdir $1
18cd $1 || exit 1
19
20TOPDIR=$PWD
21export TOPDIR
22CVSROOT=/afs/stacken.kth.se/src/SourceRepository
23export CVSROOT
24
25# test if cvs takes -R
26cvs -R help 2>&1 | grep Usage: > /dev/null && exit 1
27
28cvs -R checkout arla
29while 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
50done
51
52