Use the same temp dir for all tests

This commit is contained in:
Yevgen Muntyan 2011-04-17 00:20:31 -07:00
parent 008cc523dc
commit 3e0b596f11

View File

@ -1,7 +1,11 @@
#! /bin/sh
tmpdir=`mktemp --directory --tmpdir medit-release.XXXXXX`
mkdir $tmpdir/files
if [ -z "$test_release_tmpdir" ]; then
tmpdir=`mktemp --directory --tmpdir medit-release.XXXXXX`
mkdir $tmpdir/files
else
tmpdir=$test_release_tmpdir
fi
if [ ! -d $1 ]; then
echo "Usage: $0 <sourcedir>"
@ -47,13 +51,13 @@ check_unix() {
do_or_die make -j 3
set_title "medit-release unix fullcheck"
do_or_die make fullcheck
set_title "medit-release unix user-build"
do_or_die tar xjf medit-*.tar.bz2
do_or_die cd medit-*
do_or_die ./configure
do_or_die make -j 3
do_or_die make test
do_or_die cd ..
# set_title "medit-release unix user-build"
# do_or_die tar xjf medit-*.tar.bz2
# do_or_die cd medit-*
# do_or_die ./configure
# do_or_die make -j 3
# do_or_die make test
# do_or_die cd ..
do_or_die mv medit-*.tar.bz2 $tmpdir/files/
}
@ -94,6 +98,8 @@ check_all() {
fail=false
failed_checks=
export test_release_tmpdir=$tmpdir
for check in `echo $all_checks`; do
if ! $0 $srcdir "$check"; then
failed_checks="$failed_checks $check"