Dave Page dpage
Fri Jun 3 14:02:57 PDT 2005
As mentioned in another thread yesterday, I have tweaked this patch -
the new version is attached. To apply, apply the patch as normal, and
then rename all the src/ducttape/test_*_* scripts to
src/ducttape/test_*_*.in.

As I also mentioned yesterday, I don't expect this to be applied now as
I realise a release is in progress - I'm just putting it 'out there' for
anyone that is interested and any comments/objections/flames etc :-)

Regards, Dave.



> -----Original Message-----
> From: slony1-general-bounces at gborg.postgresql.org 
> [mailto:slony1-general-bounces at gborg.postgresql.org] On 
> Behalf Of Dave Page
> Sent: 02 June 2005 16:19
> To: slony1-general at gborg.postgresql.org
> Subject: [Slony1-general] [PATCH] Win32/Msys Ducttape tests
> 
> Hi,
> 
> The attached patch rewrites the ducttape tests during the 
> build to work
> correctly on Msys/MinGW on Win32. I am not a make expert by 
> any stretch
> of the imagination, so if there's a more appropriate way of 
> doing this,
> please let me know.
> 
> The following changes are made, provided $(host_os) == mingw32:
> 
> - xterm is replaced with /bin/rxvt as there is no xterm in Msys by
> default.
> 
> - /bin/which is specified. Mingw has it's own 'which' in /mingw/bin,
> however in my experience this often crashes. The Msys one is a simple
> script that calls 'type -p $1' and works reliably. The order 
> of these 2
> directories in the path is affected by the value of $MSYSTEM, so it
> seems easiest just to hard code the correct path.
> 
> Also, the following change seems reasonable for all platforms.
> 
> - Use psql's -o option to output data dumps to files in
> compare_pgbench_dumps. This avoids using the pager which is 
> likely to be
> C:\windows\System32\more.com on Win32 and cannot handle more 
> than 8MB of
> data at once. Even the MinGW/Msys pager (less.exe) fails to work
> properly, outputting spurious extra spaces thus requiring diff -b
> instead of plain diff.
> 
> Regards, Dave.
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win32_ducttape2.diff
Type: application/octet-stream
Size: 29392 bytes
Desc: win32_ducttape2.diff
Url : http://gborg.postgresql.org/pipermail/slony1-general/attachments/20050603/3daf16e8/win32_ducttape2-0001.obj


More information about the Slony1-general mailing list