aboutsummaryrefslogtreecommitdiff
path: root/contrib/mysql
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/mysql')
-rw-r--r--contrib/mysql/create-db.sql12
-rw-r--r--contrib/mysql/importxml.sh12
-rw-r--r--contrib/mysql/make-datafile.sh16
-rw-r--r--contrib/mysql/plot.sh20
-rw-r--r--contrib/mysql/sum2xml.sh13
5 files changed, 55 insertions, 18 deletions
diff --git a/contrib/mysql/create-db.sql b/contrib/mysql/create-db.sql
index 34edd02..cbcd1ad 100644
--- a/contrib/mysql/create-db.sql
+++ b/contrib/mysql/create-db.sql
@@ -2,11 +2,19 @@
-- This file is part of DejaGnu.
--- DejaGnu is free software; you can redistribute it and/or modify it
+-- DejaGnu is free software: you can redistribute it and/or modify it
-- under the terms of the GNU General Public License as published by
--- the Free Software Foundation; either version 3 of the License, or
+-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
+-- DejaGnu is distributed in the hope that it will be useful, but
+-- WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+-- General Public License for more details.
+
+-- You should have received a copy of the GNU General Public License
+-- along with DejaGnu. If not, see <http://www.gnu.org/licenses/>.
+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
diff --git a/contrib/mysql/importxml.sh b/contrib/mysql/importxml.sh
index 9a194db..1e08a78 100644
--- a/contrib/mysql/importxml.sh
+++ b/contrib/mysql/importxml.sh
@@ -6,10 +6,18 @@
#
# This file is part of DejaGnu.
#
-# DejaGnu is free software; you can redistribute it and/or modify it
+# DejaGnu is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
+# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
+#
+# DejaGnu is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with DejaGnu. If not, see <http://www.gnu.org/licenses/>.
# This script takes a compressed or uncompressed sum file from a
# DejaGnu test run. It then extracts the relevant information about
diff --git a/contrib/mysql/make-datafile.sh b/contrib/mysql/make-datafile.sh
index 178cbe7..f44f14c 100644
--- a/contrib/mysql/make-datafile.sh
+++ b/contrib/mysql/make-datafile.sh
@@ -6,10 +6,18 @@
#
# This file is part of DejaGnu.
#
-# DejaGnu is free software; you can redistribute it and/or modify it
+# DejaGnu is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
+# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
+#
+# DejaGnu is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with DejaGnu. If not, see <http://www.gnu.org/licenses/>.
# This script executes a series of SQL calls to our testing database,
# and makes a data file for gnuplot.
@@ -47,7 +55,7 @@ echo "Tools are: ${tools}"
for testrun in "$@"; do
# Get the build info
binfo=$(mysql -u"$user" -p"$passwd" --local -e "SELECT tool,arch,date,version,branch,build_machine FROM dejagnu.testruns WHERE testrun=${testrun}" | tail -1)
-
+
# Get rid of the embedded newlines
binfo=$(echo "$binfo" | tr -d '\n')
@@ -57,7 +65,7 @@ for testrun in "$@"; do
date=$(echo "$binfo" | cut -d ' ' -f 3)
version=$(echo "$binfo" | cut -d ' ' -f 5)
build_machine=$(echo "$binfo" | cut -d ' ' -f 7)
-
+
# Get the test counts
# total=`mysql -u"$user" -p${passwd} -e "SELECT count(*) FROM dejagnu.test WHERE result!=''" | tail -1`
passes=$(mysql -u"$user" -p"$passwd" --local -e "SELECT count(*) FROM dejagnu.test WHERE testrun=${testrun} AND result='PASS'" | tail -1)
diff --git a/contrib/mysql/plot.sh b/contrib/mysql/plot.sh
index d6391de..7023349 100644
--- a/contrib/mysql/plot.sh
+++ b/contrib/mysql/plot.sh
@@ -6,10 +6,18 @@
#
# This file is part of DejaGnu.
#
-# DejaGnu is free software; you can redistribute it and/or modify it
+# DejaGnu is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
+# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
+#
+# DejaGnu is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with DejaGnu. If not, see <http://www.gnu.org/licenses/>.
# This script executes a series of SQL calls to our testing database,
# and makes a data file for gnuplot.
@@ -76,9 +84,9 @@ for j in ${datafiles}; do
if test ${cindex} -eq 0; then
echo "Creating gnuplot comand file: ${outfile}"
cat <<EOF >${outfile}
-set boxwidth 0.9 relative
-set style data histograms
-set style histogram cluster
+set boxwidth 0.9 relative
+set style data histograms
+set style histogram cluster
set style fill solid 1.0 border lt -1
set autoscale x
set autoscale y
@@ -125,5 +133,3 @@ replot
EOF
# fi
#done
-
-
diff --git a/contrib/mysql/sum2xml.sh b/contrib/mysql/sum2xml.sh
index acb7164..372d53e 100644
--- a/contrib/mysql/sum2xml.sh
+++ b/contrib/mysql/sum2xml.sh
@@ -6,10 +6,18 @@
#
# This file is part of DejaGnu.
#
-# DejaGnu is free software; you can redistribute it and/or modify it
+# DejaGnu is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
+# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
+#
+# DejaGnu is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with DejaGnu. If not, see <http://www.gnu.org/licenses/>.
if test x"$1" = x; then
@@ -101,4 +109,3 @@ echo "</testsuite>" >> "$outfile"
# compress the file again
${comp} "$infile"
-