build/pymake/tests/newlines.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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