mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-03-28 14:56:19 +01:00
misc: cqfd support for client and tests
Change-Id: I7fe20fd550586f2a40bbb65db1af4eeec8d5e155
This commit is contained in:
parent
4048a9d710
commit
921ddeab4f
3 changed files with 47 additions and 0 deletions
7
.cqfdrc
Normal file
7
.cqfdrc
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[project]
|
||||||
|
org='savoirfairelinux'
|
||||||
|
name='jami'
|
||||||
|
|
||||||
|
[build]
|
||||||
|
; default behaviour
|
||||||
|
command='cd client-qt && ./compile_tests.sh'
|
39
compile_tests.sh
Executable file
39
compile_tests.sh
Executable file
|
@ -0,0 +1,39 @@
|
||||||
|
#!/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 \
|
||||||
|
-DRING_INCLUDE_DIR=$daemonDir/src/dring \
|
||||||
|
-DRING_XML_INTERFACES_DIR=$daemonDir/bin/dbus
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
|
# Build client and tests
|
||||||
|
cd $clientDir
|
||||||
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
echo "Building client in "$PWD
|
||||||
|
pandoc -f markdown -t html5 -o ../changelog.html ../changelog.md
|
||||||
|
cmake ..
|
||||||
|
make -j${cpuCount}
|
||||||
|
|
||||||
|
# Pass Tests
|
||||||
|
cd tests
|
||||||
|
./unittests
|
||||||
|
./qml_tests -input $clientDir/tests/qml
|
1
docker/Dockerfile
Symbolic link
1
docker/Dockerfile
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
Dockerfile_debian_11
|
Loading…
Add table
Reference in a new issue