projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added test of the psensor_type_to_unit_str function
[psensor.git]
/
tests
/
Makefile.am
diff --git
a/tests/Makefile.am
b/tests/Makefile.am
index
c7b7e8c
..
575e0e8
100644
(file)
--- a/
tests/Makefile.am
+++ b/
tests/Makefile.am
@@
-2,23
+2,37
@@
check-local: checkpatch.pl
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 {} \;
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 {} \;
+DEFS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@
+
EXTRA_DIST = checkpatch.pl data test-io-dir-list.sh
check_PROGRAMS = test-io-dir-list \
EXTRA_DIST = checkpatch.pl data 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
test-url-encode \
test-url-normalize
AM_CPPFLAGS = -pedantic -Werror
+LIBS += ../src/lib/libpsensor.a \
+ $(SENSORS_LIBS)
+
+if ATASMART
+LIBS += $(ATASMART_LIBS)
+endif
+
+if GTOP
+LIBS += $(GTOP_LIBS)
+endif
+
+test_psensor_type_to_unit_str_SOURCES = test_psensor_type_to_unit_str.c
+
test_url_encode_SOURCES = test_url_encode.c
test_url_encode_SOURCES = test_url_encode.c
-test_url_encode_LDADD = ../src/lib/libpsensor.a
test_url_normalize_SOURCES = test_url_normalize.c
test_url_normalize_SOURCES = test_url_normalize.c
-test_url_normalize_LDADD = ../src/lib/libpsensor.a
test_io_dir_list_SOURCES = test_io_dir_list.c
test_io_dir_list_SOURCES = test_io_dir_list.c
-test_io_dir_list_LDADD = ../src/lib/libpsensor.a
-TESTS = test-url-encode \
+TESTS = test-psensor-type-to-unit-str \
+ test-url-encode \
test-url-normalize \
test-io-dir-list.sh
\ No newline at end of file
test-url-normalize \
test-io-dir-list.sh
\ No newline at end of file