[BusyBox-cvs] busybox/testsuite/cp cp-a-files-to-dir, NONE, 1.1 cp-a-preserves-links, NONE, 1.1 cp-d-files-to-dir, NONE, 1.1 cp-files-to-dir, NONE, 1.1 cp-preserves-links, 1.1, 1.2
Erik Andersen
andersen at busybox.net
Mon Apr 5 18:46:27 UTC 2004
Update of /var/cvs/busybox/testsuite/cp
In directory nail:/tmp/cvs-serv3006
Modified Files:
cp-preserves-links
Added Files:
cp-a-files-to-dir cp-a-preserves-links cp-d-files-to-dir
cp-files-to-dir
Log Message:
Some test additions
Index: cp-preserves-links
===================================================================
RCS file: /var/cvs/busybox/testsuite/cp/cp-preserves-links,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/cp-preserves-links 30 Oct 2001 23:10:50 -0000 1.1
+++ b/cp-preserves-links 5 Apr 2004 18:46:24 -0000 1.2
@@ -2,3 +2,4 @@
ln -s foo bar
busybox cp -d bar baz
test -L baz
+test `readlink baz` = "foo"
--- NEW FILE: cp-a-files-to-dir ---
echo file number one > file1
echo file number two > file2
ln -s file2 link1
mkdir dir1
touch --date='Sat Jan 29 21:24:08 PST 2000' dir1/file3
mkdir there
busybox cp -a file1 file2 link1 dir1 there
test -f there/file1
test -f there/file2
test ! -s there/dir1/file3
test -l there/link1
test `readlink there/link1` = "file2"
test ! file3 -ot there/dir1/file3
test ! file3 -nt there/dir1/file3
--- NEW FILE: cp-d-files-to-dir ---
echo file number one > file1
echo file number two > file2
touch file3
ln -s file2 link1
mkdir there
busybox cp -d file1 file2 file3 link1 there
test -f there/file1
test -f there/file2
test ! -s there/file3
test -l there/link1
test `readlink there/link1` = "file2"
--- NEW FILE: cp-files-to-dir ---
echo file number one > file1
echo file number two > file2
touch file3
ln -s file2 link1
mkdir there
busybox cp file1 file2 file3 link1 there
test -f there/file1
test -f there/file2
test ! -s there/file3
test -f there/link1
cmp there/file2 there/link1
--- NEW FILE: cp-a-preserves-links ---
touch foo
ln -s foo bar
busybox cp -a bar baz
test -L baz
test `readlink baz` = "foo"
More information about the busybox-cvs
mailing list