mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 07:51:08 +00:00
enable cmocka unit testing
This commit is contained in:
parent
04853f1db8
commit
e6d8a477c2
|
@ -3,7 +3,7 @@ set -ex
|
|||
mkdir cmocka
|
||||
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
|
||||
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
|
||||
if [[ ! -z $MSYSTEM ]]; then
|
||||
cp src/cmocka.so src/cmocka.dll
|
||||
|
|
Loading…
Reference in a new issue