1 # ln_tests.mk - Set of tests for busybox ln
3 # Copyright (C) 2000 Karl M. Hegbloom <karlheg@debian.org> GPL
15 rm -rf ln_tests ln_*.{gnu,bb} ln
19 @echo "No output from diff means busybox ln is functioning properly.";
29 echo A file > afile; \
30 ls -l afile > ../ln_afile_newname.gnu; \
31 ${GLN} afile newname; \
32 ls -l afile newname >> ../ln_afile_newname.gnu;
35 rm -f ln_tests/{afile,newname};
39 echo A file > afile; \
40 ls -l afile > ../ln_afile_newname.bb; \
41 ${BLN} afile newname; \
42 ls -l afile newname >> ../ln_afile_newname.bb;
45 diff -u ln_afile_newname.gnu ln_afile_newname.bb
48 rm -f ln_tests/{afile,newname};
52 echo A file > afile; \
53 ls -l afile > ../ln_s_afile_newname.gnu; \
54 ${GLN} -s afile newname; \
55 ls -l afile newname >> ../ln_s_afile_newname.gnu;
58 rm -f ln_tests/{afile,newname};
62 echo A file > afile; \
63 ls -l afile > ../ln_s_afile_newname.bb; \
64 ${BLN} -s afile newname; \
65 ls -l afile newname >> ../ln_s_afile_newname.bb;
68 diff -u ln_s_afile_newname.gnu ln_s_afile_newname.bb
71 rm -f ln_tests/{afile,newname};