Lines 81-86
Link Here
|
81 |
} |
81 |
} |
82 |
|
82 |
|
83 |
src_test() { |
83 |
src_test() { |
|
|
84 |
local testdir="${T}/tests" |
85 |
mkdir -p "${testdir}" || die |
86 |
chmod 777 "${testdir}" |
84 |
cd "${S}/tests/" |
87 |
cd "${S}/tests/" |
85 |
rm -f *svn* # Subversion tests fail with 1.5 |
88 |
rm -f *svn* # Subversion tests fail with 1.5 |
86 |
rm -f test-convert-baz* # GNU Arch baz |
89 |
rm -f test-convert-baz* # GNU Arch baz |
Lines 89-96
Link Here
|
89 |
rm -f test-convert-git* # git |
92 |
rm -f test-convert-git* # git |
90 |
rm -f test-convert-mtn* # monotone |
93 |
rm -f test-convert-mtn* # monotone |
91 |
rm -f test-convert-tla* # GNU Arch tla |
94 |
rm -f test-convert-tla* # GNU Arch tla |
|
|
95 |
rm -f test-doctest* # doctest always fails with python 2.5.x |
96 |
if ! has userpriv ${FEATURES}; then |
97 |
einfo "removing tests which require user priviledges to succeed" |
98 |
rm -f test-command-template # Test is broken when run as root |
99 |
rm -f test-convert # Test is broken when run as root |
100 |
rm -f test-lock-badness # Test is broken when run as root |
101 |
rm -f test-permissions # Test is broken when run as root |
102 |
rm -f test-pull-permission # Test is broken when run as root |
103 |
fi |
92 |
einfo "Running Mercurial tests ..." |
104 |
einfo "Running Mercurial tests ..." |
93 |
python run-tests.py || die "test failed" |
105 |
python run-tests.py --tmpdir="${testdir}" || die "test failed" |
94 |
} |
106 |
} |
95 |
|
107 |
|
96 |
pkg_postinst() { |
108 |
pkg_postinst() { |