libp11-kit.la \
$(NULL)
+check_PROGRAMS += p11-kit-remote-testable
+p11_kit_remote_testable_SOURCES = $(p11_kit_remote_SOURCES)
+
+p11_kit_remote_testable_LDADD = \
+ libp11-tool.la \
+ libp11-common.la \
+ libp11-kit-testable.la \
+ $(NULL)
+
private_PROGRAMS += p11-kit-server
p11_kit_server_SOURCES = \
$(NULL)
p11_kit_server_CFLAGS = \
+ -DP11_KIT_REMOTE=\"p11-kit-remote\" \
+ $(COMMON_CFLAGS) \
+ $(LIBSYSTEMD_CFLAGS) \
+ $(NULL)
+
+check_PROGRAMS += p11-kit-server-testable
+p11_kit_server_testable_SOURCES = $(p11_kit_server_SOURCES)
+
+p11_kit_server_testable_LDADD = \
+ libp11-tool.la \
+ libp11-common.la \
+ libp11-kit-testable.la \
+ $(LIBSYSTEMD_LIBS) \
+ $(NULL)
+
+p11_kit_server_testable_CFLAGS = \
+ -DP11_KIT_REMOTE=\"p11-kit-remote-testable\" \
$(COMMON_CFLAGS) \
$(LIBSYSTEMD_CFLAGS) \
$(NULL)
setup_server (void *arg)
{
char *argv[] = {
- "p11-kit-server",
+ "p11-kit-server-testable",
"-f",
"--provider",
BUILDDIR "/.libs/mock-one" SHLEXT,
if (test.pid == 0) {
close (STDOUT_FILENO);
dup2 (fds[0], STDOUT_FILENO);
- execv (BUILDDIR "/p11-kit-server", argv);
+ execv (BUILDDIR "/p11-kit-server-testable", argv);
_exit (0);
}