[Libreoffice-commits] dev-tools.git: test-bugzilla-files/commands.sh

Markus Mohrhard markus.mohrhard at googlemail.com
Tue Jul 22 15:37:52 PDT 2014


 test-bugzilla-files/commands.sh |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

New commits:
commit c68380e5884adf88c4d49c58479d2f73b9bc1cfd
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue Jul 22 18:33:05 2014 -0400

    add command script for crash testing
    
    It contains all the steps necessary to run a crash testing session and
    upload the results to gimli.

diff --git a/test-bugzilla-files/commands.sh b/test-bugzilla-files/commands.sh
new file mode 100755
index 0000000..5ae544d
--- /dev/null
+++ b/test-bugzilla-files/commands.sh
@@ -0,0 +1,39 @@
+cd /srv/crashtestdata/
+rm nohup.put
+rm tmpdir/* -r
+rm current/* -r
+rm control/* -r
+cd ~/build/
+make clean
+cd ~/source/dev-tools/
+git pull -r
+cd ~/source/libo-core/
+git pull -r
+SHA=`git rev-parse HEAD`
+echo $SHA
+mkdir /srv/crashtestdata/logs/$SHA
+cd ~/build/
+make
+cd /srv/crashtestdata/files/
+python3 new-control.py
+cd /srv/crashtestdata/control/
+zip -r control.zip */*
+mv control.zip /srv/crashtestdata/logs/$SHA/.
+cd /srv/crashtestdata/current/srv/crashtestdata/files/
+zip -r validation.zip */*.log
+mv validation.zip /srv/crashtestdata/logs/$SHA/.
+cd /srv/crashtestdata/logs/$SHA
+unzip control.zip
+unzip validation.zip -d validation
+rm *.zip
+cp ~/source/dev-tools/test-bugzilla-files/analyze-logs.py .
+cp ../*.csv .
+python3 analyze-logs.py
+cp *.csv ../.
+cd ..
+zip -r current.zip $SHA/*
+scp current.zip upload at gimli.documentfoundation.org:/srv/www/dev-builds.libreoffice.org/crashtest/.
+ssh upload at gimli.documentfoundation.org 'bash -s' << 'ENDSSH'
+cd /srv/www/dev-builds.libreoffice.org/crashtest/
+unzip current.zip
+ENDSSH


More information about the Libreoffice-commits mailing list