unit-tests for Deb-CI
authorIOhannes m zmölnig <zmoelnig@umlautS.umlaeute.mur.at>
Wed, 11 Apr 2018 19:20:56 +0000 (21:20 +0200)
committerIOhannes m zmölnig <zmoelnig@umlautS.umlaeute.mur.at>
Wed, 11 Apr 2018 19:27:10 +0000 (21:27 +0200)
debian/tests/control [new file with mode: 0644]
debian/tests/juce-unit-tests [new file with mode: 0644]

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644 (file)
index 0000000..d3fe58e
--- /dev/null
@@ -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 (file)
index 0000000..0c98e25
--- /dev/null
@@ -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