Revision 9890c9b2

b/configure.ac
312 312
AC_CONFIG_FILES([
313 313
Makefile
314 314
shmdata/Makefile
315
shmdata/tests/Makefile
315 316
data/Makefile
316 317
data/glade/Makefile
317 318
data/pixmaps/Makefile
b/shmdata/Makefile.am
1
SUBDIRS = tests
2

  
1 3
AM_CXXFLAGS = \
2 4
    $(BOOST_CPPFLAGS) \
3 5
    -I$(top_srcdir)
b/shmdata/tests/Makefile.am
1
AM_CXXFLAGS = -I$(top_srcdir)
2
LDADD = \
3
	$(top_builddir)/shmdata/libshmdata-@SHMDATA_API_VERSION@.la
4

  
5
check_PROGRAMS = \
6
    check_hello
7

  
8
TESTS = $(check_PROGRAMS)
9

  
10
check_hello_SOURCES = check_hello.cpp
11

  
b/shmdata/tests/check_hello.cpp
1
#include "shmdata/shmdata.h"
2

  
3
int main(int argc, char *argv[])
4
{
5
    shmdata::hello();
6
    return 0;
7
    // return 1 if you want test to fail.
8
}
9

  

Also available in: Unified diff