patchbomb: Friendly wrapper for git-format-patch & git-send-email
[guilt.git] / regression / 020-push.sh
blobd2563c0ad4edac4c7525b983fc5d3077114e08ca
2 # Test the push 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 # NOTE: this has to be in the same order as the series file
30 tests="modify add remove mode"
32 for t in $tests
34 guilt-push > /dev/null
36 expected_files | verify_repo .git/patches
38 echo -n "[$t] "
39 done
41 # FIXME: make sure --all and multiple patch push works
43 complete_test