~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/build/pymake/tests/subprocess-path.mk

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#T gmake skip
 
2
#T grep-for: "2f7cdd0b-7277-48c1-beaf-56cb0dbacb24"
 
3
 
 
4
ifdef __WIN32__
 
5
PS:=;
 
6
else
 
7
PS:=:
 
8
endif
 
9
 
 
10
export PATH := $(TESTPATH)/pathdir$(PS)$(PATH)
 
11
 
 
12
# Test two commands. The first one shouldn't go through the shell and the
 
13
# second one should. The pathdir subdirectory has a Windows executable called
 
14
# pathtest.exe and a shell script called pathtest. We don't care which one is
 
15
# run, just that one of the two is (we use a uuid + grep-for to make sure
 
16
# that happens).
 
17
#
 
18
# FAQ:
 
19
# Q. Why skip GNU Make?
 
20
# A. Because $(TESTPATH) is a Windows-style path, and MSYS make doesn't take
 
21
#    too kindly to Windows paths in the PATH environment variable.
 
22
#
 
23
# Q. Why use an exe and not a batch file?
 
24
# A. The use cases here were all exe files without the extension. Batch file
 
25
#    lookup has broken semantics if the .bat extension isn't passed.
 
26
#
 
27
# Q. Why are the commands silent?
 
28
# A. So that we don't pass the grep-for test by mistake.
 
29
all:
 
30
        @pathtest
 
31
        @pathtest | grep -q 2f7cdd0b-7277-48c1-beaf-56cb0dbacb24
 
32
        @echo TEST-PASS