Barry version 0.18.1 (debian sid release)
[barry/progweb.git] / maintainer / test.sh
blob1f1f0c1fefc44e5c131cda0b19af24065cf498ec
1 #!/bin/bash
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"