Show More
@@ -0,0 +1,19 b'' | |||
|
1 | # The test-repo is a live hg repository which may have evolution | |
|
2 | # markers created, e.g. when a ~/.hgrc enabled evolution. | |
|
3 | # | |
|
4 | # Tests are run using a custom HGRCPATH, which do not | |
|
5 | # enable evolution markers by default. | |
|
6 | # | |
|
7 | # If test-repo includes evolution markers, and we do not | |
|
8 | # enable evolution markers, hg will occasionally complain | |
|
9 | # when it notices them, which disrupts tests resulting in | |
|
10 | # sporadic failures. | |
|
11 | # | |
|
12 | # Since we aren't performing any write operations on the | |
|
13 | # test-repo, there's no harm in telling hg that we support | |
|
14 | # evolution markers, which is what the following lines | |
|
15 | # for the hgrc file do: | |
|
16 | cat >> $HGRCPATH << EOF | |
|
17 | [experimental] | |
|
18 | evolution=createmarkers | |
|
19 | EOF |
@@ -1,5 +1,6 b'' | |||
|
1 | 1 | #require test-repo |
|
2 | 2 | |
|
3 | $ . "$TESTDIR/helpers-testrepo.sh" | |
|
3 | 4 | $ check_code="$TESTDIR"/../contrib/check-code.py |
|
4 | 5 | $ cd "$TESTDIR"/.. |
|
5 | 6 |
@@ -2,10 +2,7 b'' | |||
|
2 | 2 | |
|
3 | 3 | Enable obsolescence to avoid the warning issue when obsmarker are found |
|
4 | 4 | |
|
5 | $ cat >> $HGRCPATH << EOF | |
|
6 | > [experimental] | |
|
7 | > evolution=createmarkers | |
|
8 | > EOF | |
|
5 | $ . "$TESTDIR/helpers-testrepo.sh" | |
|
9 | 6 | |
|
10 | 7 | Go back in the hg repo |
|
11 | 8 |
@@ -1,5 +1,6 b'' | |||
|
1 | 1 | #require test-repo |
|
2 | 2 | |
|
3 | $ . "$TESTDIR/helpers-testrepo.sh" | |
|
3 | 4 | $ cd "$TESTDIR"/.. |
|
4 | 5 | |
|
5 | 6 | New errors are not allowed. Warnings are strongly discouraged. |
@@ -1,5 +1,6 b'' | |||
|
1 | 1 | #require test-repo execbit |
|
2 | 2 | |
|
3 | $ . "$TESTDIR/helpers-testrepo.sh" | |
|
3 | 4 | $ cd "`dirname "$TESTDIR"`" |
|
4 | 5 | |
|
5 | 6 | look for python scripts without the execute bit |
@@ -1,5 +1,6 b'' | |||
|
1 | 1 | #require test-repo |
|
2 | 2 | |
|
3 | $ . "$TESTDIR/helpers-testrepo.sh" | |
|
3 | 4 | $ import_checker="$TESTDIR"/../contrib/import-checker.py |
|
4 | 5 | |
|
5 | 6 | Run the doctests from the import checker, and make sure |
@@ -1,5 +1,6 b'' | |||
|
1 | 1 | #require test-repo |
|
2 | 2 | |
|
3 | $ . "$TESTDIR/helpers-testrepo.sh" | |
|
3 | 4 | $ cd "$TESTDIR"/.. |
|
4 | 5 | |
|
5 | 6 | $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py |
@@ -1,5 +1,6 b'' | |||
|
1 | 1 | #require test-repo pyflakes hg10 |
|
2 | 2 | |
|
3 | $ . "$TESTDIR/helpers-testrepo.sh" | |
|
3 | 4 | $ cd "`dirname "$TESTDIR"`" |
|
4 | 5 | |
|
5 | 6 | run pyflakes on all tracked files ending in .py or without a file ending |
@@ -1,5 +1,6 b'' | |||
|
1 | 1 | #require test-repo |
|
2 | 2 | |
|
3 | $ . "$TESTDIR/helpers-testrepo.sh" | |
|
3 | 4 | $ cd "`dirname "$TESTDIR"`" |
|
4 | 5 | |
|
5 | 6 | look for python scripts that do not use /usr/bin/env |
@@ -2,6 +2,7 b'' | |||
|
2 | 2 | |
|
3 | 3 | Set vars: |
|
4 | 4 | |
|
5 | $ . "$TESTDIR/helpers-testrepo.sh" | |
|
5 | 6 | $ CONTRIBDIR="$TESTDIR/../contrib" |
|
6 | 7 | |
|
7 | 8 | Prepare repo: |
@@ -1,5 +1,7 b'' | |||
|
1 | 1 | #require test-repo slow debhelper |
|
2 | 2 | |
|
3 | $ . "$TESTDIR/helpers-testrepo.sh" | |
|
4 | ||
|
3 | 5 |
|
|
4 | 6 | $ DEB_BUILD_OPTIONS=nocheck |
|
5 | 7 | $ export DEB_BUILD_OPTIONS |
@@ -1,5 +1,7 b'' | |||
|
1 | 1 | #require test-repo slow docker |
|
2 | 2 | |
|
3 | $ . "$TESTDIR/helpers-testrepo.sh" | |
|
4 | ||
|
3 | 5 |
|
|
4 | 6 | $ DEB_BUILD_OPTIONS=nocheck |
|
5 | 7 | $ export DEB_BUILD_OPTIONS |
General Comments 0
You need to be logged in to leave comments.
Login now