author | Dan Labrecque <dan.labrecque@oracle.com> |
Thu, 19 Jan 2012 16:01:30 -0500 | |
changeset 793 | 0a5a7daf579b |
parent 758 | 06c57694c78d |
child 797 | a33daeba9b4c |
permissions | -rw-r--r-- |
667
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
1 |
<?xml version="1.0"?> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
2 |
<!-- |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
3 |
CDDL HEADER START |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
4 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
5 |
The contents of this file are subject to the terms of the |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
6 |
Common Development and Distribution License (the "License"). |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
7 |
You may not use this file except in compliance with the License. |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
8 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
9 |
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
10 |
or http://www.opensolaris.org/os/licensing. |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
11 |
See the License for the specific language governing permissions |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
12 |
and limitations under the License. |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
13 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
14 |
When distributing Covered Code, include this CDDL HEADER in each |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
15 |
file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
16 |
If applicable, add the following below this CDDL HEADER, with the |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
17 |
fields enclosed by brackets "[]" replaced with your own identifying |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
18 |
information: Portions Copyright [yyyy] [name of copyright owner] |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
19 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
20 |
CDDL HEADER END |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
21 |
|
793
0a5a7daf579b
7130765 - Move old SMF module to VP core package
Dan Labrecque <dan.labrecque@oracle.com>
parents:
758
diff
changeset
|
22 |
Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
667
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
23 |
--> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
24 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
25 |
<project name="test" default="build"> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
26 |
<property environment="env" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
27 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
28 |
<property name="path.proto" location="${env.ROOT}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
29 |
<property name="path.adrgen" location="${path.proto}/usr/bin/adrgen" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
30 |
<property name="path.lib" location="${path.proto}/usr/lib" /> |
754
d0a995fd0c9c
15126 debug setting not inherited by slave daemons
David Powell <david.e.powell@oracle.com>
parents:
709
diff
changeset
|
31 |
<property name="path.rad.java" location="${path.lib}/rad/java" /> |
667
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
32 |
<property name="path.src" location="src" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
33 |
<property name="path.build" location="build" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
34 |
<property name="path.gen" location="${path.build}/gen" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
35 |
<property name="path.apis" location="../../apis" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
36 |
|
754
d0a995fd0c9c
15126 debug setting not inherited by slave daemons
David Powell <david.e.powell@oracle.com>
parents:
709
diff
changeset
|
37 |
<property name="path.adr" location="${path.rad.java}/adr.jar" /> |
d0a995fd0c9c
15126 debug setting not inherited by slave daemons
David Powell <david.e.powell@oracle.com>
parents:
709
diff
changeset
|
38 |
<property name="path.rad" location="${path.rad.java}/rad.jar" /> |
d0a995fd0c9c
15126 debug setting not inherited by slave daemons
David Powell <david.e.powell@oracle.com>
parents:
709
diff
changeset
|
39 |
<property name="path.util" location="${path.rad.java}/afunix.jar" /> |
793
0a5a7daf579b
7130765 - Move old SMF module to VP core package
Dan Labrecque <dan.labrecque@oracle.com>
parents:
758
diff
changeset
|
40 |
<property name="path.smf" location="${path.rad.java}/smf.jar" /> |
0a5a7daf579b
7130765 - Move old SMF module to VP core package
Dan Labrecque <dan.labrecque@oracle.com>
parents:
758
diff
changeset
|
41 |
|
667
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
42 |
<path id="srcroots"> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
43 |
<pathelement location="${path.src}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
44 |
<pathelement location="${path.gen}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
45 |
</path> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
46 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
47 |
<path id="classpath.javac"> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
48 |
<pathelement location="${path.adr}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
49 |
<pathelement location="${path.rad}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
50 |
<pathelement location="${path.util}" /> |
793
0a5a7daf579b
7130765 - Move old SMF module to VP core package
Dan Labrecque <dan.labrecque@oracle.com>
parents:
758
diff
changeset
|
51 |
<pathelement location="${path.smf}" /> |
667
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
52 |
<pathelement location="/usr/share/lib/java/junit.jar" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
53 |
</path> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
54 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
55 |
<macrodef name="generate.adr"> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
56 |
<attribute name="api" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
57 |
<sequential> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
58 |
<exec executable="${path.adrgen}"> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
59 |
<arg value="-j" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
60 |
<arg value="${path.gen}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
61 |
<arg value="-i" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
62 |
<arg value="${path.apis}/@{api}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
63 |
</exec> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
64 |
</sequential> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
65 |
</macrodef> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
66 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
67 |
<presetdef name="javac.default"> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
68 |
<javac includeAntRuntime="no" destdir="${path.build}" debug="on" |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
69 |
classpathref="classpath.javac"> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
70 |
<src location="${path.src}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
71 |
<src location="${path.gen}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
72 |
<compilerarg value="-Xlint" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
73 |
<compilerarg value="-Xlint:-serial" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
74 |
</javac> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
75 |
</presetdef> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
76 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
77 |
<target name="generate"> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
78 |
<mkdir dir="${path.gen}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
79 |
<generate.adr api="test.xml" /> |
709
6d87dfa365c0
18333 discriminated unions
David Powell <david.e.powell@oracle.com>
parents:
681
diff
changeset
|
80 |
<generate.adr api="test-unions.xml" /> |
681
e3ebf98ba2fd
18035 enumeration fallback values
David Powell <david.e.powell@oracle.com>
parents:
667
diff
changeset
|
81 |
<generate.adr api="test-fallback-old.xml" /> |
e3ebf98ba2fd
18035 enumeration fallback values
David Powell <david.e.powell@oracle.com>
parents:
667
diff
changeset
|
82 |
<generate.adr api="test-fallback-new.xml" /> |
667
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
83 |
</target> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
84 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
85 |
<target name="build" depends="generate"> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
86 |
<mkdir dir="${path.build}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
87 |
<javac.default /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
88 |
</target> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
89 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
90 |
<target name="test"> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
91 |
<junit fork="yes" printsummary="withOutAndErr" showoutput="true" |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
92 |
errorProperty="test.failed" failureProperty="test.failed" |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
93 |
filtertrace="false"> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
94 |
<env key="LD_LIBRARY_PATH" value="${path.lib}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
95 |
<classpath> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
96 |
<pathelement path="${path.build}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
97 |
<path refid="classpath.javac" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
98 |
</classpath> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
99 |
<formatter type="brief" usefile="false" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
100 |
<formatter type="xml" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
101 |
<batchtest> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
102 |
<fileset dir="${path.build}"> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
103 |
<include name="**/*Test.class" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
104 |
</fileset> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
105 |
</batchtest> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
106 |
</junit> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
107 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
108 |
</target> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
109 |
|
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
110 |
<target name="clean"> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
111 |
<delete dir="${path.build}" /> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
112 |
</target> |
00b8c739a174
17940 need formal testing harness
David Powell <david.e.powell@oracle.com>
parents:
diff
changeset
|
113 |
</project> |