aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/builtin/mkdir.testscript
blob: 8110f5110bba7ef0414ca812a87e6c9a5046b643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# file      : tests/test/script/builtin/mkdir.testscript
# license   : MIT; see accompanying LICENSE file

.include ../common.testscript

: dir
:
{
  : cleanup
  :
  $c <<EOI && $b
    mkdir a b
    EOI

  : no-cleanup
  :
  : Also test that `--` is handled properly.
  :
  $c <<EOI && $b
    mkdir --no-cleanup -- --no-cleanup;
    rmdir -- --no-cleanup
    EOI
}

: parent
:
{
  : cleanup
  :
  $c <<EOI && $b
    mkdir -p a/b
    EOI

  : no-cleanup
  :
  $c <<EOI && $b
    mkdir -p --no-cleanup a/b;
    rm -r a
    EOI
}