From: IOhannes m zmölnig Date: Wed, 11 Apr 2018 19:20:56 +0000 (+0200) Subject: unit-tests for Deb-CI X-Git-Tag: archive/raspbian/5.4.5_ds0-1+rpi1~1^2~72 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9e033445e08889636520f77a85ae7dd94bcc13b8;p=juce.git unit-tests for Deb-CI --- 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