Debian Codegraph @

tools/testing/reporting/scripts/mkAllPlotDataAndPlots

raw
1 #!/bin/bash
2
3 # Licensed to the Apache Software Foundation (ASF) under one or more
4 # contributor license agreements. See the NOTICE file distributed with
5 # this work for additional information regarding copyright ownership.
6 # The ASF licenses this file to you under the Apache License, Version 2.0
7 # (the "License"); you may not use this file except in compliance with
8 # the License. You may obtain a copy of the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17
18 TOOLDIR="${DERBYDIR}/${BRANCH_DIR}/tools/testing/reporting/scripts"
19 . ${TOOLDIR}/env
20
21 # Define DERBYDIR
22 . ./env.sh
23
24 INIT=$1
25
26 echo "***** ${DERBYDIR} *********"
27
28 if [ "${INIT}" == "INIT" ]
29 then
30
31 # Build plot data
32 # ONLY initially, i.e. after a change of baseline or addition or removal of platform...
33 # NB: createBaselineFilesOnePlatform / createBaselineFiles must have been run to create
34 # baseline files for all platforms to be shown.
35 echo "-- mkGNUplot ----------------------------------------"
36 time ${TOOLDIR}/mkGNUplot
37
38 else
39
40 # Update plot data:
41 echo "-- mkGNUplot.recent -----------------------------------"
42 time ${TOOLDIR}/mkGNUplot.recent
43
44 fi
45
46 # Create plots per platform
47 echo "-- doplot ---------------------------------------------"
48 time ${TOOLDIR}/doplot
49
50 # Create summary plots over all platforms
51 echo "-- doplot_all -----------------------------------------"
52 time ${TOOLDIR}/doplot_all
53
54
55 # Extract data for last 20 builds ( ~1 month)
56 echo "-- mkGNUplot_last20 -----------------------------------"
57 time ${TOOLDIR}/mkGNUplot_last20 40
58 # NB: Now takes a param instead of using fixed 20 latest data sets.
59
60 # Create plots per platform for ~last month
61 echo "-- doplot _last20 -------------------------------------"
62 time ${TOOLDIR}/doplot _last20
63
64 # Create summary plots over all platforms for ~last month
65 # time ${TOOLDIR}/doplot_all_lastMonth
66 echo "-- doplot_all _last20 ---------------------------------"
67 time ${TOOLDIR}/doplot_all _last20
68
69 echo "***** ${DERBYDIR} *********"