# file : tests/test/script/builtin/mv.testscript # license : MIT; see accompanying LICENSE file .include ../common.testscript : synopsis-1 : : Move an entity to the specified path. : { : file : { : outside-scope : : Need to use a path that unlikely exists (not to remove something useful). : { : fail : : Moving path outside the testscript working directory fails. : $c <>/EOE == 1 mv: 'a/b/c' is out of working directory 'test/' EOE EOI : force : : Moving path outside the testscript working directory is allowed with -f : option. We fail after this check succeeds as the source path does not : exist. : $c <>/~%EOE% == 1 %mv: unable to move entry '.+/force/a/b/c' to '.+/c': .+% EOE EOI } : cleanup : { : enabled : $c </"mv: 'test/1/' contains test working directory 'test/1/'" != 0 EOI : dst : $c </"mv: 'test/1' contains test working directory 'test/1/'" != 0 EOI } : cleanup : { : enabled : $c <