~ubuntu-branches/ubuntu/trusty/bmake/trusty-proposed

« back to all changes in this revision

Viewing changes to unit-tests/posix

  • Committer: Package Import Robot
  • Author(s): Andrew Shadura
  • Date: 2013-09-22 16:07:33 UTC
  • Revision ID: package-import@ubuntu.com-20130922160733-9cvmsi7z0jswtrbi
Tags: upstream-20130904
ImportĀ upstreamĀ versionĀ 20130904

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: posix,v 1.1.1.1 2004/05/08 16:45:39 sjg Exp $
 
2
 
 
3
all:    x plus subs err
 
4
 
 
5
x:
 
6
        @echo "Posix says we should execute the command as if run by system(3)"
 
7
        @echo "Expect 'Hello,' and 'World!'"
 
8
        @echo Hello,; false; echo "World!"
 
9
 
 
10
plus:
 
11
        @echo a command
 
12
        +@echo "a command prefixed by '+' executes even with -n"
 
13
        @echo another command
 
14
 
 
15
subs:
 
16
        @echo make -n
 
17
        @${.MAKE} -f ${MAKEFILE} -n plus
 
18
        @echo make -n -j1
 
19
        @${.MAKE} -f ${MAKEFILE} -n -j1 plus
 
20
 
 
21
err:
 
22
        @(echo Now we expect an error...; exit 1)
 
23
        @echo "Oops! you shouldn't see this!"
 
24