build/pymake/tests/newlines.mk

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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