summaryrefslogtreecommitdiff
path: root/test-bugzilla-files
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-07-22 18:33:05 -0400
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-07-23 00:29:58 +0200
commitc68380e5884adf88c4d49c58479d2f73b9bc1cfd (patch)
treef7437f460fce53d784f36618afe2aafd08a4a155 /test-bugzilla-files
parent7abaa4ca7573efc1a4f8e4b4732f2d75bae854ea (diff)
add command script for crash testing
It contains all the steps necessary to run a crash testing session and upload the results to gimli.
Diffstat (limited to 'test-bugzilla-files')
-rwxr-xr-xtest-bugzilla-files/commands.sh39
1 files changed, 39 insertions, 0 deletions
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@gimli.documentfoundation.org:/srv/www/dev-builds.libreoffice.org/crashtest/.
+ssh upload@gimli.documentfoundation.org 'bash -s' << 'ENDSSH'
+cd /srv/www/dev-builds.libreoffice.org/crashtest/
+unzip current.zip
+ENDSSH