summaryrefslogtreecommitdiff
path: root/tests/Makefile
blob: 015634460582d076b5d04f2a09f7511f9b3f4173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
all test_all: message_header cp_tests mv_tests ln_tests

clean: cp_clean mv_clean ln_clean

message_header:
	@echo
	@echo If tests faile due to differences in timestamps in commands that are not set
	@echo to preserve timestamps, just run the tests again.
	@echo

include cp_tests.mk
include mv_tests.mk
include ln_tests.mk

BBL := $(shell pushd .. >/dev/null &&		\
	         ${MAKE} busybox.links >/dev/null && \
	       popd >/dev/null &&		\
	       cat ../busybox.links |		\
	         sed -e 's,.*/\(.*\)$$,\1,')

../busybox:
	cd .. && ${MAKE} busybox

$(BBL): ../busybox
	rm -f $@
	ln ../busybox $@

.PHONY: all test_all message_header