Makefile: Forgot to add guilt-patchbomb to the list of scripts
[guilt.git] / regression / 024-unapplied.sh
blob368b3cccae6c9d634396b83402b377e2fdf74aae
2 # Test the unapplied code
5 source scaffold
6 source generic_test_data
8 function expected_status_modify
10 echo "add"
11 echo "remove"
12 echo "mode"
15 function expected_status_add
17 echo "remove"
18 echo "mode"
21 function expected_status_remove
23 echo "mode"
26 function expected_status_mode
28 return 0
31 # the test itself
32 empty_repo
33 cd $REPODIR
34 guilt-init
36 generic_prepare_for_tests
38 # NOTE: this has to be in the same order as the series file
39 tests="modify add remove mode"
41 for t in $tests
43 guilt-push > /dev/null
45 guilt-unapplied > /tmp/reg.$$
47 expected_status_$t | diff -u - /tmp/reg.$$
49 echo -n "[$t] "
50 done
52 rm -f /tmp/reg.$$
54 complete_test