blob: f362cc7130da377e012445c6df26b1c749e21f08 [file] [log] [blame]
Ruslan Kashapovaad22402021-02-23 10:08:00 +02001#!/bin/bash -x
2#
3# Copyright 2020-2021 © Samsung Electronics Co., Ltd.
Ruslan Kashapovd44fcee2021-02-26 11:42:29 +02004# Modifications Copyright (C) 2021 Pantheon.tech
danielhanrahan02da03e2024-08-23 17:41:05 +01005# Modifications Copyright (C) 2024 Nordix Foundation.
Ruslan Kashapovaad22402021-02-23 10:08:00 +02006#
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
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
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#
Ruslan Kashapovd44fcee2021-02-26 11:42:29 +020019# Branched from ccsdk/distribution to this repository Feb 23, 2021
Ruslan Kashapovaad22402021-02-23 10:08:00 +020020#
21
22# $1 test options (passed on to run-csit.sh as such)
23
24export TESTOPTIONS=${1}
emaclee605bec22023-02-02 10:58:35 +000025export CPS_HOME=$(git rev-parse --show-toplevel)
Ruslan Kashapovaad22402021-02-23 10:08:00 +020026export WORKSPACE=$(git rev-parse --show-toplevel)/csit
27
28rm -rf ${WORKSPACE}/archives
29mkdir -p ${WORKSPACE}/archives
30cd ${WORKSPACE}
31
danielhanrahan02da03e2024-08-23 17:41:05 +010032source install-deps.sh
33
Ruslan Kashapovaad22402021-02-23 10:08:00 +020034# Execute all test-suites defined under plans subdirectory
35for dir in plans/*/
36do
37 dir=${dir%*/} # remove the trailing /
38 ./run-csit.sh ${dir} ${TESTOPTIONS}
39done