Makefile: Forgot to add guilt-patchbomb to the list of scripts
[guilt.git] / regression / 010-init.sh
blob17c1c16a556dc70dceb4c46d5b593425796e07d6
2 # Test the init code
5 source scaffold
7 function expected_files_master
9 cat << DONE
10 d .git/patches
11 d .git/patches/master
12 f .git/patches/master/series
13 f .git/patches/master/status
14 DONE
17 function expected_files_other
19 expected_files_master
20 cat << DONE
21 d .git/patches/other
22 f .git/patches/other/series
23 f .git/patches/other/status
24 DONE
27 # the test itself
28 empty_repo
29 cd $REPODIR
31 # make sure we have an index to work with
32 echo "abc" > def
33 git-add def 2> /dev/null > /dev/null
34 git-commit -m "foo" 2> /dev/null > /dev/null
36 branches="master other"
38 for b in $branches
40 if [ "$b" != "master" ]; then
41 git-branch $b
42 git-checkout $b 2> /dev/null
45 guilt-init
46 expected_files_$b | verify_repo .git/patches
47 echo -n "[$b:create] "
49 shouldfail guilt-init
50 echo -n "[$b:exists] "
51 done
53 complete_test