2 # Test the applied code
6 source generic_test_data
8 function expected_status_modify
10 [ ! -z "$1" ] && echo -n "291b0c3f4133842943d568e25f3a27ac0cc3a1f0:"
14 function expected_status_add
16 [ ! -z "$1" ] && echo -n "291b0c3f4133842943d568e25f3a27ac0cc3a1f0:"
19 [ ! -z "$1" ] && echo -n "82f68f92022dc51bed0a4099c89068d778754aad:"
23 function expected_status_remove
25 [ ! -z "$1" ] && echo -n "291b0c3f4133842943d568e25f3a27ac0cc3a1f0:"
28 [ ! -z "$1" ] && echo -n "82f68f92022dc51bed0a4099c89068d778754aad:"
31 [ ! -z "$1" ] && echo -n "393c0de5a289e1319cee588a7890971e5b039f46:"
35 function expected_status_mode
37 [ ! -z "$1" ] && echo -n "291b0c3f4133842943d568e25f3a27ac0cc3a1f0:"
40 [ ! -z "$1" ] && echo -n "82f68f92022dc51bed0a4099c89068d778754aad:"
43 [ ! -z "$1" ] && echo -n "393c0de5a289e1319cee588a7890971e5b039f46:"
46 [ ! -z "$1" ] && echo -n "5470ce3a3aea43c5fd75db78d32ba449b93df4ee:"
55 generic_prepare_for_tests
57 # NOTE: this has to be in the same order as the series file
58 tests
="modify add remove mode"
62 guilt-push
> /dev
/null
64 guilt-applied
> /tmp
/reg.$$
66 expected_status_
$t |
diff -u - /tmp
/reg.$$
67 expected_status_
$t "file" |
diff -u - $REPODIR/.git
/patches
/master
/status