summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <gp@n-dimensional.de>2006-10-03 13:51:25 +0000
committerHans Ulrich Niedermann <gp@n-dimensional.de>2006-10-03 13:51:25 +0000
commit9a5a1357a4d6e4318ec39ec968af259e13c210c6 (patch)
tree82803bb58f014b467805a3bd200a90b4a24cf84a /tests
parentf6e08ef8674f333d6c06e3930599110bf527785f (diff)
downloadlibgphoto2-9a5a1357a4d6e4318ec39ec968af259e13c210c6.tar.gz
compile C++ pedantic test case, add more header files
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9252 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am18
-rw-r--r--tests/test-pedantic-compilation.c7
-rw-r--r--tests/test-pedantic-compilation.cxx7
3 files changed, 23 insertions, 9 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 1ad47f837..47757caa1 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -2,8 +2,8 @@ SUBDIRS = ddb
check_PROGRAMS = \
test-camera-list \
- test-pedantic-c
-# test-pedantic-cxx
+ test-pedantic-c \
+ test-pedantic-cxx
check_SCRIPTS = \
check-camera-list.sh
@@ -58,12 +58,12 @@ test_pedantic_c_LDADD = \
$(LIBEXIF_LIBS) \
$(INTLLIBS)
-#test_pedantic_cxx_SOURCES = test-pedantic-compilation.cxx
-#test_pedantic_cxx_CXXFLAGS = $(PEDANTIC_CXXFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS)
-#test_pedantic_cxx_LDADD = \
-# $(top_builddir)/libgphoto2/libgphoto2.la \
-# $(top_builddir)/libgphoto2_port/libgphoto2_port/libgphoto2_port.la \
-# $(LIBEXIF_LIBS) \
-# $(INTLLIBS)
+test_pedantic_cxx_SOURCES = test-pedantic-compilation.cxx
+test_pedantic_cxx_CXXFLAGS = $(PEDANTIC_CXXFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS)
+test_pedantic_cxx_LDADD = \
+ $(top_builddir)/libgphoto2/libgphoto2.la \
+ $(top_builddir)/libgphoto2_port/libgphoto2_port/libgphoto2_port.la \
+ $(LIBEXIF_LIBS) \
+ $(INTLLIBS)
include $(top_srcdir)/installcheck.mk
diff --git a/tests/test-pedantic-compilation.c b/tests/test-pedantic-compilation.c
index 974818796..7383b2930 100644
--- a/tests/test-pedantic-compilation.c
+++ b/tests/test-pedantic-compilation.c
@@ -1,5 +1,12 @@
#include <gphoto2/gphoto2.h>
#include <gphoto2/gphoto2-camera.h>
+#include <gphoto2/gphoto2-list.h>
+#include <gphoto2/gphoto2-version.h>
+#include <gphoto2/gphoto2-setting.h>
+#include <gphoto2/gphoto2-file.h>
+#include <gphoto2/gphoto2-filesys.h>
+#include <gphoto2/gphoto2-context.h>
+#include <gphoto2/gphoto2-abilities-list.h>
int main()
{
diff --git a/tests/test-pedantic-compilation.cxx b/tests/test-pedantic-compilation.cxx
index 974818796..7383b2930 100644
--- a/tests/test-pedantic-compilation.cxx
+++ b/tests/test-pedantic-compilation.cxx
@@ -1,5 +1,12 @@
#include <gphoto2/gphoto2.h>
#include <gphoto2/gphoto2-camera.h>
+#include <gphoto2/gphoto2-list.h>
+#include <gphoto2/gphoto2-version.h>
+#include <gphoto2/gphoto2-setting.h>
+#include <gphoto2/gphoto2-file.h>
+#include <gphoto2/gphoto2-filesys.h>
+#include <gphoto2/gphoto2-context.h>
+#include <gphoto2/gphoto2-abilities-list.h>
int main()
{