From 356377709cd1de1308d9d8cf15f528578a360cf3 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 17 Jul 2012 08:05:18 +0200 Subject: Use correct shared library extension on windows * The windows shared libraries have the .dll extension * This means we also need separate directories for the test module configs on win32 https://bugzilla.gnome.org/show_bug.cgi?id=44740 --- tests/files/system-modules/win32/one.module | 3 +++ tests/files/system-modules/win32/two-duplicate.module | 3 +++ tests/files/system-modules/win32/two.badname | 5 +++++ tests/files/user-modules/win32/one.module | 2 ++ tests/files/user-modules/win32/three.module | 5 +++++ tests/test-init.c | 2 +- 6 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tests/files/system-modules/win32/one.module create mode 100644 tests/files/system-modules/win32/two-duplicate.module create mode 100644 tests/files/system-modules/win32/two.badname create mode 100644 tests/files/user-modules/win32/one.module create mode 100644 tests/files/user-modules/win32/three.module (limited to 'tests') diff --git a/tests/files/system-modules/win32/one.module b/tests/files/system-modules/win32/one.module new file mode 100644 index 0000000..5f80304 --- /dev/null +++ b/tests/files/system-modules/win32/one.module @@ -0,0 +1,3 @@ + +module: mock-one.dll +setting: system1 \ No newline at end of file diff --git a/tests/files/system-modules/win32/two-duplicate.module b/tests/files/system-modules/win32/two-duplicate.module new file mode 100644 index 0000000..e80c9e8 --- /dev/null +++ b/tests/files/system-modules/win32/two-duplicate.module @@ -0,0 +1,3 @@ + +# This is a duplicate of the 'two' module +module: mock-two.dll diff --git a/tests/files/system-modules/win32/two.badname b/tests/files/system-modules/win32/two.badname new file mode 100644 index 0000000..ae44b83 --- /dev/null +++ b/tests/files/system-modules/win32/two.badname @@ -0,0 +1,5 @@ +# This module doesn't have a .module extension, but p11-kit doesn't yet +# enforce the naming, just warns, so it should still be loaded + +module: mock-two.dll +setting: system2 diff --git a/tests/files/user-modules/win32/one.module b/tests/files/user-modules/win32/one.module new file mode 100644 index 0000000..c371e4a --- /dev/null +++ b/tests/files/user-modules/win32/one.module @@ -0,0 +1,2 @@ + +setting: user1 \ No newline at end of file diff --git a/tests/files/user-modules/win32/three.module b/tests/files/user-modules/win32/three.module new file mode 100644 index 0000000..58f883d --- /dev/null +++ b/tests/files/user-modules/win32/three.module @@ -0,0 +1,5 @@ + +module: mock-three.dll +setting: user3 + +enable-in: test-enable \ No newline at end of file diff --git a/tests/test-init.c b/tests/test-init.c index 8128db6..d872afa 100644 --- a/tests/test-init.c +++ b/tests/test-init.c @@ -273,7 +273,7 @@ test_load_and_initialize (CuTest *tc) CK_RV rv; int ret; - rv = p11_kit_load_initialize_module (BUILDDIR "/.libs/mock-one.so", &module); + rv = p11_kit_load_initialize_module (BUILDDIR "/.libs/mock-one" SHLEXT, &module); CuAssertTrue (tc, rv == CKR_OK); CuAssertTrue (tc, module != NULL); -- cgit v1.1