summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-02-24 10:54:19 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-02-24 10:54:19 +0100
commitf4d0c2e22f6cdea9d708b5e69ed0748b01a99cf8 (patch)
tree35a8d322b70427cda0040975bb2c6b8a5f1974e9
parent38f0e84d3b5da56c1441f2f779246ccf7b23d5c4 (diff)
Add more build tests
-rw-r--r--.gitlab-ci.yml19
-rwxr-xr-xtests/build-arduino-nano12
-rwxr-xr-xtests/build-atmega256011
-rwxr-xr-xtests/build-esp82667
-rwxr-xr-xtests/build-msp430fr5969lp12
-rwxr-xr-xtests/build-msp430fr5994lp12
-rwxr-xr-xtests/build-stm32f446re-nucleo12
7 files changed, 70 insertions, 15 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c479407..2495f16 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,9 +12,7 @@ build_esp8266:
script:
- curl -s https://ess.cs.uos.de/static/.gitlab-ci/xtensa-lx106-elf.tar.xz | tar -C /opt -xJf -
- mkdir -p build
- - make -B arch=esp8266 app=donothing
- - make -B arch=esp8266 app=ledblink loop=1 timer_s=1
- - make -B arch=esp8266 app=sysinfo
+ - sh -x tests/build-esp8266
build_posix:
stage: build
@@ -31,9 +29,7 @@ build_msp430fr5969lp:
script:
- curl -s https://ess.cs.uos.de/static/.gitlab-ci/msp430-gcc-full-linux-5.1.2.0.tar.xz | tar -C /opt -xJf -
- mkdir -p build
- - make -B arch=msp430fr5969lp app=donothing
- - make -B arch=msp430fr5969lp app=ledblink loop=1 timer_s=1
- - make -B arch=msp430fr5969lp app=sysinfo
+ - sh -x tests/build-msp430fr5969lp
build_msp430fr5994lp:
stage: build
@@ -42,9 +38,7 @@ build_msp430fr5994lp:
script:
- curl -s https://ess.cs.uos.de/static/.gitlab-ci/msp430-gcc-full-linux-5.1.2.0.tar.xz | tar -C /opt -xJf -
- mkdir -p build
- - make -B arch=msp430fr5994lp app=donothing
- - make -B arch=msp430fr5994lp app=ledblink loop=1 timer_s=1
- - make -B arch=msp430fr5994lp app=sysinfo
+ - sh -x tests/build-msp430fr5994lp
build_stm32f446re-nucleo:
stage: build
@@ -52,12 +46,7 @@ build_stm32f446re-nucleo:
- apt-get update -qy
- apt-get install -y --no-install-recommends gcc-arm-none-eabi binutils-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib git python3
- mkdir -p build
- - make arch=stm32f446re-nucleo ext/libopencm3/lib/libopencm3_stm32f4.a
- - make arch=stm32f446re-nucleo app=donothing
- - find src -name '*.o' -delete
- - make arch=stm32f446re-nucleo app=ledblink loop=1 timer_s=1
- - find src -name '*.o' -delete
- - make arch=stm32f446re-nucleo app=sysinfo
+ - sh -x tests/build-stm32f446re-nucleo
test_posix:
stage: test
diff --git a/tests/build-arduino-nano b/tests/build-arduino-nano
new file mode 100755
index 0000000..20185e0
--- /dev/null
+++ b/tests/build-arduino-nano
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+apps="bme680-max44009-logger button-and-motion-logger
+ donothing i2cdetect ledblink mpu9250_motionlog
+ shell sysinfo timertest
+ waittest wetterstation ws2812b_dmap ws2812b_uart"
+
+for app in $apps; do
+ make -B arch=arduino-nano app=$app build/system.elf
+done
diff --git a/tests/build-atmega2560 b/tests/build-atmega2560
new file mode 100755
index 0000000..1983e4a
--- /dev/null
+++ b/tests/build-atmega2560
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+apps="donothing ledblink
+ sysinfo timertest
+ waittest"
+
+for app in $apps; do
+ make -B arch=atmega2560 app=$app build/system.elf
+done
diff --git a/tests/build-esp8266 b/tests/build-esp8266
new file mode 100755
index 0000000..8f7d107
--- /dev/null
+++ b/tests/build-esp8266
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+for app in deflatetest donothing ledblink sysinfo; do
+ make -B arch=esp8266 app=$app build/system.elf
+done
diff --git a/tests/build-msp430fr5969lp b/tests/build-msp430fr5969lp
new file mode 100755
index 0000000..3971237
--- /dev/null
+++ b/tests/build-msp430fr5969lp
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+apps="bme680-max44009-logger
+ countertest donothing i2cdetect ledblink
+ nrf24l01test sharp96test shell sysinfo timertest
+ waittest"
+
+for app in $apps; do
+ make -B arch=msp430fr5969lp app=$app build/system.elf
+done
diff --git a/tests/build-msp430fr5994lp b/tests/build-msp430fr5994lp
new file mode 100755
index 0000000..7db2e32
--- /dev/null
+++ b/tests/build-msp430fr5994lp
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+apps="bme680-max44009-logger
+ countertest deflatetest donothing i2cdetect ledblink
+ nrf24l01test sharp96-bad-apple sharp96test shell sysinfo timertest
+ waittest"
+
+for app in $apps; do
+ make -B arch=msp430fr5994lp app=$app build/system.elf
+done
diff --git a/tests/build-stm32f446re-nucleo b/tests/build-stm32f446re-nucleo
new file mode 100755
index 0000000..dee6a41
--- /dev/null
+++ b/tests/build-stm32f446re-nucleo
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+apps="countertest deflatetest donothing ledblink
+ sysinfo"
+
+for app in $apps; do
+ find src -name '*.o' -delete
+ rm -f build/system.elf
+ make arch=stm32f446re-nucleo app=$app build/system.elf
+done