- split the maintenance scripts into release and test, so
[barry.git] / maintainer / test.sh
blobb494fd3b3cd11bbc4f8721440c9520dfaf12a4cc
1 #!/bin/sh
3 if [ -z "$1" -o -z "$2" ] ; then
4 echo
5 echo "Usage: ./test.sh MAJOR MINOR HEAD"
6 echo
7 echo "Set the environment var CVSROOT to use a different repository."
8 echo "Set CVSREP to a different directory if needed."
9 echo
10 echo "Creates the release tarball from CVS sources, tests the compile"
11 echo "on local machine, fedora 5, 6, and 7, and opensuse 10.2."
12 echo
13 exit 1
16 set -e
18 # Create the tarball
19 ./make-release-tar.sh $1 $2 $3
21 # Make sure it compiles cleanly on all handy systems
22 # Local first...
23 ./test-build-local.sh build/barry-$1.$2.tar.bz2
25 # Then as root, for the chroot systems...
26 su - -c "cd $(pwd) && ./test-root.sh $1 $2"