[RSABASE_WINETEST]
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 26 Sep 2013 16:31:25 +0000 (16:31 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 26 Sep 2013 16:31:25 +0000 (16:31 +0000)
* Remove rsabase tests as they are covered in rsaenh tests.

svn path=/trunk/; revision=60368

rostests/winetests/CMakeLists.txt
rostests/winetests/rsabase/CMakeLists.txt [deleted file]
rostests/winetests/rsabase/rsabase.c [deleted file]
rostests/winetests/rsabase/testlist.c [deleted file]

index cd8eae3..935f241 100644 (file)
@@ -73,7 +73,6 @@ add_subdirectory(regedit)
 add_subdirectory(riched20)
 add_subdirectory(riched32)
 add_subdirectory(rpcrt4)
-add_subdirectory(rsabase)
 add_subdirectory(rsaenh)
 add_subdirectory(schannel)
 add_subdirectory(scrrun)
diff --git a/rostests/winetests/rsabase/CMakeLists.txt b/rostests/winetests/rsabase/CMakeLists.txt
deleted file mode 100644 (file)
index ca96b1d..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-
-add_definitions(
-    -D__ROS_LONG64__
-    -D_DLL -D__USE_CRTIMP)
-
-add_executable(rsabase_winetest rsabase.c testlist.c)
-target_link_libraries(rsabase_winetest wine)
-set_module_type(rsabase_winetest win32cui)
-add_importlibs(rsabase_winetest advapi32 msvcrt kernel32 ntdll)
-add_cd_file(TARGET rsabase_winetest DESTINATION reactos/bin FOR all)
diff --git a/rostests/winetests/rsabase/rsabase.c b/rostests/winetests/rsabase/rsabase.c
deleted file mode 100644 (file)
index b7746b1..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Unit tests for rsabase functions
- *
- * Copyright (c) 2004 Michael Jung
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- */
-
-#include <string.h>
-#include "wine/test.h"
-#include "windef.h"
-#include "winbase.h"
-#include "winerror.h"
-#include "wincrypt.h"
-
-HCRYPTPROV hProv;
-static const char szContainer[] = "Wine Test Container";
-static const char szProvider[] = MS_DEF_PROV_A;
-
-static int init_environment(void)
-{
-       hProv = (HCRYPTPROV)INVALID_HANDLE_VALUE;
-       
-       if (!CryptAcquireContext(&hProv, szContainer, szProvider, PROV_RSA_FULL, 0))
-       {
-               if (GetLastError()==NTE_BAD_KEYSET)
-               {
-                       if(!CryptAcquireContext(&hProv, szContainer, szProvider, PROV_RSA_FULL, CRYPT_NEWKEYSET)) 
-                       {
-                               trace("%08x\n", GetLastError());
-                               return 0;
-                       }
-               }
-               else
-               {
-                       trace("%08x\n", GetLastError());
-                       return 0;
-               }
-       }
-
-       return 1;
-}
-
-static void clean_up_environment(void)
-{
-       CryptAcquireContext(&hProv, szContainer, szProvider, PROV_RSA_FULL, CRYPT_DELETEKEYSET);
-}
-
-static void test_gen_random(void)
-{
-       BOOL result;
-       BYTE rnd1[16], rnd2[16];
-
-       memset(rnd1, 0, sizeof(rnd1));
-       memset(rnd2, 0, sizeof(rnd2));
-       
-       result = CryptGenRandom(hProv, sizeof(rnd1), rnd1);
-       ok(result, "%08x\n", GetLastError());
-
-       result = CryptGenRandom(hProv, sizeof(rnd2), rnd2);
-       ok(result, "%08x\n", GetLastError());
-
-       ok(memcmp(rnd1, rnd2, sizeof(rnd1)), "CryptGenRandom generates non random data\n");
-}
-
-START_TEST(rsabase)
-{
-       if (!init_environment()) 
-               return;
-       test_gen_random();
-       clean_up_environment();
-}
diff --git a/rostests/winetests/rsabase/testlist.c b/rostests/winetests/rsabase/testlist.c
deleted file mode 100644 (file)
index d55586b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-/* Automatically generated file; DO NOT EDIT!! */
-
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-
-#define STANDALONE
-#include "wine/test.h"
-
-extern void func_rsabase(void);
-
-const struct test winetest_testlist[] =
-{
-    { "rsabase", func_rsabase },
-    { 0, 0 }
-};