michael@0: #T gmake skip michael@0: michael@0: # Test that we handle \\\n properly michael@0: michael@0: all: dep1 dep2 dep3 michael@0: cat testfile michael@0: test `cat testfile` = "data"; michael@0: test "$$(cat results)" = "$(EXPECTED)"; michael@0: @echo TEST-PASS michael@0: michael@0: # Test that something that still needs to go to the shell works michael@0: testfile: michael@0: printf "data" \ michael@0: >>$@ michael@0: michael@0: dep1: testfile michael@0: michael@0: # Test that something that does not need to go to the shell works michael@0: dep2: michael@0: $(echo foo) \ michael@0: $(echo bar) michael@0: michael@0: export EXPECTED := some data michael@0: michael@0: CMD = %pycmd writeenvtofile michael@0: PYCOMMANDPATH = $(TESTPATH) michael@0: michael@0: dep3: michael@0: $(CMD) \ michael@0: results EXPECTED