git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 0/2] StGit testcases for new issues
@ 2007-03-14 21:34 Yann Dirson
  2007-03-14 21:34 ` [PATCH 1/2] Demonstrate issue #8733 Yann Dirson
  2007-03-14 21:35 ` [PATCH 2/2] Demonstrate issue #8732 Yann Dirson
  0 siblings, 2 replies; 3+ messages in thread
From: Yann Dirson @ 2007-03-14 21:34 UTC (permalink / raw
  To: Catalin Marinas; +Cc: git

Here are testcases for the 2 issues involving stack deletion and the
branch that happens to be named "master", that I just reported in the
gna! tracker.

It is probably not a good idea to apply them to stgit's master, but it
could be useful to setup a (rewinding) branch to hold such testcases.
Maybe having testcases readily available would help/encourage people
to step into the project and start to contribute by a bugfix ?

-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] Demonstrate issue #8733.
  2007-03-14 21:34 [PATCH 0/2] StGit testcases for new issues Yann Dirson
@ 2007-03-14 21:34 ` Yann Dirson
  2007-03-14 21:35 ` [PATCH 2/2] Demonstrate issue #8732 Yann Dirson
  1 sibling, 0 replies; 3+ messages in thread
From: Yann Dirson @ 2007-03-14 21:34 UTC (permalink / raw
  To: Catalin Marinas; +Cc: git




Signed-off-by: Yann Dirson <ydirson@altern.org>
---

 t/t1003-branch-delete.sh |   40 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/t/t1003-branch-delete.sh b/t/t1003-branch-delete.sh
new file mode 100755
index 0000000..8625cc5
--- /dev/null
+++ b/t/t1003-branch-delete.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+#
+# Copyright (c) 2006 Catalin Marinas
+#
+
+test_description='Branch deletion.'
+
+. ./test-lib.sh
+
+test_expect_success \
+    'Create a new branch' \
+    '
+    stg branch --create new &&
+    git rev-parse new~0
+    '
+
+test_expect_success \
+    'Delete the new branch' \
+    'stg branch --delete new'
+
+test_expect_failure \
+    'Check the deleted branch is gone' \
+    'git rev-parse new~0'
+
+test_expect_success \
+    'Rename master branch, and create a new branch' \
+    '
+    git branch -m master a &&
+    stg branch --create b
+    '
+
+test_expect_success \
+    'Delete the new branch' \
+    'stg branch --delete b'
+
+test_expect_failure \
+    'Check the deleted branch is gone' \
+    'git rev-parse b~0'
+
+test_done

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] Demonstrate issue #8732.
  2007-03-14 21:34 [PATCH 0/2] StGit testcases for new issues Yann Dirson
  2007-03-14 21:34 ` [PATCH 1/2] Demonstrate issue #8733 Yann Dirson
@ 2007-03-14 21:35 ` Yann Dirson
  1 sibling, 0 replies; 3+ messages in thread
From: Yann Dirson @ 2007-03-14 21:35 UTC (permalink / raw
  To: Catalin Marinas; +Cc: git




Signed-off-by: Yann Dirson <ydirson@altern.org>
---

 t/t1003-branch-delete.sh |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/t/t1003-branch-delete.sh b/t/t1003-branch-delete.sh
index 8625cc5..a5c486e 100755
--- a/t/t1003-branch-delete.sh
+++ b/t/t1003-branch-delete.sh
@@ -37,4 +37,17 @@ test_expect_failure \
     'Check the deleted branch is gone' \
     'git rev-parse b~0'
 
+
+test_expect_success \
+    'Create a new stack named "master"' \
+    'stg branch --create master'
+
+test_expect_success \
+    'Delete the "master" branch' \
+    'stg branch --delete master'
+
+test_expect_failure \
+    'Check the deleted "master" branch is gone' \
+    'git rev-parse master~0'
+
 test_done

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-03-14 21:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-14 21:34 [PATCH 0/2] StGit testcases for new issues Yann Dirson
2007-03-14 21:34 ` [PATCH 1/2] Demonstrate issue #8733 Yann Dirson
2007-03-14 21:35 ` [PATCH 2/2] Demonstrate issue #8732 Yann Dirson

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).