Guilt v0.32-rc1
[guilt.git] / regression / t-060.sh
blobb4ae57a994d4c63189c6e577db0520ce52e59f6c
1 #!/bin/bash
3 # Test the guilt-files code
6 source $REG_DIR/scaffold
8 cmd setup_repo
10 function guiltfiles_args
12 cat << DONE
16 -v -l
18 -l -a
19 -v -a
20 -v -l -a
21 DONE
24 # create a patch that contains a file in a subdirectory
25 cmd guilt-new subdir
27 cmd mkdir blah
29 cmd touch blah/sub
31 cmd guilt-add blah/sub
33 cmd guilt-refresh
35 # push em all for tesing
36 cmd guilt-push -a
39 # actual tests
42 guiltfiles_args | while read args; do
43 cmd guilt-files $args
44 done
47 # test that changes in the index are also considered
50 cmd dd if=/dev/zero of=file.bin bs=1 count=1024 | filter_dd
52 guiltfiles_args | while read args; do
53 cmd guilt-files $args
54 done
56 cmd git-add file.bin
58 guiltfiles_args | while read args; do
59 cmd guilt-files $args
60 done
62 cmd git-rm def
64 guiltfiles_args | while read args; do
65 cmd guilt-files $args
66 done