-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·31 lines (25 loc) · 884 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -e # Fail immediately if any command exits with a non-zero status
APPS=("modem_cmux" "modem_ppp" "modem_chat" "modem_backend_tty")
BUILD_APPS=("modem_e2e")
ZEPHYR_EXE="./build/zephyr/zephyr.exe"
for APP in "${APPS[@]}"
do
echo "Building test: $APP"
west build -p -b native_posix "modem_modules/tests/subsys/modem/$APP" > /dev/null 2>&1
echo "Running test: $APP"
$ZEPHYR_EXE
done
for APP in "${BUILD_APPS[@]}"
do
echo "Building test: $APP"
west build -p -b native_posix "modem_modules/tests/subsys/modem/$APP" > /dev/null 2>&1
echo "Success"
done
# Samples
echo "Building sample: cellular"
west build -p -b b_u585i_iot02a "modem_modules/samples/subsys/modem/cellular" > /dev/null 2>&1
echo "Success"
echo "Building sample: cmux_ppp_tty"
west build -p -b native_posix "modem_modules/samples/subsys/modem/cmux_ppp_tty" > /dev/null 2>&1
echo "Success"