Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 1 | #!/bin/sh -e |
| 2 | PROJECT="$1" |
| 3 | PROJECT_UPPER="$(echo "$PROJECT" | tr '[:lower:]' '[:upper:]')" |
| 4 | DIR_OSMODEV="$(readlink -f "$(dirname $0)/..")" |
| 5 | DIR_MAKE="${DIR_MAKE:-${DIR_OSMODEV}/ttcn3/make}" |
| 6 | DIR_OUTPUT="${DIR_OUTPUT:-${DIR_OSMODEV}/ttcn3/out}" |
Oliver Smith | 0fa204e | 2021-08-12 15:16:11 +0200 | [diff] [blame] | 7 | DIR_USR_LOCAL="$DIR_OSMODEV/ttcn3/usr_local" |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 8 | JOBS="${JOBS:-9}" |
| 9 | |
Oliver Smith | 0fa204e | 2021-08-12 15:16:11 +0200 | [diff] [blame] | 10 | # Osmocom libraries and programs relevant for the current testsuite will be |
| 11 | # built in this container. It must have all build dependencies available and |
| 12 | # be based on the same distribution that master-* containers are based on, so |
| 13 | # there are no incompatibilities with shared libraries. |
Oliver Smith | d88ae26 | 2022-05-03 12:53:25 +0200 | [diff] [blame] | 14 | DOCKER_IMG_BUILD="debian-bullseye-build" |
Oliver Smith | 0fa204e | 2021-08-12 15:16:11 +0200 | [diff] [blame] | 15 | |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 16 | check_usage() { |
Oliver Smith | 6711b4f | 2023-03-06 11:20:15 +0100 | [diff] [blame^] | 17 | local name="$(basename $0)" |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 18 | if [ -z "$PROJECT" ]; then |
Oliver Smith | 6711b4f | 2023-03-06 11:20:15 +0100 | [diff] [blame^] | 19 | echo "usage: $name PROJECT" |
| 20 | echo "examples:" |
| 21 | echo " * $name bsc" |
| 22 | echo " * $name bsc-sccplite" |
| 23 | echo " * $name hlr" |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 24 | exit 1 |
| 25 | fi |
| 26 | } |
| 27 | |
| 28 | # Returns the name of the testsuite binary |
| 29 | get_testsuite_name() { |
| 30 | case "$PROJECT" in |
| 31 | bts-*) echo "BTS_Tests" ;; |
| 32 | mgw) echo "MGCP_Test" ;; |
| 33 | pcu-sns) echo "PCU_Tests" ;; |
| 34 | *) echo "${PROJECT_UPPER}_Tests" ;; |
| 35 | esac |
| 36 | } |
| 37 | |
| 38 | get_testsuite_dir() { |
| 39 | local hacks="${DIR_OSMODEV}/src/osmo-ttcn3-hacks" |
| 40 | |
| 41 | case "$PROJECT" in |
| 42 | bts-*) echo "$hacks/bts" ;; |
Oliver Smith | 6711b4f | 2023-03-06 11:20:15 +0100 | [diff] [blame^] | 43 | bsc-*) echo "$hacks/bsc" ;; |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 44 | pcu-sns) echo "$hacks/pcu" ;; |
| 45 | *) echo "$hacks/$PROJECT" ;; |
| 46 | esac |
| 47 | } |
| 48 | |
| 49 | get_testsuite_config() { |
| 50 | case "$PROJECT" in |
| 51 | bts-gprs) echo "BTS_Tests_GPRS.cfg" ;; |
| 52 | bts-oml) echo "BTS_Tests_OML.cfg" ;; |
| 53 | pcu-sns) echo "PCU_Tests_SNS.cfg" ;; |
| 54 | *) echo "$(get_testsuite_name).cfg" ;; |
| 55 | esac |
| 56 | } |
| 57 | |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 58 | get_testsuite_dir_docker() { |
| 59 | local dp="${DIR_OSMODEV}/src/docker-playground" |
| 60 | |
| 61 | case "$PROJECT" in |
Oliver Smith | 6711b4f | 2023-03-06 11:20:15 +0100 | [diff] [blame^] | 62 | bsc-*) |
| 63 | echo "$dp/ttcn3-bsc-test-$(echo "$PROJECT" | cut -d - -f 2-)" |
| 64 | ;; |
| 65 | *) |
| 66 | echo "$dp/ttcn3-$PROJECT-test" |
| 67 | ;; |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 68 | esac |
| 69 | } |
| 70 | |
Oliver Smith | f3d7120 | 2022-10-18 15:43:31 +0200 | [diff] [blame] | 71 | get_testsuite_image() { |
| 72 | case "$PROJECT" in |
Oliver Smith | 6711b4f | 2023-03-06 11:20:15 +0100 | [diff] [blame^] | 73 | bsc-*) |
| 74 | echo "$USER/ttcn3-bsc-test" |
| 75 | ;; |
| 76 | *) |
| 77 | echo "$USER/ttcn3-$PROJECT-test" |
| 78 | ;; |
Oliver Smith | f3d7120 | 2022-10-18 15:43:31 +0200 | [diff] [blame] | 79 | esac |
| 80 | } |
| 81 | |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 82 | # Programs that need to be built |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 83 | get_programs() { |
| 84 | case "$PROJECT" in |
Oliver Smith | 6711b4f | 2023-03-06 11:20:15 +0100 | [diff] [blame^] | 85 | bsc|bsc-*) echo "osmo-stp osmo-bsc osmo-bts-omldummy" ;; |
Oliver Smith | 855d66e | 2021-08-12 16:58:26 +0200 | [diff] [blame] | 86 | bts) echo "osmo-bsc osmo-bts-trx" ;; |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 87 | msc) echo "osmo-stp osmo-msc" ;; |
| 88 | pcu-sns) echo "osmo-pcu" ;; |
Oliver Smith | 855d66e | 2021-08-12 16:58:26 +0200 | [diff] [blame] | 89 | pcu) echo "osmo-pcu osmo-bsc osmo-bts-virtual" ;; |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 90 | sgsn) echo "osmo-stp osmo-sgsn" ;; |
Oliver Smith | 01401bc | 2019-11-28 12:19:28 +0100 | [diff] [blame] | 91 | sip) echo "osmo-sip-connector" ;; |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 92 | *) echo "osmo-$PROJECT" ;; |
| 93 | esac |
| 94 | } |
| 95 | |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 96 | # Return the git repository name, which has the source for a specific program. |
| 97 | # $1: program name |
| 98 | get_program_repo() { |
| 99 | case "$1" in |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 100 | osmo-bts-*) echo "osmo-bts" ;; |
Oliver Smith | f03dfa3 | 2021-08-09 09:09:04 +0200 | [diff] [blame] | 101 | osmo-pcap-*) echo "osmo-pcap" ;; |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 102 | osmo-stp) echo "libosmo-sccp" ;; |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 103 | *) echo "$1" ;; |
| 104 | esac |
| 105 | } |
| 106 | |
| 107 | check_ttcn3_install() { |
| 108 | if ! command -v ttcn3_compiler > /dev/null; then |
| 109 | echo "ERROR: ttcn3_compiler is not installed." |
| 110 | echo "Install eclipse-titan from the Osmocom latest repository." |
| 111 | echo "Details: https://osmocom.org/projects/cellular-infrastructure/wiki/Titan_TTCN3_Testsuites" |
| 112 | exit 1 |
| 113 | fi |
| 114 | } |
| 115 | |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 116 | setup_dir_make() { |
| 117 | cd "$DIR_OSMODEV" |
| 118 | |
Oliver Smith | 0fa204e | 2021-08-12 15:16:11 +0200 | [diff] [blame] | 119 | local docker_cmd="$DIR_OSMODEV/ttcn3/scripts/docker_configure_make.sh" |
| 120 | docker_cmd="$docker_cmd $USER/$DOCKER_IMG_BUILD" |
| 121 | |
Oliver Smith | 10da26d | 2020-01-07 13:17:54 +0100 | [diff] [blame] | 122 | ./gen_makefile.py \ |
Oliver Smith | 10da26d | 2020-01-07 13:17:54 +0100 | [diff] [blame] | 123 | default.opts \ |
| 124 | iu.opts \ |
| 125 | no_systemd.opts \ |
| 126 | no_doxygen.opts \ |
| 127 | no_dahdi.opts \ |
| 128 | no_optimization.opts \ |
Oliver Smith | 0fa204e | 2021-08-12 15:16:11 +0200 | [diff] [blame] | 129 | ttcn3/ttcn3.opts \ |
Oliver Smith | d327106 | 2021-08-25 11:47:48 +0200 | [diff] [blame] | 130 | werror.opts \ |
Oliver Smith | 0fa204e | 2021-08-12 15:16:11 +0200 | [diff] [blame] | 131 | --docker-cmd "$docker_cmd" \ |
| 132 | --make-dir "$DIR_MAKE" \ |
Oliver Smith | 7ece249 | 2021-08-23 16:56:39 +0200 | [diff] [blame] | 133 | --no-ldconfig \ |
Oliver Smith | 6c7fed8 | 2021-10-04 13:30:31 +0200 | [diff] [blame] | 134 | --no-make-check \ |
| 135 | --auto-distclean |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 136 | } |
| 137 | |
| 138 | # $1: name of repository (e.g. osmo-ttcn3-hacks) |
| 139 | clone_repo() { |
Oliver Smith | 5f611c7 | 2021-08-26 18:03:17 +0200 | [diff] [blame] | 140 | if ! [ -e "$DIR_OSMODEV/ttcn3/make/.make.${1}.clone" ]; then |
| 141 | make -C "$DIR_MAKE" ".make.${1}.clone" |
| 142 | fi |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 143 | } |
| 144 | |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 145 | # Require testsuite dir and docker-playground dir |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 146 | check_dir_testsuite() { |
| 147 | local program |
| 148 | local config_testsuite |
| 149 | local dir_testsuite="$(get_testsuite_dir)" |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 150 | local dir_testsuite_docker="$(get_testsuite_dir_docker)" |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 151 | |
| 152 | if ! [ -d "$dir_testsuite" ]; then |
| 153 | echo "ERROR: project '$PROJECT' is invalid, resulting path not found: $dir_testsuite" |
| 154 | exit 1 |
| 155 | fi |
| 156 | |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 157 | if ! [ -d "$dir_testsuite_docker" ]; then |
Oliver Smith | 78a1e05 | 2023-03-06 11:12:23 +0100 | [diff] [blame] | 158 | echo "ERROR: could not find docker dir for project: $PROJECT: $dir_testsuite_docker" |
| 159 | echo "Adjust get_testsuite_dir_docker?" |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 160 | exit 1 |
| 161 | fi |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 162 | |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 163 | # Sanity check for jenkins.sh |
| 164 | if ! grep -q DOCKER_ARGS $dir_testsuite_docker/jenkins.sh; then |
| 165 | echo "ERROR: DOCKER_ARGS not found in $dir_testsuite_docker/jenkins.sh!" |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 166 | exit 1 |
| 167 | fi |
| 168 | } |
| 169 | |
Oliver Smith | 1b471a9 | 2020-04-27 12:00:25 +0200 | [diff] [blame] | 170 | # Copy scripts from docker-playground to /usr/local/bin, so we don't miss them when mounting the outside /usr/local/bin |
| 171 | # inside the docker container |
| 172 | prepare_local_bin() { |
| 173 | local scripts=" |
Oliver Smith | 7531cea | 2021-06-01 13:29:56 +0200 | [diff] [blame] | 174 | ${DIR_OSMODEV}/src/docker-playground/common/respawn.sh |
Oliver Smith | 202dcd8 | 2022-05-03 11:09:45 +0200 | [diff] [blame] | 175 | ${DIR_OSMODEV}/src/docker-playground/debian-bullseye-titan/ttcn3-docker-run.sh |
Oliver Smith | 1b471a9 | 2020-04-27 12:00:25 +0200 | [diff] [blame] | 176 | " |
| 177 | |
| 178 | for script in $scripts; do |
Oliver Smith | 6f7954e | 2021-06-01 14:14:06 +0200 | [diff] [blame] | 179 | local script_path_localbin |
| 180 | local name_install="$(basename "$script")" |
| 181 | |
| 182 | case "$name_install" in |
| 183 | ttcn3-docker-run.sh) name_install="ttcn3-docker-run" ;; |
| 184 | esac |
| 185 | |
Oliver Smith | 0fa204e | 2021-08-12 15:16:11 +0200 | [diff] [blame] | 186 | script_path_localbin="$DIR_USR_LOCAL/bin/$name_install" |
Oliver Smith | 1b471a9 | 2020-04-27 12:00:25 +0200 | [diff] [blame] | 187 | if [ -x "$script_path_localbin" ]; then |
| 188 | continue |
| 189 | fi |
| 190 | |
Oliver Smith | 7531cea | 2021-06-01 13:29:56 +0200 | [diff] [blame] | 191 | install -v -Dm755 "$script" "$script_path_localbin" |
Oliver Smith | 1b471a9 | 2020-04-27 12:00:25 +0200 | [diff] [blame] | 192 | done |
| 193 | } |
| 194 | |
Oliver Smith | 0fa204e | 2021-08-12 15:16:11 +0200 | [diff] [blame] | 195 | prepare_docker_build_container() { |
| 196 | local marker="$DIR_OSMODEV/ttcn3/make/.ttcn3-docker-build" |
| 197 | |
| 198 | if [ -e "$marker" ]; then |
| 199 | return |
| 200 | fi |
| 201 | |
| 202 | make -C "$DIR_OSMODEV/src/docker-playground/$DOCKER_IMG_BUILD" |
| 203 | touch "$marker" |
| 204 | } |
| 205 | |
Oliver Smith | f3d7120 | 2022-10-18 15:43:31 +0200 | [diff] [blame] | 206 | prepare_docker_testsuite_container() { |
| 207 | local marker="$DIR_OSMODEV/ttcn3/make/.ttcn3-docker-build-testsuite" |
| 208 | |
| 209 | if [ -e "$marker" ]; then |
| 210 | return |
| 211 | fi |
| 212 | |
| 213 | make -C "$(get_testsuite_dir_docker)" |
| 214 | touch "$marker" |
| 215 | } |
| 216 | |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 217 | # Use osmo-dev to build one Osmocom program and its dependencies |
| 218 | build_osmo_programs() { |
| 219 | local program |
Oliver Smith | 8d8ddf4 | 2021-08-26 17:56:02 +0200 | [diff] [blame] | 220 | local programs="$(get_programs)" |
| 221 | local make_args="-C $DIR_MAKE" |
| 222 | |
| 223 | for program in $programs; do |
| 224 | local repo="$(get_program_repo "$program")" |
| 225 | make_args="$make_args $repo" |
| 226 | done |
| 227 | |
| 228 | set -x |
| 229 | make $make_args |
| 230 | set +x |
| 231 | |
| 232 | for program in $programs; do |
| 233 | local repo="$(get_program_repo "$program")" |
| 234 | local usr_local_bin="$DIR_USR_LOCAL/bin" |
| 235 | |
| 236 | if [ -z "$(find "$usr_local_bin" -name "$program")" ]; then |
| 237 | echo "ERROR: program was not installed properly: $program" |
| 238 | echo "Expected it to be in path: $PATH_dest" |
| 239 | exit 1 |
| 240 | fi |
| 241 | |
| 242 | local reference="$DIR_MAKE/.make.$repo.build" |
| 243 | if [ -z "$(find "$usr_local_bin" -name "$program" -newer "$reference")" ]; then |
| 244 | echo "ERROR: $path is outdated!" |
| 245 | echo "Maybe you need to pass a configure argument to $repo.git, so it builds and installs" \ |
| 246 | "$program?" |
| 247 | exit 1 |
| 248 | fi |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 249 | done |
| 250 | } |
| 251 | |
| 252 | build_testsuite() { |
| 253 | cd "$(get_testsuite_dir)" |
Oliver Smith | 389dafb | 2020-04-27 14:33:15 +0200 | [diff] [blame] | 254 | |
| 255 | local deps_marker="${DIR_OSMODEV}/ttcn3/make/.ttcn3-deps" |
| 256 | if ! [ -e "$deps_marker" ]; then |
| 257 | make -C "${DIR_OSMODEV}/src/osmo-ttcn3-hacks/deps" -j"$JOBS" |
| 258 | touch "$deps_marker" |
| 259 | fi |
| 260 | |
Oliver Smith | f3d7120 | 2022-10-18 15:43:31 +0200 | [diff] [blame] | 261 | # Build inside docker, so the resulting binary links against the |
| 262 | # libraries available in docker and not the ones from the host system, |
| 263 | # since we will run it inside docker later too. |
| 264 | local hacks="${DIR_OSMODEV}/src/osmo-ttcn3-hacks" |
| 265 | |
Oliver Smith | f44fd1b | 2023-03-06 11:24:08 +0100 | [diff] [blame] | 266 | local testsuite_image="$(get_testsuite_image)" |
| 267 | echo "testsuite_image: $testsuite_image" |
| 268 | |
Oliver Smith | ba1cfcc | 2022-10-21 12:11:18 +0200 | [diff] [blame] | 269 | # -t: add a tty, so we get color output from the compiler |
Oliver Smith | f3d7120 | 2022-10-18 15:43:31 +0200 | [diff] [blame] | 270 | docker run \ |
| 271 | --rm \ |
Oliver Smith | ba1cfcc | 2022-10-21 12:11:18 +0200 | [diff] [blame] | 272 | -t \ |
Oliver Smith | f3d7120 | 2022-10-18 15:43:31 +0200 | [diff] [blame] | 273 | -v "$hacks:/osmo-ttcn3-hacks" \ |
Oliver Smith | f44fd1b | 2023-03-06 11:24:08 +0100 | [diff] [blame] | 274 | "$testsuite_image" \ |
Oliver Smith | f3d7120 | 2022-10-18 15:43:31 +0200 | [diff] [blame] | 275 | sh -exc " |
| 276 | cd /osmo-ttcn3-hacks/$(basename "$(get_testsuite_dir)"); |
| 277 | ./gen_links.sh; |
| 278 | ./regen_makefile.sh; |
| 279 | make compile; |
| 280 | make -j"$JOBS" |
| 281 | " |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 282 | } |
| 283 | |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 284 | run_docker() { |
| 285 | local hacks="${DIR_OSMODEV}/src/osmo-ttcn3-hacks" |
| 286 | local docker_dir="$(get_testsuite_dir_docker)" |
| 287 | local docker_name="$(basename "$docker_dir")" |
Oliver Smith | f3eb0ba | 2021-08-10 15:41:47 +0200 | [diff] [blame] | 288 | local marker="${DIR_OSMODEV}/ttcn3/make/.docker.$docker_name.$IMAGE_SUFFIX" |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 289 | |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 290 | # Skip building docker containers if this already ran |
| 291 | if [ -e "$marker" ]; then |
| 292 | echo "NOTE: skipping docker container build, because marker exists: $marker" |
| 293 | export NO_DOCKER_IMAGE_BUILD=1 |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 294 | fi |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 295 | |
| 296 | cd "$(get_testsuite_dir_docker)" |
Oliver Smith | bfe5929 | 2021-08-12 11:15:40 +0200 | [diff] [blame] | 297 | export DOCKER_ARGS="\ |
| 298 | -e LD_LIBRARY_PATH=/usr/local/lib \ |
Oliver Smith | 0fa204e | 2021-08-12 15:16:11 +0200 | [diff] [blame] | 299 | -v "$DIR_USR_LOCAL":/usr/local:ro \ |
Oliver Smith | bfe5929 | 2021-08-12 11:15:40 +0200 | [diff] [blame] | 300 | -v $hacks:/osmo-ttcn3-hacks:ro \ |
| 301 | " |
Oliver Smith | 6b84b46 | 2021-07-09 10:12:18 +0200 | [diff] [blame] | 302 | export NO_LIST_OSMO_PACKAGES=1 |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 303 | ./jenkins.sh |
| 304 | |
| 305 | touch "$marker" |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 306 | } |
| 307 | |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 308 | remove_old_logs() { |
| 309 | sudo rm -rf /tmp/tmp.* 2>/dev/null |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 310 | } |
| 311 | |
| 312 | collect_logs() { |
| 313 | # Merge and move logs |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 314 | cd /tmp/logs/*-tester |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 315 | |
| 316 | # Format logs |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 317 | for log in *.merged; do |
| 318 | ttcn3_logformat -o "${log}.log" "$log" |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 319 | sudo rm "$log" |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 320 | done |
| 321 | |
| 322 | # Print log path |
| 323 | echo "---" |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 324 | echo "Logs: /tmp/logs" |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 325 | echo "---" |
| 326 | } |
| 327 | |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 328 | check_usage |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 329 | check_ttcn3_install |
| 330 | setup_dir_make |
| 331 | clone_repo "osmo-ttcn3-hacks" |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 332 | clone_repo "docker-playground" |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 333 | check_dir_testsuite |
Oliver Smith | 1b471a9 | 2020-04-27 12:00:25 +0200 | [diff] [blame] | 334 | prepare_local_bin |
Oliver Smith | 0fa204e | 2021-08-12 15:16:11 +0200 | [diff] [blame] | 335 | prepare_docker_build_container |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 336 | build_osmo_programs |
Oliver Smith | f3d7120 | 2022-10-18 15:43:31 +0200 | [diff] [blame] | 337 | prepare_docker_testsuite_container |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 338 | build_testsuite |
| 339 | remove_old_logs |
Oliver Smith | 01a510a | 2020-03-18 15:46:41 +0100 | [diff] [blame] | 340 | run_docker |
Oliver Smith | e398564 | 2019-10-11 16:37:59 +0200 | [diff] [blame] | 341 | collect_logs |