annotate tck7/clean_all.sh @ 7:3db8bad5b608 draft

Added three scripts used to rerun compiler tests for all three tested JDKs.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Wed, 09 Apr 2014 13:18:08 +0200
parents 574668224fd1
children 711b58cbbb72
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
574668224fd1 Fixed issue with wrong path to BASH.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 4
diff changeset
1 #!/usr/bin/env bash
2
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
2
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
3 # Daily test builder.
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
4 #
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
5 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Red Hat
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
6 #
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
7 # This tool is free software; you can redistribute it and/or modify
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
8 # it under the terms of the GNU General Public License as published by
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
9 # the Free Software Foundation; either version 2, or (at your option)
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
10 # any later version.
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
11 #
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
12 # This tool is distributed in the hope that it will be useful, but
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
15 # General Public License for more details.
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
16 #
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
17 # You should have received a copy of the GNU General Public License
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
18 # along with IcedTea; see the file COPYING. If not, write to the
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
19 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
20 # 02110-1301 USA.
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
21 #
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
22 # Linking this library statically or dynamically with other modules is
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
23 # making a combined work based on this library. Thus, the terms and
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
24 # conditions of the GNU General Public License cover the whole
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
25 # combination.
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
26 #
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
27 # As a special exception, the copyright holders of this library give you
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
28 # permission to link this library with independent modules to produce an
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
29 # executable, regardless of the license terms of these independent
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
30 # modules, and to copy and distribute the resulting executable under
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
31 # terms of your choice, provided that you also meet, for each linked
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
32 # independent module, the terms and conditions of the license of that
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
33 # module. An independent module is a module which is not derived from
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
34 # or based on this library. If you modify this library, you may extend
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
35 # this exception to your version of the library, but you are not
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
36 # obligated to do so. If you do not wish to do so, delete this
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
37 # exception statement from your version.
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
38 #
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
39 # Clean work dirs, result dirs and build dirs.
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
40 #
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
41 # Author: Pavel Tisnovsky
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
42 # e-mail: ptisnovs@redhat.com
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
43
4
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
44 JCK_DIR=`cat jck.dir`
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
45 DAILY_TESTS_DIR=`cat dailytests.dir`
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
46
2
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
47 echo "Cleaning builds"
4
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
48 rm -rf ${DAILY_TESTS_DIR}/builds/Icedtea7_forest
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
49 rm -rf ${DAILY_TESTS_DIR}/builds/Icedtea7_forest_2_3
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
50 rm -rf ${DAILY_TESTS_DIR}/builds/Icedtea7_forest_2_4
2
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
51
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
52 echo "Cleaning logs"
4
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
53 rm -rf ${DAILY_TESTS_DIR}/logs/*
2
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
54
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
55 echo "Cleaning jtr"
4
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
56 rm -rf ${DAILY_TESTS_DIR}/jtr/20*
2
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
57
4
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
58 echo "Cleaning ${JCK_DIR}/log/"
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
59 rm -rf ${JCK_DIR}/log/*
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
60 echo "Cleaning ${JCK_DIR}/logs/"
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
61 rm -rf ${JCK_DIR}/logs/*
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
62 echo "Cleaning ${JCK_DIR}/work/"
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
63 rm -rf ${JCK_DIR}/work/*
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
64 echo "Cleaning ${JCK_DIR}/results/"
a9fd0830352b Scripts should not use absolute path names.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents: 2
diff changeset
65 rm -rf ${JCK_DIR}/results/*
2
09a912dabc95 Added script for cleaning work dirs, report dirs and build dirs.
Pavel Tisnovsky <ptisnovs@redhat.com>
parents:
diff changeset
66