summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-01-31 10:56:22 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-01-31 10:56:42 +0100
commit3fb252d01948f9fd78116e53a3da9c5b61c4a804 (patch)
tree241057aa8f84fefc050a12918342b51e6480372e /tests
parent0f648924fd832a26978c338af3eb4db6e5919665 (diff)
add simple compile and option-combination tests for posix arch
Diffstat (limited to 'tests')
-rwxr-xr-xtests/posix10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/posix b/tests/posix
new file mode 100755
index 0000000..8e12a30
--- /dev/null
+++ b/tests/posix
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+uarttest() {
+ ~/var/projects/uarttest/bin/uarttest.py "$@"
+}
+
+uarttest --runtime=2 --check "grep 'Hello, World!$'" '!build/system.elf' './mp app=test_basic arch=posix loop={!1} aspectc={0!1} gpio_trace={!1} arch_drivers={!counter} drivers={!softi2c}'
+
+# Loop
+uarttest --runtime=2 --check "grep 'Hello, World!$'" '!build/system.elf' './mp app=test_basic arch=posix loop=1 aspectc={0!1} gpio_trace={!1} arch_drivers={!counter}'