Lines Matching refs:mkdir
7 testing "mkdir" "mkdir one && [ -d one ] && echo yes" "yes\n" "" ""
11 testing "mkdir existing" \
12 "mkdir existing 2> /dev/null || [ -f existing ] && echo yes" "yes\n" "" ""
15 testing "mkdir one two" \
16 "mkdir one two && [ -d one ] && [ -d two ] && echo yes" "yes\n" "" ""
19 testing "mkdir missing/one" \
20 "mkdir missing/one 2> /dev/null || [ ! -d missing ] && echo yes" "yes\n" "" ""
22 testing "mkdir -p" \
23 "mkdir -p one/two/three && [ -d one/two/three ] && echo yes" "yes\n" "" ""
26 mkdir existing
27 testing "mkdir -p existing" "mkdir -p existing && echo yes" "yes\n" "" ""
31 testing "mkdir (default permissions)" \
32 "mkdir one && stat -c %a one" "654\n" "" ""
35 testing "mkdir -m 124" \
36 "mkdir -m 124 one && stat -c %a one" "124\n" "" ""
40 testing "mkdir -p -m 653" \
41 "mkdir -p -m 653 one/two && stat -c %a one && stat -c %a one/two" \
45 testing "mkdir -p one/two/ (trailing slash)" \
46 "mkdir -p one/two/ && [ -d one/two ] && echo yes" "yes\n" "" ""
50 testing "mkdir -p -m 777 (022 umask)" \
51 "mkdir -p -m 777 one/two && stat -c %a one && stat -c %a one/two" \
56 testing "mkdir -p -m 777 (377 umask)" \
57 "mkdir -p -m 777 one/two && stat -c %a one && stat -c %a one/two" \
62 testing "mkdir -vp" "mkdir -vp walrus 2>&1" \
63 "mkdir: created directory 'walrus'\n" "" ""
65 testing "mkdir -vp exists" "mkdir -vp walrus 2>&1" \
70 testing "mkdir continue after fail" \
71 "mkdir -m 777 one two three 2>/dev/null || stat -c %a three" \