summaryrefslogtreecommitdiffstats
path: root/windows/tools/h5stat
diff options
context:
space:
mode:
Diffstat (limited to 'windows/tools/h5stat')
-rw-r--r--windows/tools/h5stat/h5stat.vcproj394
-rw-r--r--windows/tools/h5stat/testh5stat.bat183
2 files changed, 0 insertions, 577 deletions
diff --git a/windows/tools/h5stat/h5stat.vcproj b/windows/tools/h5stat/h5stat.vcproj
deleted file mode 100644
index f9b5d12..0000000
--- a/windows/tools/h5stat/h5stat.vcproj
+++ /dev/null
@@ -1,394 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="h5stat"
- ProjectGUID="{405F6F0A-DBE6-4A4E-AAE2-D4D514BA0CF5}"
- RootNamespace="h5stat"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="..\..\..\tools\$(ProjectName)\$(ConfigurationName)"
- IntermediateDirectory="$(OutDir)"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;..\..\proj\property_sheets\remove-posix-warnings.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TypeLibraryName=".\../../../tools/h5stat/Debug/h5stat.tlb"
- HeaderFileName=""
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..\..\src,..\..\..\tools\lib"
- PreprocessorDefinitions="BIND_TO_CURRENT_VCLIBS_VERSION=1;WIN32;_DEBUG;_CONSOLE"
- BasicRuntimeChecks="3"
- RuntimeLibrary="1"
- UsePrecompiledHeader="0"
- PrecompiledHeaderFile=".\../../../tools/h5stat/Debug/h5stat.pch"
- AssemblerListingLocation=".\../../../tools/h5stat/Debug/"
- ObjectFile=".\../../../tools/h5stat/Debug/"
- ProgramDataBaseFileName=".\../../../tools/h5stat/Debug/"
- WarningLevel="3"
- SuppressStartupBanner="true"
- DebugInformationFormat="3"
- CompileAs="0"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="BIND_TO_CURRENT_VCLIBS_VERSION=1;_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odbc32.lib odbccp32.lib $(HDF5_EXT_ZLIB) $(HDF5_EXT_SZIP)"
- OutputFile="$(OutDir)\$(ProjectName).exe"
- LinkIncremental="0"
- SuppressStartupBanner="true"
- GenerateDebugInformation="true"
- ProgramDatabaseFile=".\../../../tools/h5stat/Debug/h5stat.pdb"
- SubSystem="1"
- RandomizedBaseAddress="1"
- DataExecutionPrevention="0"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="..\..\..\tools\$(ProjectName)\$(ConfigurationName)"
- IntermediateDirectory="$(OutDir)"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;..\..\proj\property_sheets\remove-posix-warnings.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- TypeLibraryName=".\../../../tools/h5stat/Debug/h5stat.tlb"
- HeaderFileName=""
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..\..\src,..\..\..\tools\lib"
- PreprocessorDefinitions="BIND_TO_CURRENT_VCLIBS_VERSION=1;WIN32;_DEBUG;_CONSOLE"
- BasicRuntimeChecks="3"
- RuntimeLibrary="1"
- UsePrecompiledHeader="0"
- PrecompiledHeaderFile=".\../../../tools/h5stat/Debug/h5stat.pch"
- AssemblerListingLocation=".\../../../tools/h5stat/Debug/"
- ObjectFile=".\../../../tools/h5stat/Debug/"
- ProgramDataBaseFileName=".\../../../tools/h5stat/Debug/"
- WarningLevel="3"
- SuppressStartupBanner="true"
- DebugInformationFormat="3"
- CompileAs="0"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="BIND_TO_CURRENT_VCLIBS_VERSION=1;_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odbc32.lib odbccp32.lib $(HDF5_EXT_ZLIB) $(HDF5_EXT_SZIP)"
- OutputFile="$(OutDir)\$(ProjectName).exe"
- LinkIncremental="0"
- SuppressStartupBanner="true"
- GenerateDebugInformation="true"
- ProgramDatabaseFile=".\../../../tools/h5stat/Debug/h5stat.pdb"
- SubSystem="1"
- RandomizedBaseAddress="1"
- DataExecutionPrevention="0"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="..\..\..\tools\$(ProjectName)\$(ConfigurationName)"
- IntermediateDirectory="$(OutDir)"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;..\..\proj\property_sheets\remove-posix-warnings.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TypeLibraryName=".\../../../tools/h5stat/Release/h5stat.tlb"
- HeaderFileName=""
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- InlineFunctionExpansion="1"
- AdditionalIncludeDirectories="..\..\..\src,..\..\..\tools\lib"
- PreprocessorDefinitions="BIND_TO_CURRENT_VCLIBS_VERSION=1;WIN32;NDEBUG;_CONSOLE"
- StringPooling="true"
- RuntimeLibrary="0"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- PrecompiledHeaderFile=".\../../../tools/h5stat/Release/h5stat.pch"
- AssemblerListingLocation=".\../../../tools/h5stat/Release/"
- ObjectFile=".\../../../tools/h5stat/Release/"
- ProgramDataBaseFileName=".\../../../tools/h5stat/Release/"
- WarningLevel="3"
- SuppressStartupBanner="true"
- CompileAs="0"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="BIND_TO_CURRENT_VCLIBS_VERSION=1;NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odbc32.lib odbccp32.lib $(HDF5_EXT_ZLIB) $(HDF5_EXT_SZIP)"
- OutputFile="$(OutDir)\$(ProjectName).exe"
- LinkIncremental="0"
- SuppressStartupBanner="true"
- ProgramDatabaseFile=".\../../../tools/h5stat/Release/h5stat.pdb"
- SubSystem="1"
- RandomizedBaseAddress="1"
- DataExecutionPrevention="0"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="..\..\..\tools\$(ProjectName)\$(ConfigurationName)"
- IntermediateDirectory="$(OutDir)"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;..\..\proj\property_sheets\remove-posix-warnings.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- TypeLibraryName=".\../../../tools/h5stat/Release/h5stat.tlb"
- HeaderFileName=""
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- InlineFunctionExpansion="1"
- AdditionalIncludeDirectories="..\..\..\src,..\..\..\tools\lib"
- PreprocessorDefinitions="BIND_TO_CURRENT_VCLIBS_VERSION=1;WIN32;NDEBUG;_CONSOLE"
- StringPooling="true"
- RuntimeLibrary="0"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- PrecompiledHeaderFile=".\../../../tools/h5stat/Release/h5stat.pch"
- AssemblerListingLocation=".\../../../tools/h5stat/Release/"
- ObjectFile=".\../../../tools/h5stat/Release/"
- ProgramDataBaseFileName=".\../../../tools/h5stat/Release/"
- WarningLevel="3"
- SuppressStartupBanner="true"
- CompileAs="0"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="BIND_TO_CURRENT_VCLIBS_VERSION=1;NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="odbc32.lib odbccp32.lib $(HDF5_EXT_ZLIB) $(HDF5_EXT_SZIP)"
- OutputFile="$(OutDir)\$(ProjectName).exe"
- LinkIncremental="0"
- SuppressStartupBanner="true"
- ProgramDatabaseFile=".\../../../tools/h5stat/Release/h5stat.pdb"
- SubSystem="1"
- RandomizedBaseAddress="1"
- DataExecutionPrevention="0"
- TargetMachine="17"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <File
- RelativePath="..\..\..\tools\h5stat\h5stat.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/windows/tools/h5stat/testh5stat.bat b/windows/tools/h5stat/testh5stat.bat
deleted file mode 100644
index 3969c7e..0000000
--- a/windows/tools/h5stat/testh5stat.bat
+++ /dev/null
@@ -1,183 +0,0 @@
-@echo off
-rem
-rem Copyright by The HDF Group.
-rem Copyright by the Board of Trustees of the University of Illinois.
-rem All rights reserved.
-rem
-rem This file is part of HDF5. The full HDF5 copyright notice, including
-rem terms governing use, modification, and redistribution, is contained in
-rem the files COPYING and Copyright.html. COPYING can be found at the root
-rem of the source code distribution tree; Copyright.html can be found at the
-rem root level of an installed copy of the electronic HDF5 document set and
-rem is linked from the top-level documents page. It can also be found at
-rem http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have
-rem access to either file, you may request a copy from help@hdfgroup.org.
-rem
-rem Tests for the h5stat tool
-rem
-rem Created: Scott Wegner, 8/28/07
-rem Modified:
-rem
-
-setlocal enabledelayedexpansion
-pushd %~dp0
-
-set EXIT_SUCCESS=0
-set EXIT_FAILURE=1
-
-set h5pubconf=%CD%\..\..\src\h5pubconf.h
-
-rem Determine which filters are available
-rem On Windows, the function :detect_filter sets these for us
-call :detect_filter szip
-call :detect_filter deflate
-call :detect_filter shuffle
-call :detect_filter fletcher32
-call :detect_filter nbit
-call :detect_filter scaleoffset
-
-rem The tool name
-set stat=h5stat%2
-rem The path of the tool binary
-set stat_bin=%CD%\..\%stat%\%1\%stat%
-
-set nerrors=0
-set verbose=yes
-
-if not exist .\testfiles mkdir .\testfiles
-
-goto main
-
-
-rem Print a line-line message left justified in a field of 70 characters
-rem beginning with the word "Testing".
-rem
-:testing
- set test_msg=Testing
- for %%a in (%*) do (
- if %%a neq PASSED (
- if %%a neq *FAILED* (
- set test_msg=!test_msg! %%~nxa
- ) )
- )
- set test_msg=!test_msg!
- echo.%test_msg:~0,69% %1
-
- exit /b
-
-
-rem Run a test and print PASS or *FAIL*. If a test fails then increment
-rem the `nerrors' global variable and (if %verbose% is set) display the
-rem difference between the actual output and the expected output. The
-rem expected output is given as the first argument to this function and
-rem the actual output file is calculated by replacing the `.ddl' with
-rem `.out'. The actual output is not removed if %HDF5_NOCLEANUP% has a
-rem non-zero value.
-rem
-:tooltest
- set expect=%CD%\testfiles\%1
- set actual=%CD%\testfiles\%~n1.out
- set actual_err=%CD%\testfiles\%~n1.err
-
- rem We define %params% here because Windows `shift` command doesn't affect
- rem the %* variable. --SJW 8/28/07
- set params=%*
- set params=%params:* =%
-
- rem Run test.
- (
- echo.#############################
- rem Filter out quotes because they do on Linux. --SJW 8/28/07
- echo.Expected output for 'h5stat %params:"=%'
- echo.#############################
- pushd %CD%\testfiles
- %stat_bin% %params%
- popd
- ) > %actual% 2> %actual_err%
- type %actual_err% >> %actual%
-
-
- if not exist %expect% (
- rem Create the expect file if it doesn't yet exist
- call :testing CREATED %stat% %params%
- copy /y %actual% %expect%
- ) else (
- fc /w %expect% %actual% > nul
- if !errorlevel! equ 0 (
- call :testing PASSED %stat% %params%
- ) else (
- call :testing *FAILED* %stat% %params%
- echo. Expected results ^(*.ddl^) differs from actual result ^(*.out^)
- set /a nerrors=!nerrors!+1
- if "yes"=="%verbose%" fc %expect% %actual%
- )
- )
-
- rem Clean up output file
- if not defined hdf5_nocleanup (
- del /f %actual% %actual_err%
- )
-
- exit /b
-
-
-rem This is a Windows-specific function that detects if the filter passed
-rem should be enabled for this test script. It searches H5pubconf.h for the
-rem string "#define H5_HAVE_FILTER_%1" and sets the variable "use_filter_%1"
-rem accordingly. On other platforms, this variable is set in the Makefile.
-rem If we find a better way to test this in the future, we should use it.
-rem --SJW 9/4/07
-:detect_filter
- findstr /b /i /c:"#define H5_HAVE_FILTER_%1" %h5pubconf% > nul
- if %errorlevel% equ 0 (
- set use_filter_%1=yes
- ) else (
- set use_filter_%1=no
- )
-
- exit /b
-
-
-rem Print a "SKIP" message
-:skip
- call :testing -SKIP- %*
- exit /b
-
-
-rem ############################################################################
-rem ############################################################################
-rem # T H E T E S T S ###
-rem ############################################################################
-rem ############################################################################
-:main
-
- rem Test for help flag
- call :tooltest h5stat_help1.ddl -h
- call :tooltest h5stat_help2.ddl --help
-
- rem Test file with groups, compressed datasets, user-applied fileters, etc.
- rem h5stat_filters.h5 is a copy of ../../testfiles/tfilters.h5 as of release 1.8.0-alpha4
- call :tooltest h5stat_filters.ddl h5stat_filters.h5
- call :tooltest h5stat_filters-file.ddl -f h5stat_filters.h5
- call :tooltest h5stat_filters-F.ddl -F h5stat_filters.h5
- call :tooltest h5stat_filters-d.ddl -d h5stat_filters.h5
- call :tooltest h5stat_filters-g.ddl -g h5stat_filters.h5
- call :tooltest h5stat_filters-dT.ddl -dT h5stat_filters.h5
- call :tooltest h5stat_filters-UD.ddl -D h5stat_filters.h5
- call :tooltest h5stat_filters-UT.ddl -T h5stat_filters.h5
- rem h5stat_tsohm.h5 is a copy of ../../../test/tsohm.h5 generated by tsohm.c
- rem as of release 1.8.0-alpha4
- call :tooltest h5stat_tsohm.ddl h5stat_tsohm.h5
- rem h5stat_newgrat.h5 is generated by h5stat_gentest.c
- call :tooltest h5stat_newgrat.ddl h5stat_newgrat.h5
- call :tooltest h5stat_newgrat-UG.ddl -G h5stat_newgrat.h5
- call :tooltest h5stat_newgrat-UA.ddl -A h5stat_newgrat.h5
- echo.
-
- if %nerrors% equ 0 (
- echo.All %stat% tests passed.
- )
-
- popd
- endlocal & exit /b %nerrors%
-