add script to generate test suite
This commit is contained in:
parent
a670b0fa68
commit
430e269fd5
1 changed files with 28 additions and 0 deletions
28
create-xml-simple-test-suite.sh
Normal file
28
create-xml-simple-test-suite.sh
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
REPONAME=xml-simple
|
||||
GITURL=https://github.com/maik/${REPONAME}.git
|
||||
|
||||
VERSION=${VERSION:-1.1.8}
|
||||
GITHASH=${GITHASH:-b13949bc866ced33a541eac57e035a08869e7353}
|
||||
|
||||
TESTTARBALL=${REPONAME}-tests-${VERSION}.tar.gz
|
||||
|
||||
PWDDIR=$(pwd)
|
||||
TMPDIR=$(mktemp -d /var/tmp/${REPONAME}-XXXXXX)
|
||||
pushd $TMPDIR
|
||||
|
||||
git clone $GITURL
|
||||
cd ${REPONAME}
|
||||
|
||||
git checkout -b fedora-${VERSION} ${GITHASH}
|
||||
tar czf $TESTTARBALL test/
|
||||
cp -a $TESTTARBALL $PWDDIR
|
||||
cd ..
|
||||
|
||||
popd
|
||||
rm -rf $TMPDIR
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue