1 source [file dirname [info script]]/testing.tcl
13 test mkdir-1.1 "Simple dir" {
18 test mkdir-1.2 "Create missing parents" {
19 file mkdir tmp/def/ghi/jkl
20 file isdir tmp/def/ghi/jkl
23 test mkdir-1.3 "Existing dir" {
28 test mkdir-1.4 "Child of existing dir" {
29 file mkdir tmp/dir/child
30 file isdir tmp/dir/child
33 test mkdir-1.5 "Create dir over existing file" {
34 list [catch {file mkdir tmp/file} msg] [file isdir tmp/file]
37 test mkdir-1.6 "Create dir below existing file" {
38 list [catch {file mkdir tmp/file/dir} msg] [file isdir tmp/file/dir]
41 test mkdir-1.8 "Multiple dirs" {
42 file mkdir tmp/1 tmp/2 tmp/3
43 list [file isdir tmp/1] [file isdir tmp/2] [file isdir tmp/3]
46 test mkdir-1.7 "Stop on failure" {
47 catch {file mkdir tmp/4 tmp/file tmp/5}
48 list [file isdir tmp/4] [file isdir tmp/5]
51 test rmdir-2.0 "Remove existing dir" {
56 test rmdir-2.1 "Remove missing dir" {
60 test rmdir-2.2 "Remove non-empty dir" {
61 catch {file delete tmp/def}