regression: make use of the os-dependant files
[guilt.git] / regression / t-028.sh
blob2e76a2be37ef14e2cfa66481f51f411580c0dd90
1 #!/bin/bash
3 # Test the header code
6 source $REG_DIR/scaffold
8 cmd setup_repo
10 function fixup_time_info
12 touch -a -m -t "$TOUCH_DATE" ".git/patches/master/$1"
15 shouldfail guilt-header
17 cmd guilt-push -a
19 cmd guilt-new -s -m "blah blah blah" patch-with-some-desc
20 cmd guilt-pop
21 fixup_time_info patch-with-some-desc
22 cmd guilt-push
24 cmd list_files
26 cmd guilt-header
28 guilt-series | while read n; do
29 cmd guilt-header $n
30 done
32 shouldfail guilt-header non-existant 2>&1
34 # FIXME: how do we check that -e works?