re-structure ci script

Change-Id: I89635cc71aead11b9605ae681d2c2dc5f4d28b9a
This commit is contained in:
Kun Huang 2015-11-01 16:00:06 +08:00
parent 69f23a22f1
commit 62ac895415

View File

@ -4,13 +4,14 @@
echo "Hello, scalpels ci"
sca setup -d /opt/stack/data/scalpels/scripts
# debug messages
function debug_msg {
sudo netstat -nltp
sudo ps axf
sudo env
env
}
echo basic agents
function basic_test {
sca start -a rpc -a rabbit -a traffic
source /opt/stack/new/devstack/openrc admin admin
@ -22,10 +23,10 @@ echo waiting agent write data into db before report
sleep 20
sca report
sca result --list
}
echo test html
function report_html_test {
sca start -a rpc
sca load --storm
sleep 120
@ -35,3 +36,8 @@ for i in `sca result --list --short | tail -n2`; do
sca result $i --html > $BASE/logs/scalpels-result-$i.html
done
sca report --html > $BASE/logs/scalpels-report.html
}
debug_msg
basic_test
report_html_test