Skip to content
Snippets Groups Projects
Commit 789dcde9 authored by Wittenburg, William's avatar Wittenburg, William
Browse files

Address some test failures on windows

parent d495e7c3
No related branches found
No related tags found
1 merge request!269Get AppVeyor builds working
......@@ -19,8 +19,6 @@ platform:
before_build:
- del /q /f "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
### uncomment "set" to see environment in build logs
- set
- cd C:\projects\adios2
- git reset --hard %APPVEYOR_PULL_REQUEST_HEAD_COMMIT%
- ps: |
......
......@@ -3,7 +3,6 @@ set(CTEST_SITE "AppVeyor")
set(CTEST_BUILD_CONFIGURATION Release)
set(CTEST_CONFIGURATION_TYPE Release)
set(CTEST_CMAKE_GENERATOR "Visual Studio 14 2015 Win64")
# set(CTEST_BUILD_FLAGS "-k -j4")
set(CTEST_TEST_ARGS PARALLEL_LEVEL 4)
message("av_default.cmake, CTEST_BUILD_NAME=${CTEST_BUILD_NAME}, push build notes is ADIOS_CTEST_SUBMIT_NOTES=${ADIOS_CTEST_SUBMIT_NOTES}")
......
......@@ -155,7 +155,7 @@ TEST_F(ADIOSDefineAttributeTest, DefineAttributeTypeByValue)
EXPECT_EQ(attributeI64.m_Name, i64_Single);
EXPECT_EQ(attributeI64.m_DataSingleValue, currentTestData.I64.front());
EXPECT_EQ(attributeI64.m_Elements, 1);
EXPECT_EQ(attributeI64.m_Type, "long int");
EXPECT_EQ(sizeof(attributeI64.m_DataSingleValue), 8);
ASSERT_EQ(attributeU8.m_IsSingleValue, true);
ASSERT_EQ(attributeU8.m_DataArray.empty(), true);
......@@ -183,7 +183,7 @@ TEST_F(ADIOSDefineAttributeTest, DefineAttributeTypeByValue)
EXPECT_EQ(attributeU64.m_Name, u64_Single);
EXPECT_EQ(attributeU64.m_DataSingleValue, currentTestData.U64.front());
EXPECT_EQ(attributeU64.m_Elements, 1);
EXPECT_EQ(attributeU64.m_Type, "unsigned long int");
EXPECT_EQ(sizeof(attributeU64.m_DataSingleValue), 8);
ASSERT_EQ(attributeFloat.m_IsSingleValue, true);
ASSERT_EQ(attributeFloat.m_DataArray.empty(), true);
......@@ -305,7 +305,7 @@ TEST_F(ADIOSDefineAttributeTest, DefineAttributeTypeByReference)
ASSERT_EQ(attributeI64.m_DataArray.empty(), false);
EXPECT_EQ(attributeI64.m_Name, i64_Single);
EXPECT_EQ(attributeI64.m_Elements, numberOfElements);
EXPECT_EQ(attributeI64.m_Type, "long int");
EXPECT_EQ(sizeof(attributeI64.m_DataSingleValue), 8);
ASSERT_EQ(attributeU8.m_IsSingleValue, false);
ASSERT_EQ(attributeU8.m_DataArray.empty(), false);
......@@ -329,7 +329,7 @@ TEST_F(ADIOSDefineAttributeTest, DefineAttributeTypeByReference)
ASSERT_EQ(attributeU64.m_DataArray.empty(), false);
EXPECT_EQ(attributeU64.m_Name, u64_Single);
EXPECT_EQ(attributeU64.m_Elements, numberOfElements);
EXPECT_EQ(attributeU64.m_Type, "unsigned long int");
EXPECT_EQ(sizeof(attributeU64.m_DataSingleValue), 8);
ASSERT_EQ(attributeFloat.m_IsSingleValue, false);
ASSERT_EQ(attributeFloat.m_DataArray.empty(), false);
......@@ -480,7 +480,7 @@ TEST_F(ADIOSDefineAttributeTest, GetAttribute)
ASSERT_EQ(attributeI64.m_DataArray.empty(), false);
EXPECT_EQ(attributeI64.m_Name, i64_Single);
EXPECT_EQ(attributeI64.m_Elements, numberOfElements);
EXPECT_EQ(attributeI64.m_Type, "long int");
EXPECT_EQ(sizeof(attributeI64.m_DataSingleValue), 8);
ASSERT_EQ(attributeU8.m_IsSingleValue, false);
ASSERT_EQ(attributeU8.m_DataArray.empty(), false);
......@@ -504,7 +504,7 @@ TEST_F(ADIOSDefineAttributeTest, GetAttribute)
ASSERT_EQ(attributeU64.m_DataArray.empty(), false);
EXPECT_EQ(attributeU64.m_Name, u64_Single);
EXPECT_EQ(attributeU64.m_Elements, numberOfElements);
EXPECT_EQ(attributeU64.m_Type, "unsigned long int");
EXPECT_EQ(sizeof(attributeU64.m_DataSingleValue), 8);
ASSERT_EQ(attributeFloat.m_IsSingleValue, false);
ASSERT_EQ(attributeFloat.m_DataArray.empty(), false);
......
......@@ -151,7 +151,7 @@ TEST_F(ADIOSInterfaceWriteTest, DefineVar_int64_t_1x10)
EXPECT_EQ(var_int64_t.m_Count.size(), 1);
EXPECT_EQ(var_int64_t.m_Count[0], 10);
EXPECT_EQ(var_int64_t.m_Name, name);
EXPECT_EQ(var_int64_t.m_Type, "long int");
EXPECT_EQ(var_int64_t.m_ElementSize, 8);
}
TEST_F(ADIOSInterfaceWriteTest, DefineVar_uint8_t_1x10)
......@@ -283,7 +283,7 @@ TEST_F(ADIOSInterfaceWriteTest, DefineVar_uint64_t_1x10)
EXPECT_EQ(var_uint64_t.m_Count.size(), 1);
EXPECT_EQ(var_uint64_t.m_Count[0], 10);
EXPECT_EQ(var_uint64_t.m_Name, name);
EXPECT_EQ(var_uint64_t.m_Type, "unsigned long int");
EXPECT_EQ(var_uint64_t.m_ElementSize, 8);
}
// Rinse and repeat for remaining types
......@@ -422,7 +422,7 @@ TEST_F(ADIOSInterfaceWriteTest, DefineVar_int64_t_2x5)
EXPECT_EQ(var_int64_t.m_Count[0], 2);
EXPECT_EQ(var_int64_t.m_Count[1], 5);
EXPECT_EQ(var_int64_t.m_Name, name);
EXPECT_EQ(var_int64_t.m_Type, "long int");
EXPECT_EQ(var_int64_t.m_ElementSize, 8);
}
TEST_F(ADIOSInterfaceWriteTest, DefineVar_uint8_t_2x5)
......@@ -558,7 +558,7 @@ TEST_F(ADIOSInterfaceWriteTest, DefineVar_uint64_t_2x5)
EXPECT_EQ(var_uint64_t.m_Count[0], 2);
EXPECT_EQ(var_uint64_t.m_Count[1], 5);
EXPECT_EQ(var_uint64_t.m_Name, name);
EXPECT_EQ(var_uint64_t.m_Type, "unsigned long int");
EXPECT_EQ(var_uint64_t.m_ElementSize, 8);
}
int main(int argc, char **argv)
......
......@@ -25,6 +25,7 @@ protected:
TEST_F(XMLConfigTest, TwoIOs)
{
std::string configFile = configDir + "/config1.xml";
#ifdef ADIOS2_HAVE_MPI
adios2::ADIOS adios(configFile, MPI_COMM_WORLD, adios2::DebugON);
#else
......
......@@ -9,7 +9,7 @@
<parameter key="BufferGrowthFactor" value="2"/>
</engine>
<transport type="File">
<parameter key="Library" value="POSIX"/>
<parameter key="Library" value="fstream"/>
<parameter key="ProfileUnits" value="Milliseconds"/>
</transport>
</io>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment