X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=tests%2FMakefile.am;h=5bf8b1fd2d6ef3f19755ebaad153a2d98a49edc7;hb=1d49e538f6cad83e32d307e9a46bbaaec0cc0ab1;hp=a030cd18b3cb062239c019fbbb83cebfc7699010;hpb=a889b0b1a8233103aac529105dc0db9c5864a592;p=psensor.git diff --git a/tests/Makefile.am b/tests/Makefile.am index a030cd1..5bf8b1f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,16 +1,47 @@ check-local: checkpatch.pl - find $(top_srcdir)/src -name \*.c -exec $(srcdir)/checkpatch.pl -q --no-tree -emacs -f {} \; - find $(top_srcdir)/src -name \*.h -exec $(srcdir)/checkpatch.pl -q --no-tree -emacs -f {} \; + find $(top_srcdir)/src -name \*.c -exec $(srcdir)/checkpatch.pl --ignore SPLIT_STRING --show-types -q --no-tree -emacs -f {} \; + find $(top_srcdir)/src -name \*.h -exec $(srcdir)/checkpatch.pl --ignore SPLIT_STRING --show-types -q --no-tree -emacs -f {} \; -EXTRA_DIST = checkpatch.pl +DEFS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@ -check_PROGRAMS = test-url-encode test-url-normalize +EXTRA_DIST = checkpatch.pl \ + spelling.txt \ + test-cppcheck.sh \ + test-io-dir-list.sh -test_url_encode_SOURCES = test_url_encode.c -test_url_encode_LDADD = ../src/lib/libpsensor.a +check_PROGRAMS = test-io-dir-list \ + test-psensor-type-to-unit-str \ + test-psensor-value-to-str \ + test-url-encode \ + test-url-normalize + +AM_CPPFLAGS = -Wall -Werror + +LIBS += ../src/lib/libpsensor.a \ + $(SENSORS_LIBS) + +if ATASMART +LIBS += $(ATASMART_LIBS) +endif +if GTOP +LIBS += $(GTOP_LIBS) +endif + +test_io_dir_list_SOURCES = test_io_dir_list.c +test_psensor_type_to_unit_str_SOURCES = test_psensor_type_to_unit_str.c +test_psensor_type_to_unit_str_CFLAGS = -I$(top_srcdir)/src/lib +test_psensor_value_to_str_SOURCES = test_psensor_value_to_str.c +test_psensor_value_to_str_CFLAGS = -I$(top_srcdir)/src/lib +test_url_encode_SOURCES = test_url_encode.c test_url_normalize_SOURCES = test_url_normalize.c -test_url_normalize_LDADD = ../src/lib/libpsensor.a -TESTS = test-url-encode \ - test-url-normalize \ No newline at end of file +TESTS = test-io-dir-list.sh \ + test-psensor-type-to-unit-str \ + test-psensor-value-to-str \ + test-url-encode \ + test-url-normalize + +if CPPCHECK +TESTS += test-cppcheck.sh +endif