summaryrefslogtreecommitdiffstats
path: root/tests/expected/rename
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 13:14:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 13:14:44 +0000
commit30ff6afe596eddafacf22b1a5b2d1a3d6254ea15 (patch)
tree9b788335f92174baf7ee18f03ca8330b8c19ce2b /tests/expected/rename
parentInitial commit. (diff)
downloadutil-linux-upstream.tar.xz
util-linux-upstream.zip
Adding upstream version 2.36.1.upstream/2.36.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--tests/expected/rename/basic4
-rw-r--r--tests/expected/rename/exit_codes6
-rw-r--r--tests/expected/rename/exit_codes.err1
-rw-r--r--tests/expected/rename/overwrite1
-rw-r--r--tests/expected/rename/subdir29
-rw-r--r--tests/expected/rename/symlink7
-rw-r--r--tests/expected/rename/symlink.err1
7 files changed, 49 insertions, 0 deletions
diff --git a/tests/expected/rename/basic b/tests/expected/rename/basic
new file mode 100644
index 0000000..8a7a1d8
--- /dev/null
+++ b/tests/expected/rename/basic
@@ -0,0 +1,4 @@
+`rename_basic.1' -> `rename_test.1'
+`rename_basic.2' -> `rename_test.2'
+`rename_basic.3' -> `rename_test.3'
+what is rename_basic.? doing here?
diff --git a/tests/expected/rename/exit_codes b/tests/expected/rename/exit_codes
new file mode 100644
index 0000000..07885f7
--- /dev/null
+++ b/tests/expected/rename/exit_codes
@@ -0,0 +1,6 @@
+RENAME_EXIT_NOTHING: 4
+`rename_exit_codes.1' -> `rename_exit_values.1'
+`rename_exit_codes.2' -> `rename_exit_values.2'
+EXIT_SUCCESS: 0
+`rename_exit_values.1' -> `rename_exit_codes.1'
+RENAME_EXIT_SOMEOK: 2
diff --git a/tests/expected/rename/exit_codes.err b/tests/expected/rename/exit_codes.err
new file mode 100644
index 0000000..6478542
--- /dev/null
+++ b/tests/expected/rename/exit_codes.err
@@ -0,0 +1 @@
+rename: rename_exit_values.2: rename to rename_exit_codes.2 failed: Is a directory
diff --git a/tests/expected/rename/overwrite b/tests/expected/rename/overwrite
new file mode 100644
index 0000000..b16f799
--- /dev/null
+++ b/tests/expected/rename/overwrite
@@ -0,0 +1 @@
+Skipping existing file: `rename_to'
diff --git a/tests/expected/rename/subdir b/tests/expected/rename/subdir
new file mode 100644
index 0000000..f429602
--- /dev/null
+++ b/tests/expected/rename/subdir
@@ -0,0 +1,29 @@
+== files ==
+`rename_aa/aa' -> `rename_aa/xa'
+`rename_ab/aa' -> `rename_ab/xa'
+rename_aa
+rename_aa/xa
+rename_ab
+rename_ab/xa
+== symlinks ==
+rename_aa/sublink.1: `rename/aa' -> `renxme/aa'
+rename_aa/sublink.2: `rename/aa' -> `renxme/aa'
+rename_aa/sublink.3: `rename/aa' -> `renxme/aa'
+rename_ab/sublink.1: `rename/aa' -> `renxme/aa'
+rename_ab/sublink.2: `rename/aa' -> `renxme/aa'
+rename_ab/sublink.3: `rename/aa' -> `renxme/aa'
+renxme/aa
+renxme/aa
+renxme/aa
+renxme/aa
+renxme/aa
+renxme/aa
+== fullpath ==
+`./rename_path1' -> `./rename_path2'
+./rename_path2
+`rename_path_test1' -> `rename_path_a/test1'
+./rename_path_a/test1
+`rename_path_a/test2' -> `rename_path_b/test2'
+rename_path_a
+rename_path_b
+rename_path_b/test2
diff --git a/tests/expected/rename/symlink b/tests/expected/rename/symlink
new file mode 100644
index 0000000..880215f
--- /dev/null
+++ b/tests/expected/rename/symlink
@@ -0,0 +1,7 @@
+rename_slink.1: `old' -> `new'
+rename_slink.2: `old' -> `new'
+rename_slink.3: `old' -> `new'
+`rename_slink.1' -> `rename_symlink.1'
+target
+`rename_slink.2' -> `rename_symlink.2'
+target
diff --git a/tests/expected/rename/symlink.err b/tests/expected/rename/symlink.err
new file mode 100644
index 0000000..956b119
--- /dev/null
+++ b/tests/expected/rename/symlink.err
@@ -0,0 +1 @@
+rename: rename_slink.3: No such file or directory