added build-test script

This commit is contained in:
Julian Hinxlage 2020-01-07 15:51:25 +01:00
parent d9207774ae
commit 599e40541b
2 changed files with 29 additions and 3 deletions

28
build-test.sh Executable file
View File

@ -0,0 +1,28 @@
#!/usr/bin/env bash
echo 'building all components'
cd ..
#building library first
cd library/build
cmake ..
make
make test
cd ../..
for d in */; do
cd "$d"
FILE=build
echo $d
if [ -d $FILE ]; then
echo 'building component ' $d
cd build
cmake ..
make
make test
cd ..
fi
cd ..
done

View File

@ -8,7 +8,6 @@ cd ..
cd library/build
cmake ..
make
make test
cd ../..
for d in */; do
@ -20,9 +19,8 @@ for d in */; do
cd build
cmake ..
make
make test
cd ..
fi
cd ..
done
done