Guilt v0.35
[guilt/mob.git] / regression / t-032.sh
blob3b32da513bdfbfb608bc5e7f9e79f6e96d76d50a
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