jwt-cpp/run
2022-06-29 15:18:54 +03:00

19 lines
233 B
Bash

#!/bin/sh
## test
PROJECT_NAME="jwt-cpp"
MODE1=$1
TEST="meson test $MODE1 -C build"
RUN="./build/bin/$PROJECT_NAME"
command meson compile -C build
if [[ $MODE1 == "test" ]]; then
command $TEST
else
command $RUN
fi
return 0