~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/3rdparty/qmake/tests/scripts/misc/general3

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#                                                                    -*-perl-*-
 
2
 
 
3
$description = "\
 
4
This tests random features of the parser that need to be supported, and
 
5
which have either broken at some point in the past or seem likely to
 
6
break.";
 
7
 
 
8
open(MAKEFILE,"> $makefile");
 
9
 
 
10
# The contents of the Makefile ...
 
11
 
 
12
print MAKEFILE <<EOF;
 
13
\# We want to allow both empty commands _and_ commands that resolve to empty.
 
14
EMPTY =
 
15
 
 
16
.PHONY: all a1 a2 a3 a4
 
17
all: a1 a2 a3 a4
 
18
 
 
19
a1:;
 
20
a2:
 
21
\t
 
22
a3:;\$(EMPTY)
 
23
a4:
 
24
\t\$(EMPTY)
 
25
 
 
26
\# Non-empty lines that expand to nothing should also be ignored.
 
27
STR =     \# Some spaces
 
28
TAB =   \t  \# A TAB and some spaces
 
29
 
 
30
\$(STR)
 
31
 
 
32
\$(STR) \$(TAB)
 
33
 
 
34
EOF
 
35
 
 
36
close(MAKEFILE);
 
37
 
 
38
&run_make_with_options($makefile,"",&get_logfile);
 
39
 
 
40
# Create the answer to what should be produced by this Makefile
 
41
$answer = "$make_name: Nothing to be done for `all'.\n";
 
42
 
 
43
&compare_output($answer,&get_logfile(1));
 
44
 
 
45
1;