Commit 7e179448 authored by Gianfranco Costamagna's avatar Gianfranco Costamagna

Add more complete testsuite

parent ef81f887
libsdl2 (2.0.8+dfsg1-4) unstable; urgency=medium
* Team upload
* Ack previous NMU thanks!
* Also add the testsuite from test directory (from bug #909778)
- we need to find an approach to also run the resulting binaries
automatically
-- Gianfranco Costamagna <locutusofborg@debian.org> Sat, 29 Sep 2018 11:10:36 +0200
libsdl2 (2.0.8+dfsg1-3.1) unstable; urgency=medium
* Non-maintainer upload.
......
#!/bin/sh
# autopkgtest check: Build and run a program against libsdl2,to verify that the
# headers and pkg-config file are installed correctly
# Original work: (C) 2013 Canonical Ltd.
# Original author: Author: Vibhav Pant <vibhavp@ubuntu.com>
# Adaptations to libsdl2-dev: (C) 2018 Gianfranco Costamagna <locutusofborg@debian.org>
set -ex
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cp -R * $WORKDIR
cd $WORKDIR
mkdir build && cd build
CFLAGS="`pkg-config --cflags sdl2` -DHAVE_VULKAN_H"
LDFLAGS=`pkg-config --libs sdl2`
LIBS=`pkg-config --libs sdl2`
export VERBOSE=1
export CFLAGS
export LDFLAGS
export LIBS
cmake .. -DSDL_TEST=ON && make && make test
Tests: build
Depends: libsdl2-dev, build-essential
Restrictions: allow-stderr
Tests: build-all
Depends: @builddeps@, libsdl2-dev, cmake, build-essential
Restrictions: allow-stderr
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment