summaryrefslogtreecommitdiff
path: root/modules/remote-filesystem/tests/transport.cpp
blob: 05c13a6ee88d25c62ce2ea718120adb752dd7d23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <forstio/test/suite.hpp>
#include "../c++/transport.hpp"

namespace {
namespace sch {
using namespace saw::schema;

using Foo = Struct<
	Member<String, "a">,
	Member<Int64, "b">
>;
}

SAW_TEST("File Remote"){
	using namespace saw;

	remote<rmt::File> file_remote;

	auto eo_addr = file_remote.parse_address("./example_file");
	SAW_EOV_EXPECT(eo_addr, "Couldn't parse file");
	auto& addr = eo_addr.get_value();

	auto eo_dat_srv = file_remote.data_listen({*addr});
	SAW_EOV_EXPECT(eo_dat_srv, "Couldn't setup data server.");
	auto& dat_srv = eo_dat_srv.get_value();

	
}

}