Split GetStatus JVM command.
[barry/progweb.git] / maintainer / test.sh
blob281b50e4e7a920ad183c660e0fd994f988dd88d9
1 #!/bin/sh
3 if [ -z "$1" -o -z "$2" -o -z "$3" ] ; then
4 echo
5 echo "Usage: ./test.sh MAJOR MINOR commit"
6 echo
7 echo "Creates the release tarball from git sources, tests the compile"
8 echo "on local machine, fedora 5, 6, and 7, and opensuse 10.2."
9 echo
10 exit 1
13 set -e
15 # Create the tarball
16 ./git-release-tar.sh $1 $2 $3
18 # Make sure it compiles cleanly on all handy systems
19 # Local first...
20 ./test-build-local.sh build/barry-$1.$2.tar.bz2
22 # Then as root, for the chroot systems...
23 su - -c "cd $(pwd) && ./test-root.sh $1 $2"