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