2
0
mirror of https://github.com/HDFGroup/hdf5.git synced 2025-02-17 16:10:24 +08:00
Commit Graph

917 Commits

Author SHA1 Message Date
Scott Wegner
532e23b808 [svn-r15150] Purpose: Separate Windows function macro definitions to win32defs.h
Description:
In library code, we try not to use system calls directly, but instead use the HD{function} macro instead.  This way, we can map special versions of the call on particular systems.  Previously, it was all done in H5private.h.  However, in an effort to clean up platform-specific definitions, we move all of the Windows macros into a separate file, win32defs.h.  This way, we can use the non-Posix versions that Visual Studio sends warnings about.

Some macros are set specifically in the platform-specific header files.  Then, any macros left unset will be set by the "default" implementation in H5private.h.

This checkin also cleans up various source files to use the HD* macros when possible.

Tested:
VS2005 on WinXP
VS.NET on WinXP
h5committest (kagiso, linew, smirom)
2008-06-05 13:52:19 -05:00
Scott Wegner
5ae2a199d6 [svn-r15145] Purpose: Add new h5ls test to Windows
Description:
A new test case was added to the general testh5ls script.  This update adds the test to Windows as well.

Tested:
VS2005 on WinXP
2008-06-05 10:13:34 -05:00
Scott Wegner
cfb75e1f7f [svn-r15126] Purpose: Cleanup unneeded Windows source
Description:
Previously, we maintained some source files that are commonly generated dynamically on other systems.  Now, we also generate them on Windows as well.  We should remove them from the repository so old versions are not accidentally used.

Also, clean up the project files to organize generator programs.

Tested:
VS2005 on WinXP
VS2005 on WinXP x64
VS.NET on WinXP
2008-06-02 15:28:18 -05:00
Scott Wegner
56caada315 [svn-r15104] Purpose: Work around Windows FC bug in h5dump xml test script
Description:
In some rare instances, FC (diff equivalent) command on Windows will fail when comparing ASCII files with opposite line-ending formats (Unix uses LF, while Windows uses CRLF).  This was an issue for one test case in our test script.  It only came up when testing from a release tarball, because the expected output was not converted to Windows-style.  In this situation, FC was reporting false differences.

To workaround, we double-check failure cases and convert the EOL characters if neccessary.

Tested:
VS2005 on WinXP
2008-05-30 10:54:14 -05:00
Scott Wegner
ebd6e8a9c6 [svn-r15096] Purpose: Windows Project Cleanup-- Unify Windows h5tinit
Description:
Previously, there was Windows-dependent code inside H5detect.c, because not all projects could access the gethostname() function.  However, we standardize our project-files to link with WS2_32.lib, so now this function is available.  Thus, the Windows-specific code has been removed from H5detect.c.

Tested:
VS2005 on WinXP
VS.NET on WinXP
no need to test other platforms, Windows-specific source change
2008-05-29 14:19:30 -05:00
Scott Wegner
735967fb12 [svn-r15094] Purpose: Cleanup Windows project files-- standardize program debug information
Description:
In our debug project configurations, many of the projects were generating debug information for "Program Database and Edit & Continue".  Other projects were using different settings, or none at all. We standardize to use "Program Database" setting, because it generates much smaller .obj files and cuts out unnecessary debug information.

This is another project cleanup and enhancement from user suggestions outlined in bug 

Tested:
VS2005 on WinXP
VS.NET on WinXP
2008-05-29 13:53:31 -05:00
Scott Wegner
15024258cb [svn-r15093] Purpose: Cleanup Windows project files-- remove ignored system library
Description:
In many of our project files on Windows, we have our linker setting set to ignore old link libraries-- either libc.lib or libcd.lib.  This is a relic from converting project files from old versions of Visual Studio to newer ones, and is unnecessary.  Per a user's suggestion, we remove the ignored library from the project files.  This actually makes no difference in the output binaries.

Tested:
VS2005 on WinXP
VS.NET on WinXP
2008-05-29 12:45:36 -05:00
Scott Wegner
9cc6eeb7e8 [svn-r15089] Purpose: Support Visual Studio .NET builds from command-line
Description:
In our Windows command-line build script, we now support building with Visual Studio .NET, although VS2005 is still the default.  Building with VS.NET still imposes the same feature restrictions as through the IDE:
-- 64-bit builds are unsupported
-- Fortran is unsupported

Tested:
VS.NET on WinXP
VS2005 on WinXP
2008-05-29 09:42:26 -05:00
Scott Wegner
80b71590a8 [svn-r15057] Purpose: Fix Windows project libtestdll module path
Description:
The source file tf.f90 now produces a module error_handler.mod, which was being created in a wrong directory.  As a result, Visual Studio couldn't find it, and building failed.  This corrects the module path of libtestdll project.

Tested:
VS2005 on WinXP
2008-05-21 12:38:06 -05:00
Scott Wegner
75f21172fb [svn-r15056] Purpose: Update Windows h5repack test script
Description:
Merge changes from 1.8 branch into trunk.  New syntax and test added for "old syntax"

Tested:
VS2005 on WinXP
2008-05-21 10:39:29 -05:00
Scott Wegner
86790dab74 [svn-r14993] Purpose: Add support for building 64-bit Windows binaries from command line
Description:
We can dynamically detect the host architecture using the PROCESSOR_ARCHITECTURE variable.  This allows us to setup our build paths accordingly and build 64-bit Windows binaries from the command line.  This allows us to run autotests on 64-bit Windows as well.

Tested:
VS2005 on WinXP x64
VS2005 on WinXP x86
2008-05-14 09:46:44 -05:00
Scott Wegner
60f752301d [svn-r14980] Purpose: Update h5dump test script on Windows
Description:
One test has been added to h5dump test for custom output formats.  This adds the test on Windows as well.

Tested:
VS2005 on WinXP
2008-05-12 15:36:01 -05:00
Scott Wegner
2fd80deb4d [svn-r14975] Purpose: Add Windows fixes for new Fortran code.
Description:
There were a number of small tweaks we needed to make to add the new fortran_1_8 code on Windows.  We create new project files, add new source to them, add the test to our test suite, and fix a few typos in the Windows-specific source code.

Tested:
VS2005 on WinXP
2008-05-12 13:14:12 -05:00
Elena Pourmal
dcad778b42 [svn-r14923] Maintenance: This check-in merges changes from the fortran_1_8 branch back into the trunk (up to revision 14921)
Platforms tested: kagiso with g95 and Intel compilers; more testing will be done after checking in a fresh
                  copy from the trunk. New code itself was tested with all Fortran compilers available at THG
2008-05-03 18:39:37 -05:00
Scot Breitenfeld
aec106e324 [svn-r14903] Undoing change committed in r14902. 2008-04-30 14:51:13 -05:00
Scot Breitenfeld
5773fd34bc [svn-r14902] Merged fortran_1_8 branch changes r14505:14901 into the trunk. New fortran wrappers added. 2008-04-30 14:23:26 -05:00
Scott Wegner
9017a8113c [svn-r14867] Purpose: Add new source files to Windows projects
Description:
Two new source files have been added, H5Dchunk.c and H5Dscatgath.c.  This checkin adds the files to the Windows project files as well.

Tested:
VS2005 on WinXP
2008-04-28 09:04:29 -05:00
Scott Wegner
16d4cae5b1 [svn-r14857] Purpose: Fix typo in Windows test script
Description:
A small typo in the main Windows test script was causing the C++ library tests not to run by default.

Tested:
VS2005 on WinXP x64
2008-04-21 13:04:39 -05:00
Scott Wegner
84d3ea8e8b [svn-r14855] Purpose: Fix error message when with Windows pthreads
Description:
When building HDF5 with thread safety on Windows, the err_compat test was failing because our output was being parsed incorrectly.  Rather than having a thread number in the error stack trace, there will be the string "some thread: no way to know the thread (IDs): from pthread on windows:".  This checkin now takes this into account, and modifies the output accordingly.

Tested:
VS2005 on WinXP with Pthreads
2008-04-21 12:33:23 -05:00
Scott Wegner
775bbddc28 [svn-r14854] Purpose: Remove many spurious compiler warnings in Visual Studio
Description:
On Windows, many POSIX functions have been replaced by a similarly-named function with some additional security-checking.  Visual Studio issues a warning each time the POSIX version is used, recommending that we replace it with the new version.  This results in thousands of errors when building the HDF5 library.

This checkin adds a Visual Studio "Property Sheet", which has been applied to all library projects, and defines a number of preprocessors to suppress these warnings.  The warnings have been disabled only in Visual Studio 2005 project files, as VS.NET doesn't support property sheets.

Tested:
VS2005 on WinXP
2008-04-21 09:03:59 -05:00
Scott Wegner
c6ec340c76 [svn-r14845] Purpose: Add new Windows batch script for building example projects
Description:
Just as we have scripts for building and testing the HDF5 library on Windows, hdf5build_examples.BAT is a new script for building HDF5 example projects on Windows.  This is especially useful for our new Windows Daily Tests, to test our examples automatically as well.

Eventually, we will have hdf5check_examples.BAT and hdf5bt_examples.BAT to test our examples as well.

Tested:
VS2005 on WinXP
2008-04-14 16:35:55 -05:00
Scott Wegner
f16de15646 [svn-r14843] Purpose: Fix link input in Windows HL Fortran examples
Description:
Previously, our Windows projects for HL Fortran examples were using outdated library names for our cstub code.  As a result, they wouldn't build correctly.  This checkin brings them up-to-date.

Also, add hdf5_hl.lib as a dependency to hdf5_hl_fortran.lib.  This goes un-noticed when building the complete VS solution, but should be required when only building hdf5_hl_fortran.lib

Tested:
VS2005 on WinXP
2008-04-14 16:23:42 -05:00
Scott Wegner
37d75142e3 [svn-r14841] Purpose: Fix Windows Fortran examples runtime libraries
Description:
In the Windows Fortran example projects, the runtime library used for linking static-debug version was set incorrectly.  This was a result of the project being upgraded from VS6 where we used Single-threaded libraries.  Those libraries are no longer supported, so we use [Debug] Multithreaded [DLL] now instead.

Note that this also needs to be updated in the VS.NET project files-- I will make those changes shortly.

Tested:
VS2005 on WinXP
2008-04-14 12:02:10 -05:00
Scott Wegner
994669e01a [svn-r14839] Purpose: Add new Windows macro for links test
Description:
Many new path-specific tests have been added via the "links" test.  Because Windows' path format is non-standard, we need a special macro defined to handle it specially.  Note that 2 tests still fail with this macro defined, but it should be fixed soon.

Tested:
VS2005 on WinXP
2008-04-14 10:46:03 -05:00
Scott Wegner
0c299e6240 [svn-r14838] Purpose: Remove ohdr_gentst from Windows projects
Description:
The ohdr_gentst project exists in order to re-create test input files that are distributed with the source.  These projects aren't built by default on most platforms, and the source isn't distributed in release builds.  To avoid confusion and bloat, we remove the Windows version of this project.

Tested:
None, only removed
2008-04-14 10:21:46 -05:00
Scott Wegner
79e97a0e9e [svn-r14836] Purpose: Remove English-specific code from Windows test scripts
Description:
In previous versions of Windows, the builtin 'FC' command (diff equivalent) didn't return proper exit status.  As a work-around, we parsed the message returned to check status.  This relies on English return messages.

In current Windows XP and Windows Vista, FC will return exit status as expected, so we can remove this workaround.  Older platforms where we would need this workaround are no longer supported.

Tested:
VS2005 on Windows XP
Small test on Windows Vista
2008-04-14 10:03:26 -05:00
Scott Wegner
17fd32c3c9 [svn-r14817] Purpose: Add new Windows project chunk_info[dll]
Description:
A new source file has been added, ./test/chunk_info.c.  As a result, we need to add new projects for Windows.  This includes projects for VS2005 on VNET.

Tested:
VS2005 on WinXP
VNET on WinXP
2008-04-08 14:17:52 -05:00
Scott Wegner
3e3da02733 [svn-r14768] Purpose: Remove spurious szip link directory in h5repack debug project
Description:
As pointed out by a user, we added an un-needed link directory for szip which is machine-dependent and, in his case, problematic.  We can safely remove this reference because we already include the szip link directory elsewhere.

Tested:
None, simply removed
2008-03-24 13:03:13 -05:00
Scott Wegner
fa81a84cec [svn-r14717] Purpose: Remove commented test in h5dump test script
Description:
A commented test was deleted from the main h5dump test script.  This makes the same change in the Windows script.  This won't actually make any noticeable changes-- just to keep up with Linux.

Tested:
None needed, no new tests, just deleted comments
2008-03-10 13:24:59 -05:00
Scott Wegner
78d79fa83e [svn-r14695] Purpose: Fix typo in Windows install file
Description:
A small typo in the recent update to installhdf5lib.bat caused the C++ header files not to be installed for the debug version of the libraries.  This corrects the issue.

Tested:
VS2005 on WinXP
2008-03-03 14:43:31 -05:00
Scott Wegner
7d9cb501e1 [svn-r14673] Purpose: Allow building Fortran libraries from the Windows command line
Tested:
VS2005 on WinXP
2008-02-25 15:43:30 -05:00
Scott Wegner
0a33c38b75 [svn-r14667] Purpose: Update Windows h5import test script
Description:
The names of the test files for h5import changed slightly, so we needed to update our test script accordingly.  Also, a test for EOL characters has been added.

Tested:
VS2005 on WinXP
2008-02-25 10:52:05 -05:00
Scott Wegner
1755138539 [svn-r14608] Purpose: Add missing Windows HL C examples
Description:
The Windows suite of examples for HL C was a very small subset of the examples that exist for other platforms.  Now we have all of the HL C examples-- integrated into the VS projects files, and batch test scripts.

Tested:
VS2005 on WinXP
VNET on WinXP
2008-02-19 10:25:23 -05:00
Scott Wegner
a937d785c0 [svn-r14605] Purpose: Rename Windows HL Example projects to match other platforms
Description:
The collection of HL C examples that we distribute for Windows is incomplete.  I wasn't aware of it until Pedro pointed it out, because we use different (although similar) names for the generated files.  This checkin changes the naming to follow Linux, in preparation to add the rest of the HL examples to Windows.

Note: I believe I've updated the MANIFEST accordingly, but I may have missed something-- I'll check on Linux shortly after this commit.

Tested:
VS2005 on WinXP
VS.NET on WinXP
2008-02-18 13:51:47 -05:00
Scott Wegner
d2eaed4f42 [svn-r14603] Purpose: Add hdf5 library as a dependency to hdf5_hl library in Windows project files
Description:
For some reason, the hdf5_hl library didn't have hdf5 listed as a dependency.  This isn't normally a problem, because building "all" will build hdf5 library.  However, when a user tries to build only hdf5_hl, hdf5 library wouldn't be built.

Although not technically required for compiling the library code, the hdf5 library is needed for linking any applications, so it's a natural dependency.

Tested:
VS2005 on WinXP
VNET on WinXP
2008-02-18 13:24:12 -05:00
Scott Wegner
77b17dbe18 [svn-r14599] Purpose: Fix very minor typo in Windows h5import test script
Description:
Single-letter typo in the Windows test script was causing us to return the wrong error code in some cases.

Tested:
VS2005 on WinXP
2008-02-18 11:48:30 -05:00
Scott Wegner
8ee5cbef2d [svn-r14596] Purpose: Allow for better logging in Windows commandline build script
Description:
Previously, all of our build output would simply go to stdout/stderr for command-line builds.  We can pipe this into a log file as a whole, but the complete logfile becomes very large very quickly.  Instead, we give the user an option to place build results and test results into separate logs (or even the same).  This will help keeping track of results in our automated testing.

Tested:
VS2005 on WinXP
2008-02-18 10:34:55 -05:00
Scott Wegner
cd785d60ba [svn-r14553] Purpose: Minor cleanup of Windows installation scripts
Description:
Make the Windows copy_hdf.bat a little cleaner/safer, and produce useful output in installhdf5lib.bat

Tested:
VS2005 on WinXP
2008-02-12 10:54:50 -05:00
Scott Wegner
b746d34dc7 [svn-r14459] Purpose: Small patch to Windows install script
Description:
A user pointed out that one of our Fortran dependencies wasn't getting installed correctly due to a wrong path in our install file.  After reviewing, I've applied the patch that he's proposed.
2008-01-25 17:09:22 -05:00
Scott Wegner
70c30abe02 [svn-r14447] Purpose: Fix output directory for h5reparttst project
Description:
For some reason, the h5reparttst output folder wasn't set correcty for 64-bit Windows.  This may have gotten accidentally changed with other intermediate project file changes.

Tested:
VS2005 on WinXP x64
2008-01-21 11:44:56 -05:00
Scott Wegner
506d25b5f2 [svn-r14443] Purpose: Update Windows h5dump test scriptPurpose: Update Windows h5dump test script
Description:
There was another update to the main h5dump test script.  This checkin brings those edits to the Windows script as well.

Tested:
VS2005 w/ WinXP
2008-01-18 17:18:13 -05:00
Scott Wegner
63e111fb51 [svn-r14433] Purpose: Fix reference in the Windows batch-build script
Description:
In the Windows command line build script, there was a reference to the "typegen" project, which generates h5detect before HDF5 is built.  Now, we integrate h5detect into the overall build process, and typegen has been removed.  This checkin removes the reference in the batch script.  This fixes bugzilla bug 1021.
2008-01-16 09:26:40 -05:00
Scott Wegner
7246c763de [svn-r14426] Purpose: Update Windows h5dump test script
Description:
There were a number of updates to the main h5dump test script.  This checkin brings those edits to the Windows script as well.

Tested:
VS2005 w/ WinXP
2008-01-16 08:11:22 -05:00
Scott Wegner
6a5cb6a480 [svn-r14416] Purpose: Add source files to Windows projects
Description:
This catches up Windows to most of the new source files that have been added.  Specifically, H5FDpkg.h and H5FDspace.c have been added to the library projects, and tcoords.c has been added to testhdf5.  This goes for VS2005 and VS6 project files.

Tested:
Only built, VS2005
2008-01-15 10:48:07 -05:00
Scott Wegner
3b33bd982c [svn-r14331] Purpose: Update Windows h5ls test script
Details:
We no longer need to parse the h5ls output to remove "Modified" tags.  This makes it much easier to test on Windows, because we don't need to emulate `sed`.

Tested:
VS2005 on WinXP
2007-12-10 08:46:53 -05:00
Scott Wegner
529d974dff [svn-r14319] Purpose: Update error handling in h5ls, uncomment test
Description:
Larry was able to track down the bug in the h5ls test script and change it around to check for an expected error code for each test.  With this, we are now able to uncomment the broken test on Windows.

Tested:
VS2005 on WinXP
2007-12-04 08:55:40 -05:00
Scott Wegner
967c186011 [svn-r14315] Purpose: Update Windows h5repack test script
Description:
Added new test for long switch names, which was added to the general test script a few days ago.

Tested:
VS2005 on WinXP
2007-12-03 10:46:52 -05:00
Scott Wegner
bba104b0a0 [svn-r14303] Purpose: Update h5ls test script on Windows.
Description:
The h5ls test script was recently updated on Linux.  This makes the same changes on Windows.  Also, we had to comment out one of our tests, because h5ls returns an error-code that is giving false-positives.

Tested:
VS2005 on WinXP
2007-11-29 09:14:18 -05:00
Scott Wegner
30d4db8912 [svn-r14302] Purpose: Update Windows test scripts for recent changes
Description:
Minor changes were recently made in the linux test scripts for h5diff and h5repack.  This brings Windows up-to-date.

Note: I am still working on updates to testh5ls.bat-- there is one test that is failing, but should be ready soon.

Tested:
VS2005 on WinXP
2007-11-29 08:36:57 -05:00
Scott Wegner
586ac517a1 [svn-r14301] Purpose: Remove references to deleted source file from Windows project files.
Description:
h5repack_list.c was deleted from the repository recently.  This check-in also removes references in the Windows library.

Tested:
Built with VS2005
2007-11-29 08:32:47 -05:00