[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Copy BDB & OpenSSL dlls for windows test cases.

From: Suraj Barkale <surajbarkale_at_gmail.com>
Date: 2007-01-04 10:55:20 CET

Hi All,
    I found that after creating a Debug build of subversion for the first time
on a windows machine, tests were failing due to unavailable libraries.
win-tests.py was already copying APR & libintl; so I added code to copy BDB &
OpenSSL files.
    Can somebody please review & commit this patch for me?

[[[
* win-tests.py
  Copy BDB & OpenSSL dlls for windows test cases.
]]]

Index: win-tests.py
===================================================================
--- win-tests.py (revision 22899)
+++ win-tests.py (working copy)
@@ -210,10 +210,23 @@
   copy_changed_file(aprutil_dll_path, abs_objdir)
   copy_changed_file(apriconv_dll_path, abs_objdir)
 
- libintl_path = get(cp, 'options', '--with-libintl', None)
- if libintl_path is not None:
- libintl_dll_path = os.path.join(libintl_path, 'bin', 'intl3_svn.dll')
- copy_changed_file(libintl_dll_path, abs_objdir)
+ # List out all optional library dll locations as a tuple containg tuples of
+ # path to dll from base library path
+ opt_lib_dll_paths = {
+ '--with-libintl': (('bin', 'intl3_svn.dll',),),
+ '--with-berkeley-db': (('bin', 'libdb44.dll',),
+ ('bin', 'libdb44d.dll',),),
+ '--with-openssl': (('out32dll', 'libeay32.dll',),
+ ('out32dll', 'ssleay32.dll',),)
+ }
+ # Check if user has supplied any option for the library and copy
+ # the dll if present
+ for (lib_opt, lib_dlls) in opt_lib_dll_paths.iteritems():
+ lib_path = get(cp, 'options', lib_opt, None)
+ if lib_path is not None:
+ for lib_dll_info in lib_dlls:
+ lib_dll_path = os.path.join(lib_path, *lib_dll_info)
+ copy_changed_file(lib_dll_path, abs_objdir)
 
   dll_path = reduce(lambda x, y: x + os.path.join(abs_objdir, y) + os.pathsep,
                     dll_paths, "")

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jan 4 11:00:27 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.