File: PublishPerformanceTests.xml

package info (click to toggle)
libnb-platform18-java 12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 729,624 kB
  • sloc: java: 5,058,967; xml: 574,432; php: 78,788; javascript: 29,039; ansic: 10,278; sh: 6,386; cpp: 4,612; jsp: 3,643; sql: 1,097; makefile: 540; objc: 288; perl: 277; haskell: 93
file content (90 lines) | stat: -rw-r--r-- 5,515 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.

-->
<project name="Publish Performance Results" default="move-results" basedir=".">

    <property name="script.version" value="1.0.5"/>
    <property environment="env"/>
	
    <!-- Properties for internal purpose-->
    <property name="results.repository" value="guest@nbperf.cz.oracle.com:/space/results"/>
    <property name="results.repository.password" value="guest"/>
    <property name="results.dir" value="results"/>
    <property name="results.file.unit" value="results-unit.zip"/>
    <property name="results.file.functional" value="results-functional.zip"/>
    <property name="workspace.dir" location="${basedir}/../../../../.."/>
    <property name="ergonomics.dir" location="${workspace.dir}/../ergonomics"/>
    <property name="testdistribution.dir" location="${ergonomics.dir}/performance"/>
    <property name="othertests.dir" value="${ergonomics.dir}"/>
    <loadfile srcFile="${workspace.dir}/build.number" property="perftestrun.buildnumber"/>

    <target name="move-results">
        <delete dir="${results.dir}"/>
        <mkdir dir="${results.dir}"/>
        <exec executable="hostname" outputproperty="host.name"/>
        <property name="results.string" value="xtr-netbeans_Dev-${perftestrun.buildnumber}-${host.name}-${java.version}-${perftestrun.buildnumber}"/>
        <echo>
            workspace.dir=${workspace.dir}
            ergonomics.dir=${ergonomics.dir}
            perftestrun.buildnumber=${perftestrun.buildnumber}
            testdistribution.dir=${testdistribution.dir}
            results.string=${results.string}
        </echo>
        <antcall target="move-results-functional"/>
        <!-- <antcall target="move-results-other"/> -->
        <antcall target="move-results-unit"/>
        <echo message="Script version: ${script.version}"/>
    </target>
    
    <target name="move-results-functional"  unless="testtype.unit">
        <zip destfile="${results.dir}/${results.string}-${results.file.functional}"
             basedir="${testdistribution.dir}"
             includes="build/test/qa-functional/results/*.xml, j2se/build/test/qa-functional/results/*.xml, j2ee/build/test/qa-functional/results/*.xml, web/build/test/qa-functional/results/*.xml,  enterprise/build/test/qa-functional/results/*.xml, languages/build/test/qa-functional/results/*.xml,  mobility/build/test/qa-functional/results/*.xml, j2se/build/test/qa-functional/work/allPerformance.xml, j2ee/build/test/qa-functional/work/allPerformance.xml, web/build/test/qa-functional/work/allPerformance.xml,  enterprise/build/test/qa-functional/work/allPerformance.xml, languages/build/test/qa-functional/work/allPerformance.xml,  mobility/build/test/qa-functional/work/allPerformance.xml, build/test/qa-functional/work/allPerformance.xml" 
        />
        <scp file="${results.dir}/${results.string}-${results.file.functional}"
             todir="${results.repository}"
             trust="true"
             password="${results.repository.password}"/>

    </target>
    
    <target name="move-results-unit"  unless="testtype.functional">
        <zip destfile="${results.dir}/${results.string}-${results.file.unit}"
             basedir="${testdistribution.dir}"
             includes="build/test/unit/results/*.xml, j2se/build/test/unit/results/*.xml, j2ee/build/test/unit/results/*.xml, web/build/test/unit/results/*.xml,  enterprise/build/test/unit/results/*.xml, languages/build/test/unit/results/*.xml,  mobility/build/test/unit/results/*.xml, j2se/build/test/unit/work/allPerformance.xml, j2ee/build/test/unit/work/allPerformance.xml, web/build/test/unit/work/allPerformance.xml,  enterprise/build/test/unit/work/allPerformance.xml, languages/build/test/unit/work/allPerformance.xml,  mobility/build/test/unit/work/allPerformance.xml, build/test/unit/work/allPerformance.xml" 
        />
        <scp file="${results.dir}/${results.string}-${results.file.unit}"
             todir="${results.repository}"
             trust="true"
             password="${results.repository.password}"/>
    </target>

    <target name="move-results-other">
        <zip destfile="${results.dir}/${results.string}-other-${results.file.unit}"
             basedir="${othertests.dir}"
             includes="refactoring.java/build/test/unit/results/*.xml, performance/build/test/unit/results/*.xml, performance/build/test/unit/work/allPerformance.xml, refactoring.java/build/test/unit/work/allPerformance.xml"
        /> 
        <scp file="${results.dir}/${results.string}-other-${results.file.unit}"
             todir="${results.repository}"
             trust="true"
             password="${results.repository.password}"/>
    </target>
</project>