##// END OF EJS Templates
tests: use 'hghave symlink' for tests using symlinks
Mads Kiilerich -
r15441:e0348815 default
parent child Browse files
Show More
@@ -161,7 +161,7 b' def has_p4():'
161 161 return matchoutput('p4 -V', r'Rev\. P4/') and matchoutput('p4d -V', r'Rev\. P4D/')
162 162
163 163 def has_symlink():
164 return hasattr(os, "symlink")
164 return hasattr(os, "symlink") # FIXME: should also check file system and os
165 165
166 166 def has_tla():
167 167 return matchoutput('tla --version 2>&1', r'The GNU Arch Revision')
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 3 $ hg init
2 4
3 5 should fail
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 3 commit date test
2 4
3 5 $ hg init test
@@ -1,3 +1,4 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
1 2
2 3 $ . "$TESTDIR/bzr-definitions"
3 4
@@ -1,5 +1,4 b''
1
2 $ "$TESTDIR/hghave" svn13 no-outer-repo || exit 80
1 $ "$TESTDIR/hghave" svn13 no-outer-repo symlink || exit 80
3 2
4 3 $ fixpath()
5 4 > {
@@ -1,5 +1,5 b''
1 1
2 $ "$TESTDIR/hghave" tla || exit 80
2 $ "$TESTDIR/hghave" tla symlink || exit 80
3 3 $ tla my-id "mercurial <mercurial@selenic.com>"
4 4 $ echo "[extensions]" >> $HGRCPATH
5 5 $ echo "convert=" >> $HGRCPATH
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 3 $ echo "[extensions]" >> $HGRCPATH
2 4 $ echo "extdiff=" >> $HGRCPATH
3 5
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 3 $ echo "[extensions]" >> $HGRCPATH
2 4 $ echo "purge=" >> $HGRCPATH
3 5 $ echo "graphlog=" >> $HGRCPATH
@@ -1,3 +1,4 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
1 2
2 3 $ hg init
3 4
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 3 $ cat <<EOF >> $HGRCPATH
2 4 > [extensions]
3 5 > keyword =
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 3 $ cat >> $HGRCPATH <<EOF
2 4 > [extensions]
3 5 > largefiles=
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 3 Source bundle was generated with the following script:
2 4
3 5 # hg init
@@ -1,3 +1,4 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
1 2
2 3 $ cat > echo.py <<EOF
3 4 > #!/usr/bin/env python
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 3 $ hg init
2 4
3 5 $ echo a > a
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 3 $ hg init
2 4 $ mkdir d1 d1/d11 d2
3 5 $ echo d1/a > d1/a
General Comments 0
You need to be logged in to leave comments. Login now