mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-21 04:24:37 +02:00
24 lines
530 B
C++
24 lines
530 B
C++
|
|
#include "WriterH5Writer.hpp"
|
|
#include "gtest/gtest.h"
|
|
|
|
extern "C" {
|
|
#include <bitshuffle/bshuf_h5filter.h>
|
|
}
|
|
|
|
using namespace core_buffer;
|
|
|
|
TEST(WriterH5Writer, basic_interaction)
|
|
{
|
|
size_t n_modules = 2;
|
|
size_t n_frames = 5;
|
|
|
|
// auto data = make_unique<char[]>(n_modules*MODULE_N_BYTES);
|
|
// auto metadata = make_shared<ImageMetadata>();
|
|
//
|
|
// WriterH5Writer writer("ignore.h5", n_frames, n_modules);
|
|
// writer.write(metadata.get(), data.get());
|
|
// writer.close_file();
|
|
|
|
// TODO: Write some test.
|
|
} |