doc: Markdown format HOWTO
[guilt.git] / regression / t-032.sh
blobbba401e6a1b28dff13833859c39832c7aa9f26cb
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 cmd 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