From 2f1beb0ac7a86a106cf38288d19f27430596199b Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Sun, 20 Jan 2008 18:10:29 -0500 Subject: [PATCH] regression: test 026: test delete code Signed-off-by: Josef 'Jeff' Sipek --- regression/t-026.out | 31 +++++++++++++++++++++++++++++++ regression/t-026.sh | 30 ++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 regression/t-026.out create mode 100755 regression/t-026.sh diff --git a/regression/t-026.out b/regression/t-026.out new file mode 100644 index 0000000..b40afcf --- /dev/null +++ b/regression/t-026.out @@ -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 diff --git a/regression/t-026.sh b/regression/t-026.sh new file mode 100755 index 0000000..8a6d9c3 --- /dev/null +++ b/regression/t-026.sh @@ -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