mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
32 lines
1.0 KiB
Bash
32 lines
1.0 KiB
Bash
# SPDX-License-Identifier: MIT
|
|
|
|
function die() { echo $@; exit 1; }
|
|
[ $# -ge 1 ] || die "usage: $0 <directory> [ctest-options]"
|
|
|
|
set -x
|
|
DIR=$1
|
|
shift
|
|
CTEST_OPT=$@
|
|
|
|
cd ${DIR}/cmake_targets/ran_build/build
|
|
ninja ldpctest polartest smallblocktest nr_pbchsim nr_dlschsim nr_ulschsim nr_dlsim nr_ulsim nr_pucchsim nr_prachsim nr_psbchsim
|
|
|
|
# get a JSON description of all tests to run
|
|
ctest ${CTEST_OPT} --show-only=json-v1 &> ${DIR}/desc-tests.json
|
|
JSON_RES=$?
|
|
|
|
# we run the T2 offload tests, so provide some additional permissions
|
|
# to be able to initialize DPDK
|
|
sudo setcap cap_dac_override,cap_sys_admin+ep nr_ulsim
|
|
sudo setcap cap_dac_override,cap_sys_admin+ep nr_dlsim
|
|
ctest ${CTEST_OPT} --output-junit ${DIR}/results-run.xml --test-output-size-passed 100000 --test-output-size-failed 100000 &>> ${DIR}/physim_log.txt
|
|
RUN_RES=$?
|
|
cp Testing/Temporary/LastTestsFailed.log ${DIR}/
|
|
cp Testing/Temporary/LastTest.log ${DIR}/
|
|
|
|
# if both were successful, return 0
|
|
# TODO not sure
|
|
#[[ $JSON_RES -eq 0 && $RUN_RES -eq 0 ]] && exit 0
|
|
|
|
exit 0
|