build/pymake/tests/newlines.mk

branch
TOR_BUG_9701
changeset 3
141e0f1194b1
equal deleted inserted replaced
-1:000000000000 0:9b1d0ed1a127
1 #T gmake skip
2
3 # Test that we handle \\\n properly
4
5 all: dep1 dep2 dep3
6 cat testfile
7 test `cat testfile` = "data";
8 test "$$(cat results)" = "$(EXPECTED)";
9 @echo TEST-PASS
10
11 # Test that something that still needs to go to the shell works
12 testfile:
13 printf "data" \
14 >>$@
15
16 dep1: testfile
17
18 # Test that something that does not need to go to the shell works
19 dep2:
20 $(echo foo) \
21 $(echo bar)
22
23 export EXPECTED := some data
24
25 CMD = %pycmd writeenvtofile
26 PYCOMMANDPATH = $(TESTPATH)
27
28 dep3:
29 $(CMD) \
30 results EXPECTED

mercurial