Fixed compilation issue with gtk3.10 and deprecation of
[psensor.git] / tests / Makefile.am
index aefec3f..554305d 100644 (file)
@@ -4,7 +4,9 @@ check-local: checkpatch.pl
 
 DEFS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@
 
-EXTRA_DIST = checkpatch.pl data test-io-dir-list.sh
+EXTRA_DIST = checkpatch.pl \
+       test-cppcheck.sh \
+       test-io-dir-list.sh
 
 check_PROGRAMS = test-io-dir-list \
        test-psensor-type-to-unit-str \
@@ -12,7 +14,7 @@ check_PROGRAMS = test-io-dir-list \
        test-url-encode \
        test-url-normalize
 
-AM_CPPFLAGS = -pedantic -Werror
+AM_CPPFLAGS = -Wall -Werror
 
 LIBS += ../src/lib/libpsensor.a \
        $(SENSORS_LIBS)
@@ -36,3 +38,7 @@ TESTS = test-io-dir-list.sh \
        test-psensor-value-to-str \
        test-url-encode \
        test-url-normalize
+
+if CPPCHECK
+TESTS += test-cppcheck.sh
+endif
\ No newline at end of file