sus-regex/ctest

17 lines
403 B
Plaintext
Raw Normal View History

2024-04-09 18:17:19 +03:00
#!/bin/bash
{ ./build || exit; } 2>&1>/dev/null
2024-04-04 09:23:46 +03:00
export C_INCLUDE_PATH="$PWD:$C_INCLUDE_PATH"
export LD_LIBRARY_PATH="$PWD/target:$LD_LIBRARY_PATH"
export LIBRARY_PATH="$PWD/target:$LIBRARY_PATH"
2024-04-10 02:26:13 +03:00
gcc -g test.c -o target/cmogus -L"$LIBRARY_PATH" -l:amogus || exit
2024-04-08 03:25:15 +03:00
if [ -z "$NODEBUG" ];
then
gdb -q \
-iex 'set confirm no' \
-ex 'start' \
target/cmogus
2024-04-09 18:17:19 +03:00
#-ex 'layout asm' \
2024-04-08 03:25:15 +03:00
else
target/cmogus
fi