summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2013-12-11 12:50:38 +0100
committerBert Vermeulen <bert@biot.com>2013-12-11 12:50:38 +0100
commitb74823812d4106bfafc4a7fef1d4a141dac58519 (patch)
tree6b2f53c65022a06fe8181517250525bcd54a8bde /tests
parent2c53ea9310728f451a7c69c49d376b727ff08ff3 (diff)
downloadlibsigrokdecode-b74823812d4106bfafc4a7fef1d4a141dac58519.tar.gz
libsigrokdecode-b74823812d4106bfafc4a7fef1d4a141dac58519.zip
runtc: Make sure to test this set of decoders, not the installed ones.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am3
-rw-r--r--tests/runtc.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7841f05..5739a03 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -41,6 +41,7 @@ endif
if HAVE_LIBSIGROK
bin_PROGRAMS = runtc
runtc_SOURCES = runtc.c
-runtc_CPPFLAGS = $(CPPFLAGS_PYTHON) $(LIBSIGROK_CFLAGS)
+runtc_CPPFLAGS = $(CPPFLAGS_PYTHON) $(LIBSIGROK_CFLAGS) \
+ -DDECODERS_DIR='"$(abs_top_builddir)/decoders"'
runtc_LDFLAGS = $(LIBSIGROK_LIBS) -L$(top_builddir) -lsigrokdecode
endif
diff --git a/tests/runtc.c b/tests/runtc.c
index 78dbf5e..bb25950 100644
--- a/tests/runtc.c
+++ b/tests/runtc.c
@@ -468,7 +468,7 @@ int main(int argc, char **argv)
return 1;
srd_log_callback_set(srd_log, NULL);
- if (srd_init(NULL) != SRD_OK)
+ if (srd_init(DECODERS_DIR) != SRD_OK)
return 1;
run_testcase(opt_infile, pdlist, op);