Skip to content
Snippets Groups Projects
Commit 57d56d7dec83 authored by Dan Villiom Podlaski Christiansen's avatar Dan Villiom Podlaski Christiansen
Browse files

tests: check progress output for HTTP & Git protocols

parent 620730dd0f5d
No related branches found
No related tags found
1 merge request!127Remove some unnecessary caching
......@@ -6,6 +6,17 @@
Load commonly used test logic
$ . "$TESTDIR/testutil"
Enable progress debugging:
$ cat >> $HGRCPATH <<EOF
> [progress]
> delay = 0
> refresh = 0
> width = 60
> format = topic unit total number item bar
> assume-tty = yes
> EOF
Create a dummy repository and serve it
$ git init -q test
......@@ -22,6 +33,10 @@
Make sure that clone over unauthenticated HTTP doesn't break
$ hg clone -U git+http://localhost:$HGPORT copy 2>&1
\r (no-eol) (esc)
importing commits 1/2 [================> ]\r (no-eol) (esc)
importing commits 2/2 [==================================>]\r (no-eol) (esc)
\r (no-eol) (esc)
importing git objects into hg
$ hg log -T 'HG:{node|short} GIT:{gitnode|short}\n' -R copy
HG:221dd250e933 GIT:3af9773036a9
......@@ -29,8 +44,11 @@
$ cd copy
$ hg up master
\r (no-eol) (esc)
updating files 2/2 foo [================>]\r (no-eol) (esc)
\r (no-eol) (esc)
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
(activating bookmark master)
$ echo baz > baz
$ fn_hg_commit -A -m baz
$ hg push
......@@ -32,8 +50,14 @@
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
(activating bookmark master)
$ echo baz > baz
$ fn_hg_commit -A -m baz
$ hg push
\r (no-eol) (esc)
find commits to export commits 1/1 152c456b0da423597ed2 [>]\r (no-eol) (esc)
\r (no-eol) (esc)
\r (no-eol) (esc)
exporting 1/1 [==========================================>]\r (no-eol) (esc)
\r (no-eol) (esc)
pushing to git+http://localhost:$HGPORT/
searching for changes
adding objects
......
......@@ -3,6 +3,17 @@
Load commonly used test logic
$ . "$TESTDIR/testutil"
Enable progress debugging:
$ cat >> $HGRCPATH <<EOF
> [progress]
> delay = 0
> refresh = 0
> width = 60
> format = topic unit total number item bar
> assume-tty = yes
> EOF
Create a dummy repository and serve it
$ git init -q test
......@@ -22,6 +33,25 @@
Make sure that clone over the old git protocol doesn't break
$ hg clone -U git://localhost:$HGPORT/test copy 2>&1
\r (no-eol) (esc)
Counting objects 1/6 [=====> ]\r (no-eol) (esc)
Counting objects 2/6 [===========> ]\r (no-eol) (esc)
Counting objects 3/6 [=================> ]\r (no-eol) (esc)
Counting objects 4/6 [=======================> ]\r (no-eol) (esc)
Counting objects 5/6 [=============================> ]\r (no-eol) (esc)
Counting objects 6/6 [===================================>]\r (no-eol) (esc)
Counting objects 6/6 [===================================>]\r (no-eol) (esc)
\r (no-eol) (esc)
\r (no-eol) (esc)
Compressing objects 1/3 [==========> ]\r (no-eol) (esc)
Compressing objects 2/3 [=====================> ]\r (no-eol) (esc)
Compressing objects 3/3 [================================>]\r (no-eol) (esc)
Compressing objects 3/3 [================================>]\r (no-eol) (esc)
\r (no-eol) (esc)
\r (no-eol) (esc)
importing commits 1/2 [================> ]\r (no-eol) (esc)
importing commits 2/2 [==================================>]\r (no-eol) (esc)
\r (no-eol) (esc)
importing git objects into hg
$ hg log -T 'HG:{node|short} GIT:{gitnode|short}\n' -R copy
HG:221dd250e933 GIT:3af9773036a9
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment