[BusyBox-cvs] busybox/testsuite/ln ln-creates-hard-links, NONE, 1.1 ln-creates-soft-links, NONE, 1.1 ln-force-creates-hard-links, NONE, 1.1 ln-force-creates-soft-links, NONE, 1.1 ln-preserves-hard-links, NONE, 1.1 ln-preserves-soft-links, NONE, 1.1

Erik Andersen andersen at busybox.net
Tue Apr 6 11:10:08 UTC 2004


Update of /var/cvs/busybox/testsuite/ln
In directory nail:/tmp/cvs-serv13250/testsuite/ln

Added Files:
	ln-creates-hard-links ln-creates-soft-links 
	ln-force-creates-hard-links ln-force-creates-soft-links 
	ln-preserves-hard-links ln-preserves-soft-links 
Log Message:
Kill off the old 'tests' stuff.  Write a ton of new tests for the
'testsuite' dir.  Fix a bunch of broken tests.  Fix the testsuite
'runtest' script so it actually reports all failures and provides
meaningful feedback.
 -Erik


--- NEW FILE: ln-creates-soft-links ---
echo file number one > file1
busybox ln -s file1 link1
test -L link1
test xfile1 = x`readlink link1`

--- NEW FILE: ln-preserves-hard-links ---
echo file number one > file1
echo file number two > link1
set +e
busybox ln file1 link1
if [ $? != 0 ] ; then
	exit 0;
fi
exit 1;

--- NEW FILE: ln-creates-hard-links ---
echo file number one > file1
busybox ln file1 link1
test -f file1
test -f link1

--- NEW FILE: ln-force-creates-soft-links ---
echo file number one > file1
echo file number two > link1
busybox ln -f -s file1 link1
test -L link1
test xfile1 = x`readlink link1`

--- NEW FILE: ln-preserves-soft-links ---
echo file number one > file1
echo file number two > link1
set +e
busybox ln -s file1 link1
if [ $? != 0 ] ; then
	exit 0;
fi
exit 1;


--- NEW FILE: ln-force-creates-hard-links ---
echo file number one > file1
echo file number two > link1
busybox ln -f file1 link1
test -f file1
test -f link1




More information about the busybox-cvs mailing list