This commit is contained in:
chatlanin
2025-01-03 10:58:50 +03:00
parent 55917da5ee
commit 67eab0a97f
15 changed files with 523 additions and 34 deletions

6
run.sh
View File

@@ -11,17 +11,17 @@ run() {
# run test [name_test]
# example: run test pattrens
if [ $1 = "test" ]; then
if [[ "$1" == "test" ]]; then
echo ""
meson test $2 -C build
echo ""
awk '/^-------------------------------------------------------------------------------/{flag=1} /===============================================================================/{flag=0} flag' ./build/meson-logs/testlog.txt
elif [ $1 = "tests" ]; then
elif [[ "$1" == "tests" ]]; then
echo ""
meson test -C build
echo ""
# awk '/^-------------------------------------------------------------------------------/{flag=1} /===============================================================================/{flag=0} flag' ./build/meson-logs/testlog.txt
elif [ -d "build" ]; then
elif [[ -d "build" ]]; then
run
else
command meson setup build