Imported Upstream version 1.0.1
[psensor-pkg-debian.git] / tests / Makefile.am
1 check-local: checkpatch.pl
2         find $(top_srcdir)/src -name \*.c -exec $(srcdir)/checkpatch.pl --ignore SPLIT_STRING --show-types -q --no-tree  -emacs -f {} \;
3         find $(top_srcdir)/src -name \*.h -exec $(srcdir)/checkpatch.pl --ignore SPLIT_STRING --show-types -q --no-tree  -emacs -f {} \;
4
5 DEFS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@
6
7 EXTRA_DIST = checkpatch.pl \
8         test-cppcheck.sh \
9         test-io-dir-list.sh
10
11 check_PROGRAMS = test-io-dir-list \
12         test-psensor-type-to-unit-str \
13         test-psensor-value-to-str \
14         test-url-encode \
15         test-url-normalize
16
17 AM_CPPFLAGS = -Wall -Werror
18
19 LIBS += ../src/lib/libpsensor.a \
20         $(SENSORS_LIBS)
21
22 if ATASMART
23 LIBS += $(ATASMART_LIBS)
24 endif
25
26 if GTOP
27 LIBS += $(GTOP_LIBS)
28 endif
29
30 test_io_dir_list_SOURCES = test_io_dir_list.c
31 test_psensor_type_to_unit_str_SOURCES = test_psensor_type_to_unit_str.c
32 test_psensor_type_to_unit_str_CFLAGS = -I$(top_srcdir)/src/lib
33 test_psensor_value_to_str_SOURCES = test_psensor_value_to_str.c
34 test_psensor_value_to_str_CFLAGS = -I$(top_srcdir)/src/lib
35 test_url_encode_SOURCES = test_url_encode.c
36 test_url_normalize_SOURCES = test_url_normalize.c
37
38 TESTS = test-io-dir-list.sh \
39         test-psensor-type-to-unit-str \
40         test-psensor-value-to-str \
41         test-url-encode \
42         test-url-normalize
43
44 if CPPCHECK
45 TESTS += test-cppcheck.sh
46 endif