##// END OF EJS Templates
tests: silence test-repo obsolete warning...
timeless -
r29219:3c9066ed default
parent child Browse files
Show More
@@ -0,0 +1,19
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
1 #require test-repo
1 #require test-repo
2
2
3 $ . "$TESTDIR/helpers-testrepo.sh"
3 $ check_code="$TESTDIR"/../contrib/check-code.py
4 $ check_code="$TESTDIR"/../contrib/check-code.py
4 $ cd "$TESTDIR"/..
5 $ cd "$TESTDIR"/..
5
6
@@ -2,10 +2,7
2
2
3 Enable obsolescence to avoid the warning issue when obsmarker are found
3 Enable obsolescence to avoid the warning issue when obsmarker are found
4
4
5 $ cat >> $HGRCPATH << EOF
5 $ . "$TESTDIR/helpers-testrepo.sh"
6 > [experimental]
7 > evolution=createmarkers
8 > EOF
9
6
10 Go back in the hg repo
7 Go back in the hg repo
11
8
@@ -1,5 +1,6
1 #require test-repo
1 #require test-repo
2
2
3 $ . "$TESTDIR/helpers-testrepo.sh"
3 $ cd "$TESTDIR"/..
4 $ cd "$TESTDIR"/..
4
5
5 New errors are not allowed. Warnings are strongly discouraged.
6 New errors are not allowed. Warnings are strongly discouraged.
@@ -1,5 +1,6
1 #require test-repo execbit
1 #require test-repo execbit
2
2
3 $ . "$TESTDIR/helpers-testrepo.sh"
3 $ cd "`dirname "$TESTDIR"`"
4 $ cd "`dirname "$TESTDIR"`"
4
5
5 look for python scripts without the execute bit
6 look for python scripts without the execute bit
@@ -1,5 +1,6
1 #require test-repo
1 #require test-repo
2
2
3 $ . "$TESTDIR/helpers-testrepo.sh"
3 $ import_checker="$TESTDIR"/../contrib/import-checker.py
4 $ import_checker="$TESTDIR"/../contrib/import-checker.py
4
5
5 Run the doctests from the import checker, and make sure
6 Run the doctests from the import checker, and make sure
@@ -1,5 +1,6
1 #require test-repo
1 #require test-repo
2
2
3 $ . "$TESTDIR/helpers-testrepo.sh"
3 $ cd "$TESTDIR"/..
4 $ cd "$TESTDIR"/..
4
5
5 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
6 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
@@ -1,5 +1,6
1 #require test-repo pyflakes hg10
1 #require test-repo pyflakes hg10
2
2
3 $ . "$TESTDIR/helpers-testrepo.sh"
3 $ cd "`dirname "$TESTDIR"`"
4 $ cd "`dirname "$TESTDIR"`"
4
5
5 run pyflakes on all tracked files ending in .py or without a file ending
6 run pyflakes on all tracked files ending in .py or without a file ending
@@ -1,5 +1,6
1 #require test-repo
1 #require test-repo
2
2
3 $ . "$TESTDIR/helpers-testrepo.sh"
3 $ cd "`dirname "$TESTDIR"`"
4 $ cd "`dirname "$TESTDIR"`"
4
5
5 look for python scripts that do not use /usr/bin/env
6 look for python scripts that do not use /usr/bin/env
@@ -2,6 +2,7
2
2
3 Set vars:
3 Set vars:
4
4
5 $ . "$TESTDIR/helpers-testrepo.sh"
5 $ CONTRIBDIR="$TESTDIR/../contrib"
6 $ CONTRIBDIR="$TESTDIR/../contrib"
6
7
7 Prepare repo:
8 Prepare repo:
@@ -1,5 +1,7
1 #require test-repo slow debhelper
1 #require test-repo slow debhelper
2
2
3 $ . "$TESTDIR/helpers-testrepo.sh"
4
3 Ensure debuild doesn't run the testsuite, as that could get silly.
5 Ensure debuild doesn't run the testsuite, as that could get silly.
4 $ DEB_BUILD_OPTIONS=nocheck
6 $ DEB_BUILD_OPTIONS=nocheck
5 $ export DEB_BUILD_OPTIONS
7 $ export DEB_BUILD_OPTIONS
@@ -1,5 +1,7
1 #require test-repo slow docker
1 #require test-repo slow docker
2
2
3 $ . "$TESTDIR/helpers-testrepo.sh"
4
3 Ensure debuild doesn't run the testsuite, as that could get silly.
5 Ensure debuild doesn't run the testsuite, as that could get silly.
4 $ DEB_BUILD_OPTIONS=nocheck
6 $ DEB_BUILD_OPTIONS=nocheck
5 $ export DEB_BUILD_OPTIONS
7 $ export DEB_BUILD_OPTIONS
@@ -78,6 +78,8 path variables are expanded (~ is the sa
78 no problems detected
78 no problems detected
79
79
80 #if test-repo
80 #if test-repo
81 $ . "$TESTDIR/helpers-testrepo.sh"
82
81 $ cat >> wixxml.py << EOF
83 $ cat >> wixxml.py << EOF
82 > import os, subprocess, sys
84 > import os, subprocess, sys
83 > import xml.etree.ElementTree as ET
85 > import xml.etree.ElementTree as ET
@@ -1,4 +1,7
1 #require test-repo slow osx osxpackaging
1 #require test-repo slow osx osxpackaging
2
3 $ . "$TESTDIR/helpers-testrepo.sh"
4
2 $ OUTPUTDIR=`pwd`
5 $ OUTPUTDIR=`pwd`
3 $ export OUTPUTDIR
6 $ export OUTPUTDIR
4 $ KEEPMPKG=yes
7 $ KEEPMPKG=yes
General Comments 0
You need to be logged in to leave comments. Login now