added test
[psensor.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 data test-io-dir-list.sh
8
9 check_PROGRAMS = test-io-dir-list \
10         test-psensor-type-to-unit-str \
11         test-psensor-value-to-str \
12         test-url-encode \
13         test-url-normalize
14
15 AM_CPPFLAGS = -pedantic -Werror
16
17 LIBS += ../src/lib/libpsensor.a \
18         $(SENSORS_LIBS)
19
20 if ATASMART
21 LIBS += $(ATASMART_LIBS)
22 endif
23
24 if GTOP
25 LIBS += $(GTOP_LIBS)
26 endif
27
28 test_io_dir_list_SOURCES = test_io_dir_list.c
29 test_psensor_type_to_unit_str_SOURCES = test_psensor_type_to_unit_str.c
30 test_psensor_value_to_str_SOURCES = test_psensor_value_to_str.c
31 test_url_encode_SOURCES = test_url_encode.c
32 test_url_normalize_SOURCES = test_url_normalize.c
33
34 TESTS = test-io-dir-list.sh \
35         test-psensor-type-to-unit-str \
36         test-psensor-value-to-str \
37         test-url-encode \
38         test-url-normalize