From 921ddeab4f086e88675f80f301fbc394d0da9e68 Mon Sep 17 00:00:00 2001 From: ababi <albert.babi@savoirfairelinux.com> Date: Tue, 27 Oct 2020 13:47:48 +0100 Subject: [PATCH] misc: cqfd support for client and tests Change-Id: I7fe20fd550586f2a40bbb65db1af4eeec8d5e155 --- .cqfdrc | 7 +++++++ compile_tests.sh | 39 +++++++++++++++++++++++++++++++++++++++ docker/Dockerfile | 1 + 3 files changed, 47 insertions(+) create mode 100644 .cqfdrc create mode 100755 compile_tests.sh create mode 120000 docker/Dockerfile diff --git a/.cqfdrc b/.cqfdrc new file mode 100644 index 000000000..bc7f2ab0d --- /dev/null +++ b/.cqfdrc @@ -0,0 +1,7 @@ +[project] +org='savoirfairelinux' +name='jami' + +[build] +; default behaviour +command='cd client-qt && ./compile_tests.sh' \ No newline at end of file diff --git a/compile_tests.sh b/compile_tests.sh new file mode 100755 index 000000000..42d1a1d91 --- /dev/null +++ b/compile_tests.sh @@ -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 diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 120000 index 000000000..d4a498043 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1 @@ +Dockerfile_debian_11 \ No newline at end of file -- GitLab