2
# autopkgtest check: Build and run a program against libupower-glib, to verify
3
# that the headers and pkg-config file are installed correctly
4
# (C) 2013 Canonical Ltd.
5
# Author: Martin Pitt <martin.pitt@ubuntu.com>
10
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
12
cat <<EOF > libupowertest.c
18
UpClient *client = up_client_new ();
19
g_assert_cmpint (strlen (up_client_get_daemon_version (client)), >, 4);
20
/* note, this is marked as deprecated upstream */
21
up_client_get_can_suspend (client);
26
gcc -o libupowertest libupowertest.c `pkg-config --cflags --libs upower-glib` -Wall -Werror
29
env G_DEBUG="fatal-warnings fatal-criticals" ./libupowertest