1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-04-23 14:42:02 +02:00
jami-client-qt/extras/scripts/run-tests.sh
Sébastien Blin 90ae50ee5f misc: rename DRing->libjami
Change-Id: I15d382406687cc506c1456ce43286ad6b0f23529
2022-10-29 16:53:42 -04:00

38 lines
748 B
Bash
Executable file

#!/bin/bash
# Build lrc, client-qt and pass tests
# Get number of CPU available
cpuCount=$(nproc || echo -n 4)
# Project directories
topDir=$(pwd)/..
echo "Project root dir: "${topDir}
installDir=$topDir/install
daemonDir=$topDir/daemon
lrcDir=$topDir/lrc
clientDir=$topDir/client-qt
# Build lrc
cd ${lrcDir}
mkdir -p build
cd build
echo "Building lrc in "$PWD
cmake .. -DCMAKE_INSTALL_PREFIX=$installDir/lrc \
-LIBJAMI_INCLUDE_DIR=$daemonDir/src/jami \
-LIBJAMI_XML_INTERFACES_DIR=$daemonDir/bin/dbus
make -j${cpuCount}
make install
# Build client and tests
cd $clientDir
mkdir -p build
cd build
echo "Building client in "$PWD
cmake ..
make -j${cpuCount}
# Pass Tests
cd tests
./unittests
./qml_tests -input $clientDir/tests/qml