x86_64-w64-mingw32
/test-*
-/frob-*
+frob-*
/x86_64_w64-mingw32/
/p11-kit/virtual-fixed-generated.h
/p11-kit/*.gnu.c
-/p11-kit-remote
-/p11-kit-server
-/p11-kit-remote-testable
-/p11-kit-server-testable
-/print-messages
+/p11-kit/p11-kit-remote
+/p11-kit/p11-kit-server
+/p11-kit/p11-kit-remote-testable
+/p11-kit/p11-kit-server-testable
+/p11-kit/print-messages
/po/POTFILES
/po/stamp-po
test_runtime_LDADD = $(common_LIBS)
check_PROGRAMS += \
- frob-getauxval \
- frob-getenv \
+ common/frob-getauxval \
+ common/frob-getenv \
$(NULL)
-frob_getauxval_SOURCES = common/frob-getauxval.c
-frob_getauxval_LDADD = $(common_LIBS)
+common_frob_getauxval_SOURCES = common/frob-getauxval.c
+common_frob_getauxval_LDADD = $(common_LIBS)
-frob_getenv_SOURCES = common/frob-getenv.c
-frob_getenv_LDADD = $(common_LIBS)
+common_frob_getenv_SOURCES = common/frob-getenv.c
+common_frob_getenv_LDADD = $(common_LIBS)
test_getauxval (void)
{
/* 23 is AT_SECURE */
- const char *args[] = { BUILDDIR "/frob-getauxval", "23", NULL };
+ const char *args[] = { BUILDDIR "/common/frob-getauxval", "23", NULL };
char *path;
int ret;
static void
test_secure_getenv (void)
{
- const char *args[] = { BUILDDIR "/frob-getenv", "BLAH", NULL };
+ const char *args[] = { BUILDDIR "/common/frob-getenv", "BLAH", NULL };
char *path;
int ret;
$(LTLIBINTL) \
$(NULL)
-private_PROGRAMS += p11-kit-remote
+private_PROGRAMS += p11-kit/p11-kit-remote
-p11_kit_remote_SOURCES = \
+p11_kit_p11_kit_remote_SOURCES = \
p11-kit/remote.c \
$(NULL)
-p11_kit_remote_LDADD = \
+p11_kit_p11_kit_remote_LDADD = \
libp11-tool.la \
libp11-common.la \
libp11-kit.la \
$(NULL)
-check_PROGRAMS += p11-kit-remote-testable
-p11_kit_remote_testable_SOURCES = $(p11_kit_remote_SOURCES)
+check_PROGRAMS += p11-kit/p11-kit-remote-testable
+p11_kit_p11_kit_remote_testable_SOURCES = $(p11_kit_p11_kit_remote_SOURCES)
-p11_kit_remote_testable_LDADD = \
+p11_kit_p11_kit_remote_testable_LDADD = \
libp11-tool.la \
libp11-common.la \
libp11-kit-testable.la \
$(NULL)
-private_PROGRAMS += p11-kit-server
+private_PROGRAMS += p11-kit/p11-kit-server
-p11_kit_server_SOURCES = \
+p11_kit_p11_kit_server_SOURCES = \
p11-kit/server.c \
$(NULL)
-p11_kit_server_LDADD = \
+p11_kit_p11_kit_server_LDADD = \
libp11-tool.la \
libp11-common.la \
libp11-kit.la \
$(LIBSYSTEMD_LIBS) \
$(NULL)
-p11_kit_server_CFLAGS = \
+p11_kit_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)
+check_PROGRAMS += p11-kit/p11-kit-server-testable
+p11_kit_p11_kit_server_testable_SOURCES = $(p11_kit_p11_kit_server_SOURCES)
-p11_kit_server_testable_LDADD = \
+p11_kit_p11_kit_server_testable_LDADD = \
libp11-tool.la \
libp11-common.la \
libp11-kit-testable.la \
$(LIBSYSTEMD_LIBS) \
$(NULL)
-p11_kit_server_testable_CFLAGS = \
+p11_kit_p11_kit_server_testable_CFLAGS = \
-DP11_KIT_REMOTE=\"p11-kit-remote-testable\" \
$(COMMON_CFLAGS) \
$(LIBSYSTEMD_CFLAGS) \
test_util_LDADD = $(p11_kit_LIBS)
check_PROGRAMS += \
- print-messages \
- frob-setuid
+ p11-kit/print-messages \
+ p11-kit/frob-setuid
print_messages_SOURCES = p11-kit/print-messages.c
print_messages_LDADD = $(p11_kit_LIBS)
static void
test_setuid (void)
{
- const char *args[] = { BUILDDIR "/frob-setuid", NULL, };
+ const char *args[] = { BUILDDIR "/p11-kit/frob-setuid", NULL, };
char *path;
int ret;
CKR_FUNCTION_REJECTED: The request was rejected by the user
EOF
-${WINE} "$abs_top_builddir"/print-messages | tr -d '\r' > messages.out
+${WINE} "$abs_top_builddir"/p11-kit/print-messages | tr -d '\r' > messages.out
echo 1..1
ret = socketpair (AF_UNIX, SOCK_STREAM, 0, fds);
assert_num_cmp (-1, !=, ret);
- setenv ("P11_KIT_PRIVATEDIR", BUILDDIR, 1);
+ setenv ("P11_KIT_PRIVATEDIR", BUILDDIR "/p11-kit", 1);
/* Allow the child process to preload libasan.so */
envvar = secure_getenv ("P11_KIT_TEST_LD_PRELOAD");
close (STDOUT_FILENO);
if (dup2 (fds[0], STDOUT_FILENO) == -1)
assert_not_reached ();
- if (execv (BUILDDIR "/p11-kit-server-testable", (char **)args->elem) == -1)
+ if (execv (BUILDDIR "/p11-kit/p11-kit-server-testable", (char **)args->elem) == -1)
assert_not_reached ();
p11_array_free (args);
_exit (0);
echo 1..4
-"$abs_top_builddir"/p11-kit-server -s --provider "$abs_top_builddir"/.libs/mock-one.so pkcs11: > start.env 2> start.err
+"$abs_top_builddir"/p11-kit/p11-kit-server -s --provider "$abs_top_builddir"/.libs/mock-one.so pkcs11: > start.env 2> start.err
if test $? -eq 0; then
echo "ok 1 /server/start"
else
exit 1
fi
-"$abs_top_builddir"/p11-kit-server -s -k > stop.env 2> stop.err
+"$abs_top_builddir"/p11-kit/p11-kit-server -s -k > stop.env 2> stop.err
if test $? -eq 0; then
echo "ok 3 /server/stop"
else
test.user_config = p11_path_build (test.directory, "pkcs11.conf", NULL);
p11_test_file_write (NULL, test.user_config, data, strlen (data));
- setenv ("P11_KIT_PRIVATEDIR", BUILDDIR, 1);
+ setenv ("P11_KIT_PRIVATEDIR", BUILDDIR "/p11-kit", 1);
data = "remote: |" BUILDDIR "/p11-kit/p11-kit" EXEEXT " remote " BUILDDIR "/.libs/mock-two" SHLEXT "\n";
p11_test_file_write (test.user_modules, "remote.module", data, strlen (data));
data = "remote: |" BUILDDIR "/p11-kit/p11-kit" EXEEXT " remote " BUILDDIR "/.libs/mock-five" SHLEXT "\nx-init-reserved: initialize-arg";
argv[1] = BUILDDIR "/.libs/mock-two.so";
argv[2] = NULL;
- rc = execv (BUILDDIR "/p11-kit-remote", argv);
+ rc = execv (BUILDDIR "/p11-kit/p11-kit-remote", argv);
assert_num_cmp (rc, !=, -1);
}
test.pid = pid;
}
- setenv ("P11_KIT_PRIVATEDIR", BUILDDIR, 1);
+ setenv ("P11_KIT_PRIVATEDIR", BUILDDIR "/p11-kit", 1);
if (asprintf (&path, "%s/pkcs11", test.directory) < 0)
assert_not_reached ();