1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/build/pymake/tests/newlines.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +#T gmake skip 1.5 + 1.6 +# Test that we handle \\\n properly 1.7 + 1.8 +all: dep1 dep2 dep3 1.9 + cat testfile 1.10 + test `cat testfile` = "data"; 1.11 + test "$$(cat results)" = "$(EXPECTED)"; 1.12 + @echo TEST-PASS 1.13 + 1.14 +# Test that something that still needs to go to the shell works 1.15 +testfile: 1.16 + printf "data" \ 1.17 + >>$@ 1.18 + 1.19 +dep1: testfile 1.20 + 1.21 +# Test that something that does not need to go to the shell works 1.22 +dep2: 1.23 + $(echo foo) \ 1.24 + $(echo bar) 1.25 + 1.26 +export EXPECTED := some data 1.27 + 1.28 +CMD = %pycmd writeenvtofile 1.29 +PYCOMMANDPATH = $(TESTPATH) 1.30 + 1.31 +dep3: 1.32 + $(CMD) \ 1.33 + results EXPECTED