|
|
} | } |
| |
src_test() { | src_test() { |
|
local testdir="${T}/tests/tests" |
|
mkdir -p "${testdir}" || die |
|
chmod 777 "${T}/tests" |
|
chmod 777 "${T}/tests/tests" |
cd "${S}/tests/" | cd "${S}/tests/" |
rm -f *svn* # Subversion tests fail with 1.5 | rm -f *svn* # Subversion tests fail with 1.5 |
rm -f test-convert-baz* # GNU Arch baz | rm -f test-convert-baz* # GNU Arch baz |
|
|
rm -f test-convert-git* # git | rm -f test-convert-git* # git |
rm -f test-convert-mtn* # monotone | rm -f test-convert-mtn* # monotone |
rm -f test-convert-tla* # GNU Arch tla | rm -f test-convert-tla* # GNU Arch tla |
|
rm -f test-command-template # Test is broken when ran as root |
|
rm -f test-convert # Test is broken when ran as root |
|
rm -f test-lock-badness # Test is broken when ran as root |
|
rm -f test-permissions # Test is broken when ran as root |
|
rm -f test-pull-permission # Test is broken when ran as root |
einfo "Running Mercurial tests ..." | einfo "Running Mercurial tests ..." |
python run-tests.py || die "test failed" |
python \ |
|
run-tests.py \ |
|
--jobs=1 \ |
|
--tmpdir="${testdir}" \ |
|
--with-hg="${S}" \ |
|
|| die "test failed" |
} | } |
| |
pkg_postinst() { | pkg_postinst() { |