Skip to content

Commit

Permalink
Test APPEND mode in all backends for groupbased Series
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Jun 21, 2021
1 parent c358f31 commit 966b1b2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions include/openPMD/openPMD.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ namespace openPMD {}
// IWYU pragma: begin_exports
#include "openPMD/Dataset.hpp"
#include "openPMD/Datatype.hpp"
#include "openPMD/Error.hpp"
#include "openPMD/IterationEncoding.hpp"
#include "openPMD/Iteration.hpp"
#include "openPMD/Mesh.hpp"
Expand Down
17 changes: 13 additions & 4 deletions test/SerialIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3980,8 +3980,17 @@ void append_mode( std::string const & extension )
{
Series write(
"../samples/append." + extension, Access::APPEND, jsonConfig );
if( write.backend() == "ADIOS1" )
{
REQUIRE_THROWS_AS(
write.flush(), error::OperationUnsupportedInBackend );
// destructor will be noisy now
return;
}

writeSomeIterations(
write.writeIterations(), std::vector< uint64_t >{ 2, 3 } );
write.flush();
}
{
Series read( "../samples/append." + extension, Access::READ_ONLY );
Expand All @@ -3991,8 +4000,8 @@ void append_mode( std::string const & extension )

TEST_CASE( "append_mode", "[serial]" )
{
// @todo test for file-based appending
append_mode( "json" );
// append_mode( "bp" );
//append_mode( "h5" );
for( auto const & t : testedFileExtensions() )
{
append_mode( t );
}
}

0 comments on commit 966b1b2

Please sign in to comment.