]> git.draconx.ca Git - gob-dx.git/blob - testsuite.at
Update NEWS to describe new features.
[gob-dx.git] / testsuite.at
1 AT_COPYRIGHT([Copyright © 2019 Nick Bowler
2 License GPLv2+: GNU General Public License version 2 or any later version.
3 This is free software: you are free to change and redistribute it.
4 There is NO WARRANTY, to the extent permitted by law.])
5
6 dnl Compile a C source file with default cflags for libgobject.  The test
7 dnl group is skipped if libgobject was not enabled at configure time.  The
8 dnl first argument contains extra compiler flags, which must include the
9 dnl source file name.  The remaining arguments correspond to the remaining
10 dnl arguments of AT_CHECK (e.g., the 2nd argument to TEST_COMPILE_GOBJECT
11 dnl is the 2nd argument of AT_CHECK -- the expected exit status).
12 m4_define([TEST_COMPILE_GOBJECT], [AT_CHECK([$HAVE_GOBJECT || exit 77
13 $CC $CPPFLAGS $CFLAGS $LIBGOBJECT_CFLAGS -c $1], m4_shift($@))])
14
15 dnl Same as TEST_COMPILE_GOBJECT, except that the C++ compiler is used.
16 m4_define([TEST_COMPILEXX_GOBJECT], [AT_CHECK([$HAVE_GOBJECT || exit 77
17 $CXX $CPPFLAGS $CXXFLAGS $LIBGOBJECT_CFLAGS -c $1], m4_shift($@))])
18
19 AT_INIT
20 AT_COLOR_TESTS
21
22 AT_TESTED([gob2])
23 m4_divert_push([PREPARE_TESTS])dnl
24 :; {
25   AS_ECHO(["AUTOCONF = ${AUTOCONF=autoconf}"])
26   command -v $AUTOCONF
27   (set -x; $AUTOCONF --version) 2>&1
28   echo
29 } >&AS_MESSAGE_LOG_FD
30 m4_divert_pop([PREPARE_TESTS])
31
32 m4_include([tests/general.at])