-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update "nitro" and "coda-oss" (#370)
* update "nitro" and "coda-oss" * Delete CMakeSettings.json * changeFileHeader() doesn't (yet) work in "externals"
- Loading branch information
J. Daniel Smith
authored
Nov 9, 2020
1 parent
5c4bfb6
commit 3c07e72
Showing
322 changed files
with
21,326 additions
and
559 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
|
||
#include "gtest/gtest.h" | ||
|
||
// use GTest macros to mimic existing unit-tests | ||
|
||
#define TEST_ASSERT(X) EXPECT_TRUE(X) | ||
#define TEST_ASSERT_NULL(X) TEST_ASSERT((X) == NULL) | ||
#define TEST_ASSERT_TRUE(X) TEST_ASSERT((X) == true) | ||
|
||
#define TEST_ASSERT_EQ(X1, X2) EXPECT_EQ(X1, X2) | ||
#define TEST_ASSERT_NOT_EQ(X1, X2) EXPECT_NE(X1, X2) | ||
#define TEST_ASSERT_EQ_INT(X1, X2) TEST_ASSERT_EQ(X1, X2) | ||
#define TEST_ASSERT_EQ_STR(X1, X2) EXPECT_STREQ(X1, X2) | ||
#define TEST_ASSERT_EQ_FLOAT(X1, X2) EXPECT_FLOAT_EQ(static_cast<float>(X1), static_cast<float>(X2)) | ||
|
||
#define TEST_ASSERT_GREATER(X1, X2) EXPECT_GT(X1, X2) | ||
|
||
|
||
#define TEST_ASSERT_EQ_MSG(msg, X1, X2) SCOPED_TRACE(msg); TEST_ASSERT_EQ(X1, X2) | ||
|
||
#define TEST_EXCEPTION(X) EXPECT_ANY_THROW((X)) | ||
|
||
#define TEST_MAIN(X) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|x64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>{FDEA6187-F4C4-45BC-B793-C0AC0728B776}</ProjectGuid> | ||
<Keyword>Win32Proj</Keyword> | ||
<WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<PlatformToolset>v142</PlatformToolset> | ||
<CharacterSet>Unicode</CharacterSet> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<ImportGroup Label="ExtensionSettings" /> | ||
<ImportGroup Label="Shared" /> | ||
<ImportGroup Label="PropertySheets" /> | ||
<PropertyGroup Label="UserMacros" /> | ||
<ItemGroup> | ||
<ClInclude Include="nitf_Test.h" /> | ||
<ClInclude Include="nrt_Test.h" /> | ||
<ClInclude Include="pch.h" /> | ||
<ClInclude Include="Test.h" /> | ||
<ClInclude Include="TestCase.h" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClCompile Include="nitf_test_create.cpp" /> | ||
<ClCompile Include="nitf_test_create_nitf.cpp" /> | ||
<ClCompile Include="nitf_test_field++.cpp" /> | ||
<ClCompile Include="nitf_test_field.cpp" /> | ||
<ClCompile Include="nitf_test_image_blocker.cpp" /> | ||
<ClCompile Include="nitf_test_image_io.cpp" /> | ||
<ClCompile Include="nitf_test_image_segment_blank_nm_compression.cpp" /> | ||
<ClCompile Include="nitf_test_image_segment_computer.cpp" /> | ||
<ClCompile Include="nitf_test_mem_source.cpp" /> | ||
<ClCompile Include="nitf_test_nitf_buffer_list.cpp" /> | ||
<ClCompile Include="nitf_test_tre_mods.cpp" /> | ||
<ClCompile Include="nitf_test_zero_field.cpp" /> | ||
<ClCompile Include="nrt_test_buffer_adapter.cpp" /> | ||
<ClCompile Include="nrt_test_core_values.cpp" /> | ||
<ClCompile Include="nrt_test_list.cpp" /> | ||
<ClCompile Include="nrt_test_nrt_byte_swap.cpp" /> | ||
<ClCompile Include="nrt_test_nrt_datetime.cpp" /> | ||
<ClCompile Include="nrt_test_tree.cpp" /> | ||
<ClCompile Include="nrt_test_utils.cpp" /> | ||
<ClCompile Include="pch.cpp"> | ||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader> | ||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader> | ||
</ClCompile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\modules\c++\nitro-c++.vcxproj"> | ||
<Project>{8f357a19-799e-4971-850e-3f28485c130b}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\modules\c\nitf\ACCHZB.vcxproj"> | ||
<Project>{53f9f908-c678-4dee-9309-e71c1d03a45f}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\modules\c\nitf\ACCPOB.vcxproj"> | ||
<Project>{730b1e6e-2469-4f9e-b093-d0c6262453c9}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\modules\c\nitf\ACFTA.vcxproj"> | ||
<Project>{51d7b426-899e-428d-9f69-5ddac9e403fb}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\modules\c\nitf\AIMIDB.vcxproj"> | ||
<Project>{12aa0752-4ee3-4e0a-85af-0e5deadbf343}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\modules\c\nitf\CSCRNA.vcxproj"> | ||
<Project>{023de06d-3967-4406-b1b8-032118bb2552}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\modules\c\nitf\JITCID.vcxproj"> | ||
<Project>{d1d7fcd3-6130-4504-9da0-9d80506be55e}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\modules\c\nitf\RPFHDR.vcxproj"> | ||
<Project>{cf5b4f02-364d-4117-9fb9-6c9c7938e412}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\modules\c\nitro-c.vcxproj"> | ||
<Project>{f06550ad-cfc7-40b8-8727-6c82c69a8982}</Project> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<ItemDefinitionGroup /> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
<Import Project="..\packages\Microsoft.googletest.v140.windesktop.msvcstl.dyn.rt-dyn.1.8.1.3\build\native\Microsoft.googletest.v140.windesktop.msvcstl.dyn.rt-dyn.targets" Condition="Exists('..\packages\Microsoft.googletest.v140.windesktop.msvcstl.dyn.rt-dyn.1.8.1.3\build\native\Microsoft.googletest.v140.windesktop.msvcstl.dyn.rt-dyn.targets')" /> | ||
</ImportGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<ClCompile> | ||
<PrecompiledHeader>Use</PrecompiledHeader> | ||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
<Optimization>Disabled</Optimization> | ||
<PreprocessorDefinitions>X64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> | ||
<WarningLevel>Level3</WarningLevel> | ||
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)include;%(AdditionalIncludeDirectories);$(SolutionDir)modules\c\nrt\include;$(SolutionDir)modules\c\nitf\include;$(SolutionDir)modules\c\jpeg\include;$(SolutionDir)modules\c\j2k\include;$(SolutionDir)modules\c\cgm\include;$(SolutionDir)modules\c;$(SolutionDir)modules\c++;$(SolutionDir)modules\c++\nitf\include;$(MSBuildThisFileDirectory)include;$(SolutionDir)externals\coda-oss\install-$(Configuration)-$(Platform).$(PlatformToolset)\include\import;$(SolutionDir)externals\coda-oss\install-$(Configuration)-$(Platform).$(PlatformToolset)\include</AdditionalIncludeDirectories> | ||
<LanguageStandard>stdcpp17</LanguageStandard> | ||
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions> | ||
<MultiProcessorCompilation>true</MultiProcessorCompilation> | ||
</ClCompile> | ||
<Link> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
<SubSystem>Console</SubSystem> | ||
<AdditionalLibraryDirectories>$(SolutionDir)externals\coda-oss\install-$(Configuration)-$(Platform).$(PlatformToolset)\lib</AdditionalLibraryDirectories> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<ClCompile> | ||
<PrecompiledHeader>Use</PrecompiledHeader> | ||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
<PreprocessorDefinitions>X64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | ||
<WarningLevel>Level3</WarningLevel> | ||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat> | ||
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)include;%(AdditionalIncludeDirectories);$(SolutionDir)modules\c\nrt\include;$(SolutionDir)modules\c\nitf\include;$(SolutionDir)modules\c\jpeg\include;$(SolutionDir)modules\c\j2k\include;$(SolutionDir)modules\c\cgm\include;$(SolutionDir)modules\c;$(SolutionDir)modules\c++;$(SolutionDir)modules\c++\nitf\include;$(MSBuildThisFileDirectory)include;$(SolutionDir)externals\coda-oss\install-$(Configuration)-$(Platform).$(PlatformToolset)\include\import;$(SolutionDir)externals\coda-oss\install-$(Configuration)-$(Platform).$(PlatformToolset)\include</AdditionalIncludeDirectories> | ||
<LanguageStandard>stdcpp17</LanguageStandard> | ||
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions> | ||
<MultiProcessorCompilation>true</MultiProcessorCompilation> | ||
</ClCompile> | ||
<Link> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
<SubSystem>Console</SubSystem> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<AdditionalLibraryDirectories>$(SolutionDir)externals\coda-oss\install-$(Configuration)-$(Platform).$(PlatformToolset)\lib</AdditionalLibraryDirectories> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | ||
<PropertyGroup> | ||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | ||
</PropertyGroup> | ||
<Error Condition="!Exists('..\packages\Microsoft.googletest.v140.windesktop.msvcstl.dyn.rt-dyn.1.8.1.3\build\native\Microsoft.googletest.v140.windesktop.msvcstl.dyn.rt-dyn.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.googletest.v140.windesktop.msvcstl.dyn.rt-dyn.1.8.1.3\build\native\Microsoft.googletest.v140.windesktop.msvcstl.dyn.rt-dyn.targets'))" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#pragma once | ||
#include "Test.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#pragma once | ||
|
||
#if defined(GTEST_API_) | ||
#define __TEST_H__ // #include "../nitf/unittests/Test.h" | ||
#define __TEST_CASE_H__ // #include "../nitf/unittests/TestCase.h" | ||
#endif | ||
#include "Test.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "pch.h" | ||
|
||
#include "nitf_Test.h" | ||
|
||
#define TEST_CASE(X) TEST(nitf_test_create, X) | ||
#include "nitf/unittests/test_create.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "pch.h" | ||
|
||
#include "nitf_Test.h" | ||
|
||
#define TEST_NAME nitf_test_create_nitf | ||
#define TEST_CASE(X) TEST(TEST_NAME, X) | ||
|
||
int argc = 1; | ||
const char* argv[] = { "nitf_test_create_nitf" }; | ||
#define TEST_CASE_ARGS(X) TEST(TEST_NAME, X) | ||
|
||
#include "nitf/unittests/test_create_nitf.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "pch.h" | ||
|
||
#include "nitf_Test.h" | ||
|
||
#define TEST_CASE(X) TEST(nitf_test_field__, X) | ||
#include "nitf/unittests/test_field++.cpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include "pch.h" | ||
|
||
#include "nitf_Test.h" | ||
|
||
#define TEST_CASE(X) TEST(nitf_test_field, X) | ||
#include "nitf/unittests/test_field.c" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "pch.h" | ||
|
||
#include "nitf_Test.h" | ||
|
||
#define TEST_CASE(X) TEST(test_image_blocker, X) | ||
#include "nitf/unittests/test_image_blocker.cpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "pch.h" | ||
|
||
#include <windows.h> | ||
#include <combaseapi.h> | ||
#undef interface | ||
|
||
#include "nitf_Test.h" | ||
|
||
#define TEST_CASE(X) TEST(nitf_test_image_io, X) | ||
|
||
#include "nitf/unittests/test_image_io.c" |
6 changes: 6 additions & 0 deletions
6
externals/nitro/Test/nitf_test_image_segment_blank_nm_compression.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "pch.h" | ||
|
||
#include "nitf_Test.h" | ||
|
||
#define TEST_CASE(X) TEST(test_image_segment_blank_nm_compression, X) | ||
#include "nitf/unittests/test_image_segment_blank_nm_compression.cpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "pch.h" | ||
|
||
#include "nitf_Test.h" | ||
|
||
#define TEST_CASE(X) TEST(test_image_segment_computer, X) | ||
#include "nitf/unittests/test_image_segment_computer.cpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "pch.h" | ||
|
||
#include "nitf_Test.h" | ||
|
||
#define TEST_CASE(X) TEST(nitf_test_mem_source, X) | ||
#include "nitf/unittests/test_mem_source.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "pch.h" | ||
|
||
#include "nitf_Test.h" | ||
|
||
#define TEST_CASE(X) TEST(test_nitf_buffer_list, X) | ||
#include "nitf/unittests/test_nitf_buffer_list.cpp" |
Oops, something went wrong.