summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne Jansen <sensille@gmx.net>2013-02-15 12:08:31 +0100
committerArne Jansen <sensille@gmx.net>2013-02-15 12:08:31 +0100
commita2cfc0320f3be6e16f7370025d5a80ff2a2aa22d (patch)
tree67b5a0b1726328e3cb0f22431b2d36a5a351621b
parent5d62909acf93df2b6cc9323c4c7c2bbb6e77feb8 (diff)
downloadfar-progs-a2cfc0320f3be6e16f7370025d5a80ff2a2aa22d.tar.gz
far tests: add 057 and 058
-rw-r--r--Makefile2
-rw-r--r--meta/057-replace-dir-dir.mac9
-rw-r--r--meta/058-mv-dir-new-file.mac12
3 files changed, 22 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7254492..31081e7 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ fardump: fardump.c
fssum: fssum.c
gcc -Wall $(CFLAGS) fssum.c -o fssum -lssl -lcrypto
-actions: meta/*.mac
+actions: meta meta/*.mac
perl expand.pl -o actions -q meta/*.mac
clean:
diff --git a/meta/057-replace-dir-dir.mac b/meta/057-replace-dir-dir.mac
new file mode 100644
index 0000000..0e226b1
--- /dev/null
+++ b/meta/057-replace-dir-dir.mac
@@ -0,0 +1,9 @@
+# replace a dir by a dir under the same name with content
+mkdir $1 /1
+mkdir $2 /1/2
+snapshot
+
+rmdir /1/2
+mkdir $3 /1/2
+mkdir $4 /1/2/3
+snapshot
diff --git a/meta/058-mv-dir-new-file.mac b/meta/058-mv-dir-new-file.mac
new file mode 100644
index 0000000..8f00495
--- /dev/null
+++ b/meta/058-mv-dir-new-file.mac
@@ -0,0 +1,12 @@
+# move a dir to a different place and add a file to the dir
+mkdir 1 /1
+mkdir $2 /1/2
+mkdir $3 /1/3
+mkdir $4 /1/2/4
+mkdir $5 /1/3/4
+snapshot
+
+rmdir /1/3/4
+mkfile $6 /1/2/4/6
+rename /1/2/4 /1/3/4
+snapshot