lib: added Backup parser and Restore builder classes
[barry.git] / maintainer / test.sh
blob6ec307dadbf9e49c7a3a8a76275ccefe4e48d7ad
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's chroot systems."
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"