From f62a9f032ee9a66b15041bd94399b3b7b2e8ffca Mon Sep 17 00:00:00 2001 From: Sachin Gupta Date: Fri, 19 Aug 2016 02:14:55 -0500 Subject: Add citest option to sb tool Change-Id: Ibc903300e918514ea465d0e6e13f118834d57bbf Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28501 Reviewed-by: RAJA DAS Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Shakeeb A. Pasha B K Reviewed-by: Sachin Gupta --- sb | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) (limited to 'sb') diff --git a/sb b/sb index cb351c4c..80184a30 100755 --- a/sb +++ b/sb @@ -1,4 +1,28 @@ #!/bin/sh +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: sb $ +# +# OpenPOWER sbe Project +# +# Contributors Listed Below - COPYRIGHT 2016 +# [+] International Business Machines Corp. +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. +# +# IBM_PROLOG_END_TAG sb_helptext() { @@ -35,6 +59,12 @@ sb_helptext() echo " Usage:" echo " Refer : $PWD/sbe/build/tools/sbePrime.py -h" ;; + citest) + echo " Topic 'Run SBE CI'" + echo + echo " Usage:" + echo " sb citest" + ;; *) echo " Usage:" echo " sb " @@ -52,6 +82,8 @@ sb_helptext() echo " prime" echo "" echo " simsetup" + echo "" + echo " citest" echo esac } @@ -97,6 +129,17 @@ sb_prime() } +sb_citest() +{ + if [ -n "${SBE_INSIDE_WORKON}" ]; then + echo "Already in a workon.. Continuing" + $PWD/sbe/build/citest/build-script + else + echo "Please do workon and re launch..." + fi + +} + sb_simsetup() { if [ -n "${SBE_INSIDE_WORKON}" ]; then @@ -131,6 +174,9 @@ prime) simsetup) sb_simsetup $* ;; +citest) + sb_citest $* + ;; *) sb_helptext $* exit -1 -- cgit v1.2.1