build/pymake/tests/newlines.mk

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 #T gmake skip
     3 # Test that we handle \\\n properly
     5 all: dep1 dep2 dep3
     6 	cat testfile
     7 	test `cat testfile` = "data";
     8 	test "$$(cat results)" = "$(EXPECTED)";
     9 	@echo TEST-PASS
    11 # Test that something that still needs to go to the shell works
    12 testfile:
    13 	printf "data" \
    14 	  >>$@
    16 dep1: testfile
    18 # Test that something that does not need to go to the shell works
    19 dep2:
    20 	$(echo foo) \
    21 	$(echo bar)
    23 export EXPECTED := some data
    25 CMD = %pycmd writeenvtofile
    26 PYCOMMANDPATH = $(TESTPATH)
    28 dep3:
    29 	$(CMD) \
    30 	results EXPECTED

mercurial