build-all 510 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/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
cmake .. -DSDL_TEST=ON && make && make test