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 \
test-url-encode \
test-url-normalize
-AM_CPPFLAGS = -pedantic -Werror
+AM_CPPFLAGS = -Wall -Werror
LIBS += ../src/lib/libpsensor.a \
$(SENSORS_LIBS)
test-psensor-value-to-str \
test-url-encode \
test-url-normalize
+
+if CPPCHECK
+TESTS += test-cppcheck.sh
+endif
\ No newline at end of file