hack/run.sh

22 lines
273 B
Bash
Raw Normal View History

2024-05-15 18:52:32 +03:00
#!/bin/zsh
PROJECT_NAME=$(basename $PWD)
run() {
command meson compile -C build
if [[ -z "$1" ]]; then
cd build
2024-07-05 10:26:32 +03:00
./tests/$PROJECT_NAME
2024-05-15 18:52:32 +03:00
cd ..
else
meson test $1 -C build
fi
}
if [ -d "build" ]; then
run
else
command meson setup build
run
fi