File tree Expand file tree Collapse file tree 5 files changed +28
-14
lines changed
Expand file tree Collapse file tree 5 files changed +28
-14
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,11 @@ RESULT_PREFIX=result
2020COV_MIN_LIMIT=50.0%
2121COV_SOURCE_DIR=test/unit
2222COV_RESULT_DIR=$RESULT_PREFIX -coverage
23+
24+
25+ USAGE_TEXT=" This is standard usage text. Please specify the required one."
26+ PrintUsageAndExit ()
27+ {
28+ echo $USAGE_TEXT
29+ exit 1
30+ }
Original file line number Diff line number Diff line change 11. .cicd-config
22
3+ USAGE_TEXT=" Usage ./build.sh <dev/rel/test>"
34if [[ $# -eq 0 ]]; then
4- echo " Usage ./build.sh <dev/rel/test>"
5- exit 1
5+ PrintUsageAndExit
66elif [[ $1 == " dev" ]]; then
77 BUILD_DIR=$BUILD_DIR_DEV
88 CMAKE_PARAMS=" -DASAN=ON"
@@ -14,8 +14,7 @@ elif [[ $1 == "test" ]]; then
1414 BUILD_DIR=$BUILD_DIR_DEV
1515 TARGET=$TARGET_TEST
1616else
17- echo " Usage ./build.sh <dev/rel/test>"
18- exit 1
17+ PrintUsageAndExit
1918fi
2019
2120cmake -H. -B$BUILD_DIR $CMAKE_PARAMS
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ . .cicd-config
2+
3+ USAGE_TEXT=" Usage ./run.sh <dev/rel/test>"
4+ if [[ $# -eq 0 ]]; then
5+ PrintUsageAndExit
6+ elif [[ $1 == " dev" ]]; then
7+ $BUILD_DIR_DEV /src/$TARGET_SRC
8+ elif [[ $1 == " rel" ]]; then
9+ $BUILD_DIR_REL /src/$TARGET_SRC
10+ elif [[ $1 == " test" ]]; then
11+ echo " _________________________________________ Unit Tests _________________________________________"
12+ $BUILD_DIR_DEV /test/unit/unit-tests
13+ echo " _________________________________________ Component Tests _________________________________________"
14+ $BUILD_DIR_DEV /test/component/component-tests
15+ else
16+ PrintUsageAndExit
17+ fi
You can’t perform that action at this time.
0 commit comments