diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2026-07-29 23:13:38 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2026-07-29 23:23:54 +0300 |
| commit | 593c49c00fb3e8c73ce369bda4db3cdda8fdc706 (patch) | |
| tree | ca3b612109e990b839bd5ce90444ed9a253e8e79 /tests/sync | |
| parent | bef57b702ce808a3419f6b52beb10f7dce6906a3 (diff) | |
| download | lark-593c49c00fb3e8c73ce369bda4db3cdda8fdc706.tar.gz lark-593c49c00fb3e8c73ce369bda4db3cdda8fdc706.zip | |
add simple test framework
Diffstat (limited to 'tests/sync')
| -rw-r--r-- | tests/sync/source.mk | 2 | ||||
| -rwxr-xr-x | tests/sync/trivial | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/sync/source.mk b/tests/sync/source.mk new file mode 100644 index 0000000..900af7e --- /dev/null +++ b/tests/sync/source.mk @@ -0,0 +1,2 @@ +TESTS += \ + sync/trivial \ diff --git a/tests/sync/trivial b/tests/sync/trivial new file mode 100755 index 0000000..22207a6 --- /dev/null +++ b/tests/sync/trivial @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +TEST="$0" +OUT="reports/$TEST/stdout" +ERR="reports/$TEST/stderr" + +../server -s - > "$OUT" 2> "$ERR" << EOF +SYNC 20 +START = 10 +END = 20 +EOF + +grep -F 'From: urmum@amazon.com' "$OUT" > /dev/null |
