~ubuntu-branches/ubuntu/lucid/guilt/lucid

« back to all changes in this revision

Viewing changes to regression/t-028.sh

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Johnson
  • Date: 2008-08-24 11:34:50 UTC
  • mfrom: (3.1.5 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080824113450-723jxmcg8hxmbd6p
Tags: 0.30-1.1
* Non-maintainer upload.
* Fix bashism in guilt-patchbomb 
  (added debian/patches/bashisms) (Closes: #489606)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#
 
3
# Test the header code
 
4
#
 
5
 
 
6
source $REG_DIR/scaffold
 
7
 
 
8
cmd setup_repo
 
9
 
 
10
function fixup_time_info
 
11
{
 
12
        touch -d "$GIT_COMMITTER_DATE" ".git/patches/master/$1"
 
13
}
 
14
 
 
15
shouldfail guilt-header
 
16
 
 
17
cmd guilt-push -a
 
18
 
 
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
 
23
 
 
24
cmd list_files
 
25
 
 
26
cmd guilt-header
 
27
 
 
28
guilt-series | while read n; do
 
29
        cmd guilt-header $n
 
30
done
 
31
 
 
32
shouldfail guilt-header non-existant 2>&1
 
33
 
 
34
# FIXME: how do we check that -e works?