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