example: add user interaction sample(animation speed).
[platform/core/uifw/rive-tizen.git] / submodule / dev / test.sh
1 #!/bin/bash
2 pushd test &>/dev/null
3
4 OPTION=$1
5 UTILITY=
6
7 if [ "$OPTION" = "help" ]
8 then
9     echo test.sh - run the tests
10     echo test.sh clean - clean and run the tests
11     exit
12 elif [ "$OPTION" = "clean" ]
13 then
14     echo Cleaning project ...
15     premake5 clean || exit 1
16     shift
17 elif [ "$OPTION" = "memory" ]
18 then
19   echo Will perform memory checks...
20   UTILITY='valgrind --leak-check=full'
21   shift
22 fi
23
24 premake5 gmake2 || exit 1
25 make -j7 || exit 1
26 for file in ./build/bin/debug/*; do
27   echo testing $file
28   $UTILITY $file "$1"
29 done
30
31 popd &>/dev/null