From 4fa3d8129e021bdfef342c71ef53e04383e5f048 Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Thu, 28 Dec 2006 21:36:57 -0500 Subject: [PATCH] Update/cleanup regression test for init Signed-off-by: Josef 'Jeff' Sipek --- regression/init.sh | 71 ++++++++++++++++++----------------------------------- regression/scaffold | 1 + 2 files changed, 25 insertions(+), 47 deletions(-) rewrite regression/init.sh (79%) diff --git a/regression/init.sh b/regression/init.sh dissimilarity index 79% index 576b765..e73a74a 100755 --- a/regression/init.sh +++ b/regression/init.sh @@ -1,47 +1,24 @@ -# -# Test the init code -# - -source scaffold - -function expected_files -{ - cat << DONE -d . -d ./.git -d ./.git/refs -d ./.git/refs/heads -d ./.git/refs/tags -d ./.git/branches -d ./.git/remotes -f ./.git/description -d ./.git/hooks -f ./.git/hooks/applypatch-msg -f ./.git/hooks/post-update -f ./.git/hooks/commit-msg -f ./.git/hooks/update -f ./.git/hooks/pre-applypatch -f ./.git/hooks/pre-commit -f ./.git/hooks/post-commit -f ./.git/hooks/pre-rebase -d ./.git/info -f ./.git/info/exclude -d ./.git/objects -d ./.git/objects/pack -d ./.git/objects/info -f ./.git/HEAD -f ./.git/config -d ./.git/patches -d ./.git/patches/master -f ./.git/patches/master/series -f ./.git/patches/master/status -DONE -} - -# the test itself -empty_repo -cd $REPODIR -gq-init -expected_files | verify_repo - -complete_test +# +# Test the init code +# + +source scaffold + +function expected_files +{ + cat << DONE +d .git/patches +d .git/patches/master +f .git/patches/master/series +f .git/patches/master/status +DONE +} + +# the test itself +empty_repo +cd $REPODIR +gq-init +expected_files | verify_repo .git/patches + +complete_test + diff --git a/regression/scaffold b/regression/scaffold index a345845..75775c0 100644 --- a/regression/scaffold +++ b/regression/scaffold @@ -28,3 +28,4 @@ function complete_test } echo -n "`basename $0`: " + -- 2.11.4.GIT