ln_tests.mk

来自「手机嵌入式Linux下可用的busybox源码」· MK 代码 · 共 72 行

MK
72
字号
# ln_tests.mk - Set of tests for busybox ln# -------------# Copyright (C) 2000 Karl M. Hegbloom <karlheg@debian.org> GPL## GNU `ln'GLN = /bin/ln# BusyBox `ln'BLN = $(shell pwd)/lnall:: ln_testsclean:: ln_cleanln_clean:	rm -rf ln_tests ln_*.{gnu,bb} lnln_tests: ln_clean ln	@echo;	@echo "No output from diff means busybox ln is functioning properly.";	@echo;	${BLN} || true;	@echo;	mkdir ln_tests;	@echo;	cd ln_tests;				\	 echo A file > afile;			\	 ls -l afile > ../ln_afile_newname.gnu;	\	 ${GLN} afile newname;			\	 ls -l afile newname >> ../ln_afile_newname.gnu;	@echo;	rm -f ln_tests/{afile,newname};	@echo;	cd ln_tests;				\	 echo A file > afile;			\	 ls -l afile > ../ln_afile_newname.bb;	\	 ${BLN} afile newname;			\	 ls -l afile newname >> ../ln_afile_newname.bb;	@echo;	diff -u ln_afile_newname.gnu ln_afile_newname.bb	@echo;	rm -f ln_tests/{afile,newname};	@echo;	cd ln_tests;				\	 echo A file > afile;			\	 ls -l afile > ../ln_s_afile_newname.gnu;	\	 ${GLN} -s afile newname;		\	 ls -l afile newname >> ../ln_s_afile_newname.gnu;	@echo;	rm -f ln_tests/{afile,newname};	@echo;	cd ln_tests;				\	 echo A file > afile;			\	 ls -l afile > ../ln_s_afile_newname.bb;	\	 ${BLN} -s afile newname;		\	 ls -l afile newname >> ../ln_s_afile_newname.bb;	@echo;	diff -u ln_s_afile_newname.gnu ln_s_afile_newname.bb	@echo;	rm -f ln_tests/{afile,newname};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?