##// END OF EJS Templates
tests: enable test-largefiles.t on Windows MSYS...
Mads Kiilerich -
r17089:0c1d1035 default
parent child Browse files
Show More
@@ -1,6 +1,5 b''
1 $ "$TESTDIR/hghave" serve || exit 80
2 $ USERCACHE="$TESTTMP/cache"; export USERCACHE
1 $ USERCACHE="$TESTTMP/cache"; export USERCACHE
3 $ mkdir -p ${USERCACHE}
2 $ mkdir -p "${USERCACHE}"
4 $ cat >> $HGRCPATH <<EOF
3 $ cat >> $HGRCPATH <<EOF
5 > [extensions]
4 > [extensions]
6 > largefiles=
5 > largefiles=
@@ -142,6 +141,7 b' Test moving largefiles and verify that n'
142 $ cat sub/large4
141 $ cat sub/large4
143 large22
142 large22
144
143
144 #if hgweb
145 Test display of largefiles in hgweb
145 Test display of largefiles in hgweb
146
146
147 $ hg serve -d -p $HGPORT --pid-file ../hg.pid
147 $ hg serve -d -p $HGPORT --pid-file ../hg.pid
@@ -164,6 +164,7 b' Test display of largefiles in hgweb'
164
164
165
165
166 $ "$TESTDIR/killdaemons.py"
166 $ "$TESTDIR/killdaemons.py"
167 #endif
167
168
168 Test archiving the various revisions. These hit corner cases known with
169 Test archiving the various revisions. These hit corner cases known with
169 archiving.
170 archiving.
@@ -436,7 +437,7 b' tests update).'
436
437
437 Test cloning with --all-largefiles flag
438 Test cloning with --all-largefiles flag
438
439
439 $ rm -Rf ${USERCACHE}/*
440 $ rm -Rf "${USERCACHE}"/*
440 $ hg clone --all-largefiles a a-backup
441 $ hg clone --all-largefiles a a-backup
441 updating to branch default
442 updating to branch default
442 5 files updated, 0 files merged, 0 files removed, 0 files unresolved
443 5 files updated, 0 files merged, 0 files removed, 0 files unresolved
@@ -460,7 +461,7 b' Test pulling with --all-largefiles flag'
460 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
461 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
461 getting changed largefiles
462 getting changed largefiles
462 2 largefiles updated, 0 removed
463 2 largefiles updated, 0 removed
463 $ rm -Rf ${USERCACHE}/*
464 $ rm -Rf "${USERCACHE}"/*
464 $ cd a-backup
465 $ cd a-backup
465 $ hg pull --all-largefiles
466 $ hg pull --all-largefiles
466 pulling from $TESTTMP/a (glob)
467 pulling from $TESTTMP/a (glob)
@@ -727,7 +728,7 b' correctly.'
727 3 largefiles updated, 0 removed
728 3 largefiles updated, 0 removed
728 # Delete the largefiles in the largefiles system cache so that we have an
729 # Delete the largefiles in the largefiles system cache so that we have an
729 # opportunity to test that caching after a pull works.
730 # opportunity to test that caching after a pull works.
730 $ rm ${USERCACHE}/*
731 $ rm "${USERCACHE}"/*
731 $ cd f
732 $ cd f
732 $ echo "large4-merge-test" > sub/large4
733 $ echo "large4-merge-test" > sub/large4
733 $ hg commit -m "Modify large4 to test merge"
734 $ hg commit -m "Modify large4 to test merge"
@@ -845,7 +846,7 b' Cat a largefile'
845 normal3-modified
846 normal3-modified
846 $ hg cat sub/large4
847 $ hg cat sub/large4
847 large4-modified
848 large4-modified
848 $ rm ${USERCACHE}/*
849 $ rm "${USERCACHE}"/*
849 $ hg cat -r a381d2c8c80e -o cat.out sub/large4
850 $ hg cat -r a381d2c8c80e -o cat.out sub/large4
850 $ cat cat.out
851 $ cat cat.out
851 large4-modified
852 large4-modified
@@ -880,6 +881,7 b' Test --normal flag'
880 (use 'hg revert new-largefile' to cancel the pending addition)
881 (use 'hg revert new-largefile' to cancel the pending addition)
881 $ cd ..
882 $ cd ..
882
883
884 #if serve
883 vanilla clients not locked out from largefiles servers on vanilla repos
885 vanilla clients not locked out from largefiles servers on vanilla repos
884 $ mkdir r1
886 $ mkdir r1
885 $ cd r1
887 $ cd r1
@@ -912,6 +914,8 b' largefiles clients still work with vanil'
912 added 1 changesets with 1 changes to 1 files
914 added 1 changesets with 1 changes to 1 files
913 updating to branch default
915 updating to branch default
914 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
916 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
917 #endif
918
915
919
916 vanilla clients locked out from largefiles http repos
920 vanilla clients locked out from largefiles http repos
917 $ mkdir r4
921 $ mkdir r4
@@ -923,6 +927,8 b' vanilla clients locked out from largefil'
923 Invoking status precommit hook
927 Invoking status precommit hook
924 A f1
928 A f1
925 $ cd ..
929 $ cd ..
930
931 #if serve
926 $ hg serve -R r4 -d -p $HGPORT2 --pid-file hg.pid
932 $ hg serve -R r4 -d -p $HGPORT2 --pid-file hg.pid
927 $ cat hg.pid >> $DAEMON_PIDS
933 $ cat hg.pid >> $DAEMON_PIDS
928 $ hg --config extensions.largefiles=! clone http://localhost:$HGPORT2 r5
934 $ hg --config extensions.largefiles=! clone http://localhost:$HGPORT2 r5
@@ -935,6 +941,7 b' vanilla clients locked out from largefil'
935
941
936 used all HGPORTs, kill all daemons
942 used all HGPORTs, kill all daemons
937 $ "$TESTDIR/killdaemons.py"
943 $ "$TESTDIR/killdaemons.py"
944 #endif
938
945
939 vanilla clients locked out from largefiles ssh repos
946 vanilla clients locked out from largefiles ssh repos
940 $ hg --config extensions.largefiles=! clone -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/r4 r5
947 $ hg --config extensions.largefiles=! clone -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/r4 r5
@@ -945,6 +952,8 b' vanilla clients locked out from largefil'
945 Please enable it in your Mercurial config file.
952 Please enable it in your Mercurial config file.
946 [255]
953 [255]
947
954
955 #if serve
956
948 largefiles clients refuse to push largefiles repos to vanilla servers
957 largefiles clients refuse to push largefiles repos to vanilla servers
949 $ mkdir r6
958 $ mkdir r6
950 $ cd r6
959 $ cd r6
@@ -980,7 +989,7 b' largefiles clients refuse to push largef'
980
989
981 putlfile errors are shown (issue3123)
990 putlfile errors are shown (issue3123)
982 Corrupt the cached largefile in r7
991 Corrupt the cached largefile in r7
983 $ echo corruption > $USERCACHE/4cdac4d8b084d0b599525cf732437fb337d422a8
992 $ echo corruption > "$USERCACHE/4cdac4d8b084d0b599525cf732437fb337d422a8"
984 $ hg init empty
993 $ hg init empty
985 $ hg serve -R empty -d -p $HGPORT1 --pid-file hg.pid \
994 $ hg serve -R empty -d -p $HGPORT1 --pid-file hg.pid \
986 > --config 'web.allow_push=*' --config web.push_ssl=False
995 > --config 'web.allow_push=*' --config web.push_ssl=False
@@ -1004,7 +1013,7 b' Push a largefiles repository to a served'
1004 $ hg serve -R empty -d -p $HGPORT2 --pid-file hg.pid \
1013 $ hg serve -R empty -d -p $HGPORT2 --pid-file hg.pid \
1005 > --config 'web.allow_push=*' --config web.push_ssl=False
1014 > --config 'web.allow_push=*' --config web.push_ssl=False
1006 $ cat hg.pid >> $DAEMON_PIDS
1015 $ cat hg.pid >> $DAEMON_PIDS
1007 $ rm ${USERCACHE}/*
1016 $ rm "${USERCACHE}"/*
1008 $ hg push -R r8 http://localhost:$HGPORT2
1017 $ hg push -R r8 http://localhost:$HGPORT2
1009 pushing to http://localhost:$HGPORT2/
1018 pushing to http://localhost:$HGPORT2/
1010 searching for changes
1019 searching for changes
@@ -1018,6 +1027,9 b' Push a largefiles repository to a served'
1018 used all HGPORTs, kill all daemons
1027 used all HGPORTs, kill all daemons
1019 $ "$TESTDIR/killdaemons.py"
1028 $ "$TESTDIR/killdaemons.py"
1020
1029
1030 #endif
1031
1032
1021 #if unix-permissions
1033 #if unix-permissions
1022
1034
1023 Clone a local repository owned by another user
1035 Clone a local repository owned by another user
General Comments 0
You need to be logged in to leave comments. Login now