Makefile: Forgot to add guilt-patchbomb to the list of scripts
[guilt.git] / regression / 021-pop.sh
blob418a0548c5a091403ba18c23abc39a5810a5ef0a
2 # Test the pop code
5 source scaffold
6 source generic_test_data
8 function expected_files
10 cat << DONE
11 d .git/patches
12 d .git/patches/master
13 f .git/patches/master/series
14 f .git/patches/master/status
15 f .git/patches/master/modify
16 f .git/patches/master/add
17 f .git/patches/master/remove
18 f .git/patches/master/mode
19 DONE
22 # the test itself
23 empty_repo
24 cd $REPODIR
25 guilt-init
27 generic_prepare_for_tests
29 guilt-push --all > /dev/null
31 # NOTE: this has to be in the reverse order as the series file
32 tests="mode remove add modify"
34 for t in $tests
36 guilt-pop > /dev/null
38 expected_files | verify_repo .git/patches
40 echo -n "[unnamed-$t] "
41 done
43 guilt-push --all > /dev/null
45 for t in $tests
47 guilt-pop $t > /dev/null
49 expected_files | verify_repo .git/patches
51 echo -n "[$t] "
53 guilt-push --all > /dev/null
54 done
56 # FIXME: make sure --all and multiple patch pop works
58 complete_test