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