DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (5350524bb654)

VCS Links

Line Code
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 29 30
#T gmake skip

# Test that we handle \\\n properly

all: dep1 dep2 dep3
	cat testfile
	test `cat testfile` = "data";
	test "$$(cat results)" = "$(EXPECTED)";
	@echo TEST-PASS

# Test that something that still needs to go to the shell works
testfile:
	printf "data" \
	  >>$@

dep1: testfile

# Test that something that does not need to go to the shell works
dep2:
	$(echo foo) \
	$(echo bar)

export EXPECTED := some data

CMD = %pycmd writeenvtofile
PYCOMMANDPATH = $(TESTPATH)

dep3:
	$(CMD) \
	results EXPECTED