Просмотр исходного кода

Add regression result pages automation script.

[SVN r39204]
Rene Rivera 18 лет назад
Родитель
Сommit
b28b1e51f6
1 измененных файлов с 50 добавлено и 0 удалено
  1. 50 0
      tools/regression/xsl_reports/build_results.sh

+ 50 - 0
tools/regression/xsl_reports/build_results.sh

@@ -0,0 +1,50 @@
+#!/bin/sh
+
+#~ Copyright Redshift Software, Inc. 2007
+#~ Distributed under the Boost Software License, Version 1.0.
+#~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+
+set -e
+
+build_all()
+{
+    update_tools ${1}
+    build_results ${1}
+    upload_results ${1}
+}
+
+update_tools()
+{
+    cwd=`pwd`
+    cd ${1}/boost
+    svn up
+    cd "${cwd}"
+}
+
+build_results()
+{
+    cwd=`pwd`
+    cd ${1}
+    root=`pwd`
+    boost=${root}/boost
+    python "${boost}/tools/regression/xsl_reports/boost_wide_report.py" \
+        --locate-root="${root}" \
+        --tag=${1} \
+        --expected-results="${boost}/status/expected_results.xml" \
+        --failures-markup="${boost}/status/explicit-failures-markup.xml" \
+        --comment="" \
+        --user=""
+    cd "${cwd}"
+}
+
+upload_results()
+{
+    cwd=`pwd`
+    cd ${1}/all
+    rm -f ../../${1}.zip
+    zip -r9 ../../${1} *
+    cd "${cwd}"
+    scp ${1}.zip beta.boost.org:/home/grafik/www.boost.org/testing/incoming/
+}
+
+build_all trunk

粤ICP备19079148号