[PATCH] guilt: improve patch header handling
[guilt/mob.git] / regression / t-032.sh
blob92c5c8a5c10e1b1315214bbe33b884d738f608bb
1 #!/bin/bash
3 # Test the import code
6 source $REG_DIR/scaffold
8 cmd setup_repo
10 cmd touch foo foo:baz
12 # invalid character
13 shouldfail guilt-import -P foo:bar foo
15 # non-existant file & invalid character
16 shouldfail guilt-import -P foo:bar foo2
18 # non-existant file
19 shouldfail guilt-import -P foo foo2
21 # ok
22 cmd guilt-import -P foo3 foo
24 # duplicate patch name
25 shouldfail guilt-import -P foo3 foo
27 # ok
28 cmd guilt-import -P foo2 foo
30 # ok
31 shouldfail guilt-import foo
33 # duplicate patch name (implicit)
34 shouldfail guilt-import foo
36 # check that bug 47 doesn't come back
37 cmd guilt-import -P foo,bar foo
39 # implicitly bad patch name - invalid char
40 shouldfail guilt-import foo:baz