##// 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 return matchoutput('p4 -V', r'Rev\. P4/') and matchoutput('p4d -V', r'Rev\. P4D/')
161 return matchoutput('p4 -V', r'Rev\. P4/') and matchoutput('p4d -V', r'Rev\. P4D/')
162
162
163 def has_symlink():
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 def has_tla():
166 def has_tla():
167 return matchoutput('tla --version 2>&1', r'The GNU Arch Revision')
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 $ hg init
3 $ hg init
2
4
3 should fail
5 should fail
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 commit date test
3 commit date test
2
4
3 $ hg init test
5 $ hg init test
@@ -1,3 +1,4 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
1
2
2 $ . "$TESTDIR/bzr-definitions"
3 $ . "$TESTDIR/bzr-definitions"
3
4
@@ -1,5 +1,4 b''
1
1 $ "$TESTDIR/hghave" svn13 no-outer-repo symlink || exit 80
2 $ "$TESTDIR/hghave" svn13 no-outer-repo || exit 80
3
2
4 $ fixpath()
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 $ tla my-id "mercurial <mercurial@selenic.com>"
3 $ tla my-id "mercurial <mercurial@selenic.com>"
4 $ echo "[extensions]" >> $HGRCPATH
4 $ echo "[extensions]" >> $HGRCPATH
5 $ echo "convert=" >> $HGRCPATH
5 $ echo "convert=" >> $HGRCPATH
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 $ echo "[extensions]" >> $HGRCPATH
3 $ echo "[extensions]" >> $HGRCPATH
2 $ echo "extdiff=" >> $HGRCPATH
4 $ echo "extdiff=" >> $HGRCPATH
3
5
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 $ echo "[extensions]" >> $HGRCPATH
3 $ echo "[extensions]" >> $HGRCPATH
2 $ echo "purge=" >> $HGRCPATH
4 $ echo "purge=" >> $HGRCPATH
3 $ echo "graphlog=" >> $HGRCPATH
5 $ echo "graphlog=" >> $HGRCPATH
@@ -1,3 +1,4 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
1
2
2 $ hg init
3 $ hg init
3
4
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 $ cat <<EOF >> $HGRCPATH
3 $ cat <<EOF >> $HGRCPATH
2 > [extensions]
4 > [extensions]
3 > keyword =
5 > keyword =
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 $ cat >> $HGRCPATH <<EOF
3 $ cat >> $HGRCPATH <<EOF
2 > [extensions]
4 > [extensions]
3 > largefiles=
5 > largefiles=
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 Source bundle was generated with the following script:
3 Source bundle was generated with the following script:
2
4
3 # hg init
5 # hg init
@@ -1,3 +1,4 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
1
2
2 $ cat > echo.py <<EOF
3 $ cat > echo.py <<EOF
3 > #!/usr/bin/env python
4 > #!/usr/bin/env python
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 $ hg init
3 $ hg init
2
4
3 $ echo a > a
5 $ echo a > a
@@ -1,3 +1,5 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
2
1 $ hg init
3 $ hg init
2 $ mkdir d1 d1/d11 d2
4 $ mkdir d1 d1/d11 d2
3 $ echo d1/a > d1/a
5 $ echo d1/a > d1/a
General Comments 0
You need to be logged in to leave comments. Login now