install data files and run tracers

Change-Id: I1de8343a56d198880e2552d3c4c55537398ebd7f
This commit is contained in:
Kun Huang 2015-10-26 18:29:05 +08:00
parent 77867c553b
commit 8bcf94ffd4
3 changed files with 15 additions and 1 deletions

View File

@ -12,6 +12,8 @@ function install_scalpels {
function init_scalpels {
echo "run sca setup later"
install -d $SCALPELS_DATA_DIR
install -t $SCALPELS_DATA_DIR $SCALPELS_DIR/scripts/*
}
function configure_scalpels {

View File

@ -34,7 +34,7 @@ def main():
# setup re-setup actions
setup = subparsers.add_parser("setup")
setup.add_argument("-f", "--force", action="store_true", dest="force", help="re-create db")
setup.add_argument("-d", "--data_dir", action="append", dest="data_dir", help="data dir where to find script resources", required=False)
setup.add_argument("-d", "--data_dir", action="store", dest="data_dir", help="data dir where to find script resources", required=False)
parser = rootparser.parse_args()
try:

View File

@ -3,3 +3,15 @@
echo "Hello, scalpels ci"
sca setup -d /opt/stack/data/scalpels/scripts
echo "running rpc tracer"
sca start -a rpc
sca report
echo "running rabbit tracer"
sca start -a rabbit
sca report
echo "running traffic tracer"
sca start -a traffic
sca report