2 # vim: ts=4 sw=4 noet :
3 #==================================================================================
4 # Copyright (c) 2019-2020 Nokia
5 # Copyright (c) 2018-2020 AT&T Intellectual Property.
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #==================================================================================
21 # run all of the tests, building rmr before the first one if -B is on the command line.
24 if [[ -n $capture_file ]]
26 if ! ksh $@ >>$capture_file 2>&1
28 echo "[FAIL] test failed; see $capture_file"
41 si_flag="" # eventually we'll default to -S to run SI tests over NNG tests
43 while [[ $1 == "-"* ]]
47 -e) capture_file=$2; >$capture_file; shift;;
49 -N) si_flag="";; # turn on NNG tests (off si)
50 -S) si_flag="-S";; # turn on si based tests
52 *) echo "'$1' is not a recognised option and is ignored";;
58 echo "----- app --------------------"
59 run_test run_app_test.ksh $si_flag -v $installed $build
61 echo "----- multi ------------------"
62 run_test run_multi_test.ksh $si_flag
64 echo "----- round robin -----------"
65 run_test run_rr_test.ksh $si_flag
67 echo "----- rts -------------------"
68 run_test run_rts_test.ksh $si_flag -s 5 -d 100
70 echo "----- extended payload nocopy no clone------"
71 run_test run_exrts_test.ksh $si_flag -d 10 -n 1000
73 echo "----- extended payload copy clone------"
74 run_test run_exrts_test.ksh $si_flag -d 10 -n 1000 -c 11
78 echo "[PASS] all test pass"
80 echo "[FAIL] one or more application to application tests failed"