Skip to content
Snippets Groups Projects
Commit 1f111aee authored by Dilip Balaraju's avatar Dilip Balaraju Committed by Sjoerd Simons
Browse files

test client updated by adding g_test utility for testing unit test cases.

parent d021e822
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,15 @@ Multi-Arch: foreign
Depends: ${misc:Depends}
Description: This package contains the API reference for the newport service.
Package: newport-tests
Section: tests
Priority: extra
Architecture: any
Multi-Arch: same
Depends: ${misc:Depends},newport (= ${binary:Version})
Description: test client for the newport service.
This package contains test client for the service.
Package: newport-dbg
Section: debug
Priority: extra
......
/usr/bin/newport-client
/usr/share/services/newport/*
\ No newline at end of file
newporttestdatadir=$(datadir)/services/newport
newporttestdata_DATA=$(service_file)
includes= \
-I$(top_srcdir)/src/ \
-I$(top_builddir)/src/ \
......@@ -5,10 +7,16 @@ includes= \
-I$(top_builddir)/interface/ \
-DPKGDATADIR=\"$(PKGDATADIR)\" \
-DPROGRAMNAME_LOCALEDIR=\"${PROGRAMNAME_LOCALEDIR}\"\
-DSERVICEFILEPATH=\""$(datadir)/services/newport"\" \
$(NULL)
bin_PROGRAMS = newport-client
service_file=test-newport-service.service
test-newport-service.service: $(top_srcdir)/tests/$(service_file).in
$(AM_V_GEN)sed -e "s,[@]srvexecdir[@],$(bindir),g" \
< $^ > $@
# Preprocessor flags
newport_client_CPPFLAGS = $(includes) \
-DG_LOG_DOMAIN=\"Newport-Client\" \
......@@ -22,3 +30,7 @@ newport_client_LDFLAGS = -no-undefined $(ERROR_LDFLAGS) $(AM_LDFLAGS)
newport_client_CFLAGS = $(ERROR_CFLAGS) $(GCC_FLAGS) $(GLIB_CFLAGS) $(CODE_COVERAGE_CFLAGS) $(AM_CFLAGS)
newport_client_SOURCES = newport-client.c
EXTRA_DIST= $(service_file).in
MAINTAINERCLEANFILES = $(service_file)
This diff is collapsed.
[D-BUS Service]
Name=org.secure_automotive_cloud.Newport
Exec=@srvexecdir@/newport
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment