From 9e033445e08889636520f77a85ae7dd94bcc13b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 11 Apr 2018 21:20:56 +0200 Subject: [PATCH] unit-tests for Deb-CI --- debian/tests/control | 14 ++++++++++++++ debian/tests/juce-unit-tests | 17 +++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 debian/tests/control create mode 100644 debian/tests/juce-unit-tests diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 00000000..d3fe58e0 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,14 @@ +Tests: juce-unit-tests +Depends: + @builddeps@, + juce-modules-source, + libjack-dev, + libflac-dev, + libfftw3-dev, + libvorbis-dev, + libogg-dev, + libjpeg-dev, + libpng-dev, + zlib1g-dev | libz-dev, + xvfb, xauth, +Restrictions: isolation-container, allow-stderr diff --git a/debian/tests/juce-unit-tests b/debian/tests/juce-unit-tests new file mode 100644 index 00000000..0c98e250 --- /dev/null +++ b/debian/tests/juce-unit-tests @@ -0,0 +1,17 @@ +#!/bin/sh +set -e + + +dpkg-source --before-build `pwd` +PCDEPS="jack flac vorbis vorbisenc vorbisfile ogg libjpeg libpng zlib" + +# resave the project with the system module-paths +xvfb-run -a Projucer -resave extras/UnitTestRunner/UnitTestRunner.jucer +# build the UnitTests +make -C extras/UnitTestRunner/Builds/LinuxMakefile \ + CFLAGS="$(pkg-config --cflags ${PCDEPS})" \ + LDFLAGS="$(pkg-config --libs ${PCDEPS})" \ + CONFIG=Release \ + V=1 +# run the UnitTests +./extras/UnitTestRunner/Builds/LinuxMakefile/build/UnitTestRunner -- 2.30.2