diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-08-02 01:20:12 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-09-25 02:40:23 +0200 |
| commit | 288727f09a1b3458c268497d111349e608c3f9fa (patch) | |
| tree | d62565249fa3c7127856c65405752572fc41aca9 /test.sh | |
Diffstat (limited to 'test.sh')
| -rwxr-xr-x | test.sh | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +cd $(dirname -- "$0") + +CC=${CC:-gcc} +SRC="src_c/arch/posix.c $(find src_c -maxdepth 1 -name '*.c' -a ! -name 'main.c')" +OUT=build/test +ARCH=LSP_ARCH_POSIX +CFLAGS="-O2" + +mkdir -p build/test + +for i in test_c/*.c; do + name=$(basename $i .c) + $CC -DLSP_ARCH=$ARCH $CFLAGS -o $OUT/$name $SRC $i + $OUT/$name +done |
