Skip to content

Commit

Permalink
regression: test 026: test delete code
Browse files Browse the repository at this point in the history
Signed-off-by: Josef 'Jeff' Sipek <[email protected]>
  • Loading branch information
jeffpc committed Jan 20, 2008
1 parent f192bc8 commit 2f1beb0
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
31 changes: 31 additions & 0 deletions regression/t-026.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
% setup_repo
% guilt-delete mode
% list_files
d .git/patches
d .git/patches/master
f 22930c6d1f1938f298a4fca51c57e4b47171db21 .git/patches/master/mode
f 5d8322e2edfca0589cc24df9c09985a544591a2c .git/patches/master/add
f 8bdf2abdb045e63bb877890db12afcd5a2f023eb .git/patches/master/remove
f bc9ab2e0f5db99d483961e956e814d963f0309f8 .git/patches/master/modify
f da39a3ee5e6b4b0d3255bfef95601890afd80709 .git/patches/master/status
f f819c9abb712af6e42af30044bc5388d454ab0cb .git/patches/master/series
% guilt-delete mode (again)
% list_files
d .git/patches
d .git/patches/master
f 22930c6d1f1938f298a4fca51c57e4b47171db21 .git/patches/master/mode
f 5d8322e2edfca0589cc24df9c09985a544591a2c .git/patches/master/add
f 8bdf2abdb045e63bb877890db12afcd5a2f023eb .git/patches/master/remove
f bc9ab2e0f5db99d483961e956e814d963f0309f8 .git/patches/master/modify
f da39a3ee5e6b4b0d3255bfef95601890afd80709 .git/patches/master/status
f f819c9abb712af6e42af30044bc5388d454ab0cb .git/patches/master/series
% guilt-delete add
% list_files
d .git/patches
d .git/patches/master
f 22930c6d1f1938f298a4fca51c57e4b47171db21 .git/patches/master/mode
f 5d8322e2edfca0589cc24df9c09985a544591a2c .git/patches/master/add
f 7848194fd2e9ee0eb6589482900687d799d60a12 .git/patches/master/series
f 8bdf2abdb045e63bb877890db12afcd5a2f023eb .git/patches/master/remove
f bc9ab2e0f5db99d483961e956e814d963f0309f8 .git/patches/master/modify
f da39a3ee5e6b4b0d3255bfef95601890afd80709 .git/patches/master/status
30 changes: 30 additions & 0 deletions regression/t-026.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
#
# Test the delete code
#

source $REG_DIR/scaffold

begin "setup_repo"
setup_repo

begin "guilt-delete mode"
guilt-delete mode

begin "list_files"
list_files

begin "guilt-delete mode (again)"
guilt-delete mode 2>&1
# FIXME: this should return a non-zero status, no?

begin "list_files"
list_files

begin "guilt-delete add"
guilt-delete add

begin "list_files"
list_files

# FIXME: test delete -f

0 comments on commit 2f1beb0

Please sign in to comment.