enable cmocka unit testing
This commit is contained in:
@ -3,7 +3,7 @@ set -ex
|
|||||||
mkdir cmocka
|
mkdir cmocka
|
||||||
wget https://cmocka.org/files/1.1/cmocka-1.1.0.tar.xz -O /tmp/cmocka-1.1.0.tar.xz
|
wget https://cmocka.org/files/1.1/cmocka-1.1.0.tar.xz -O /tmp/cmocka-1.1.0.tar.xz
|
||||||
tar -xf /tmp/cmocka-1.1.0.tar.xz -C /tmp
|
tar -xf /tmp/cmocka-1.1.0.tar.xz -C /tmp
|
||||||
cd cmocka && cmake /tmp/cmocka-1.1.0 && make
|
cd cmocka && cmake -DUNIT_TESTING=On /tmp/cmocka-1.1.0 && make && make test
|
||||||
# cmake builds an so instead of a dll in mingw/msys
|
# cmake builds an so instead of a dll in mingw/msys
|
||||||
if [[ ! -z $MSYSTEM ]]; then
|
if [[ ! -z $MSYSTEM ]]; then
|
||||||
cp src/cmocka.so src/cmocka.dll
|
cp src/cmocka.so src/cmocka.dll
|
||||||
|
Reference in New Issue
Block a user