Commits

Patrick Mézard committed db3e314

Rename test-codereview-clpush.t into test-clpush.t

  • Participants
  • Parent commits 51d151a

Comments (0)

Files changed (2)

tests/test-clpush.t

+  $ echo "[ui]" >> $HGRCPATH
+  $ echo "interactive=true" >> $HGRCPATH
+  $ echo "[extensions]" >> $HGRCPATH
+  $ echo "codereview=$(echo $(dirname $TESTDIR))/lib/codereview/codereview.py" >> $HGRCPATH
+  $ echo "rebase=" >> $HGRCPATH
+  $ cp "$TESTDIR/.codereview_upload_cookies_codereview.appspot.com" ~/
+
+Check for evolve extension
+
+  $ hg help amend >/dev/null 2>&1
+  $ status=$?
+  $ if [ $status -ne 0 ]; then
+  >     echo "activate evolve with --extra-config-opt"
+  >     exit 1
+  > fi
+
+Initialize repository for codereview
+
+  $ hg init repo
+  $ cd repo
+  $ cat > codereview.cfg <<EOF
+  > defaultcc: invalid@example.com
+  > EOF
+  $ cat >> $HGRCPATH <<EOF
+  > [paths]
+  > default=http://example.com/remote/url
+  > [codereview]
+  > allowediting = true
+  > EOF
+  $ echo a > a
+  $ hg commit -A -m test a
+
+Test "clid" keyword on regular changeset
+
+  $ hg log -r . --template 'CLID: {clid}\n'
+  CLID: 
+
+No changeset argument
+
+  $ hg clpush 2>&1 | grep 'invalid argument'
+  hg clpush: invalid arguments
+
+CLs cannot be created from public changesets
+
+  $ hg phase --public .
+  $ hg clpush .
+  abort: cannot create CL from a public changeset
+  [255]
+  $ hg phase --draft --force .
+
+Valid changeset
+
+  $ hg clpush .
+  Issue created. URL: https://codereview.appspot.com/\d+ (re)
+  $ hg log -r . --template '{desc}\n'
+  test
+  
+  Codereview CL: https://codereview.appspot.com/\d+ (re)
+
+Updating a changelist
+
+  $ echo a >> a
+  $ hg amend
+  $ hg clpush .
+  Issue updated. URL: https://codereview.appspot.com/\d+ (re)
+  $ hg log -r . --template '{desc}\n'
+  test
+  
+  Codereview CL: https://codereview.appspot.com/\d+ (re)
+
+Mailing change
+
+  $ hg clmail --no-email 2>&1 | grep 'invalid arguments'
+  hg clmail: invalid arguments
+  $ hg clmail --no-email .
+  Issue updated. URL: https://codereview.appspot.com/\d+ (re)
+
+Test 'clid' keyword on published changeset
+
+  $ hg log -r . --template 'CLID: {clid}\n'
+  CLID: \d+ (re)
+  $ clid=$(hg log -r . --template '{clid}')
+
+Import invalid changelist
+
+  $ hg climport 65010045
+  .*HTTP Error 404: Not Found (re)
+  abort: error loading CL \d+: cannot load CL \d+ from server (re)
+  [255]
+
+Test climport --dry-run
+
+  $ hg climport --dry-run ${clid}
+  Index: a
+  ===================================================================
+  new file mode 100644
+  --- /dev/null
+  +++ b/a
+  @@ -0,0 +1,2 @@
+  +a
+  +a
+
+Test clclose arguments
+
+  $ hg clclose --no-email
+  hg clclose: invalid arguments
+  hg clclose [OPTIONS] REV
+  
+  close a change list
+  
+  options:
+  
+    --delete   delete changelist
+    --no-email update the changelist but do not email
+  
+  use "hg help clclose" to show the full help text
+  [255]
+
+Close and delete the CL
+
+  $ hg clclose --delete --no-email .
+  Issue deleted. URL: https://codereview.appspot.com/\d+ (re)
+

tests/test-codereview-clpush.t

-  $ echo "[ui]" >> $HGRCPATH
-  $ echo "interactive=true" >> $HGRCPATH
-  $ echo "[extensions]" >> $HGRCPATH
-  $ echo "codereview=$(echo $(dirname $TESTDIR))/lib/codereview/codereview.py" >> $HGRCPATH
-  $ echo "rebase=" >> $HGRCPATH
-  $ cp "$TESTDIR/.codereview_upload_cookies_codereview.appspot.com" ~/
-
-Check for evolve extension
-
-  $ hg help amend >/dev/null 2>&1
-  $ status=$?
-  $ if [ $status -ne 0 ]; then
-  >     echo "activate evolve with --extra-config-opt"
-  >     exit 1
-  > fi
-
-Initialize repository for codereview
-
-  $ hg init repo
-  $ cd repo
-  $ cat > codereview.cfg <<EOF
-  > defaultcc: invalid@example.com
-  > EOF
-  $ cat >> $HGRCPATH <<EOF
-  > [paths]
-  > default=http://example.com/remote/url
-  > [codereview]
-  > allowediting = true
-  > EOF
-  $ echo a > a
-  $ hg commit -A -m test a
-
-Test "clid" keyword on regular changeset
-
-  $ hg log -r . --template 'CLID: {clid}\n'
-  CLID: 
-
-No changeset argument
-
-  $ hg clpush 2>&1 | grep 'invalid argument'
-  hg clpush: invalid arguments
-
-CLs cannot be created from public changesets
-
-  $ hg phase --public .
-  $ hg clpush .
-  abort: cannot create CL from a public changeset
-  [255]
-  $ hg phase --draft --force .
-
-Valid changeset
-
-  $ hg clpush .
-  Issue created. URL: https://codereview.appspot.com/\d+ (re)
-  $ hg log -r . --template '{desc}\n'
-  test
-  
-  Codereview CL: https://codereview.appspot.com/\d+ (re)
-
-Updating a changelist
-
-  $ echo a >> a
-  $ hg amend
-  $ hg clpush .
-  Issue updated. URL: https://codereview.appspot.com/\d+ (re)
-  $ hg log -r . --template '{desc}\n'
-  test
-  
-  Codereview CL: https://codereview.appspot.com/\d+ (re)
-
-Mailing change
-
-  $ hg clmail --no-email 2>&1 | grep 'invalid arguments'
-  hg clmail: invalid arguments
-  $ hg clmail --no-email .
-  Issue updated. URL: https://codereview.appspot.com/\d+ (re)
-
-Test 'clid' keyword on published changeset
-
-  $ hg log -r . --template 'CLID: {clid}\n'
-  CLID: \d+ (re)
-  $ clid=$(hg log -r . --template '{clid}')
-
-Import invalid changelist
-
-  $ hg climport 65010045
-  .*HTTP Error 404: Not Found (re)
-  abort: error loading CL \d+: cannot load CL \d+ from server (re)
-  [255]
-
-Test climport --dry-run
-
-  $ hg climport --dry-run ${clid}
-  Index: a
-  ===================================================================
-  new file mode 100644
-  --- /dev/null
-  +++ b/a
-  @@ -0,0 +1,2 @@
-  +a
-  +a
-
-Test clclose arguments
-
-  $ hg clclose --no-email
-  hg clclose: invalid arguments
-  hg clclose [OPTIONS] REV
-  
-  close a change list
-  
-  options:
-  
-    --delete   delete changelist
-    --no-email update the changelist but do not email
-  
-  use "hg help clclose" to show the full help text
-  [255]
-
-Close and delete the CL
-
-  $ hg clclose --delete --no-email .
-  Issue deleted. URL: https://codereview.appspot.com/\d+ (re)
-