blob: 4887da2625c89c4bbad3f3b6909bdfd813ece00b [file] [log] [blame]
Harald Welte105c1dc2018-06-29 21:35:28 +02001#!/bin/bash
2
Harald Weltecb6e2052018-06-29 22:16:35 +02003TOPDIR=`pwd`
4
5if ! [ -x "$(command -v osmo-build-dep.sh)" ]; then
6 echo "Error: We need to have scripts/osmo-deps.sh from http://git.osmocom.org/osmo-ci/ in PATH !"
7 exit 2
8fi
9
Harald Welte105c1dc2018-06-29 21:35:28 +020010set -e
11
Harald Weltecb6e2052018-06-29 22:16:35 +020012base="$PWD"
13deps="$base/deps"
14inst="$deps/install"
15export deps inst
16
17osmo-clean-workspace.sh
18
19mkdir "$deps" || true
20
21osmo-build-dep.sh libosmocore "" '--disable-doxygen --enable-gnutls'
22
23export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
24export LD_LIBRARY_PATH="$inst/lib"
25
Harald Welte105c1dc2018-06-29 21:35:28 +020026BUILDS=""
27BUILDS+="simtrace/dfu simtrace/cardem " # simtrace/trace simtrace/triple_play
28BUILDS+="qmod/dfu qmod/cardem "
29BUILDS+="owhw/dfu owhw/cardem "
30
Harald Weltecb6e2052018-06-29 22:16:35 +020031cd $TOPDIR/firmware
Harald Welte105c1dc2018-06-29 21:35:28 +020032for build in $BUILDS; do
33 board=`echo $build | cut -d "/" -f 1`
34 app=`echo $build | cut -d "/" -f 2`
35 echo
36 echo "=============== $board / $app START =============="
37 make BOARD="$board" APP="$app"
Harald Weltecb6e2052018-06-29 22:16:35 +020038 make BOARD="$board" APP="$app" clean
Harald Welte105c1dc2018-06-29 21:35:28 +020039 echo "=============== $board / $app RES:$? =============="
40done
Harald Weltecb6e2052018-06-29 22:16:35 +020041
42echo
43echo "=============== FIRMWARE TESTS ==========="
44cd $TOPDIR/firmware/test
45make clean
46make
47./card_emu_test
48make clean
49
50echo
51echo "=============== HOST START =============="
52cd $TOPDIR/host
53make clean
54make
55make clean
56
57osmo-clean-workspace.sh