Skip to content

Commit a09b658

Browse files
committed
#142: tests: add new test for data starting at phase 1
1 parent 08e0fd5 commit a09b658

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"metadata":{"type":"LBDatafile","rank":0},"phases":[{"id":1,"tasks":[{"entity":{"home":0,"id":0,"migratable":true,"type":"object"},"node":0,"resource":"cpu","time":2.0,"user_defined":{"shared_id":0,"shared_bytes":10000.0,"home_rank":0}},{"entity":{"home":0,"id":1,"migratable":true,"type":"object"},"node":0,"resource":"cpu","time":3.5,"user_defined":{"shared_id":0,"shared_bytes":10000.0,"home_rank":0}}],"communications":[{"type":"SendRecv","to":{"type":"object","id":2},"messages":1,"from":{"type":"object","id":0},"bytes":10000.0},{"type":"SendRecv","to":{"type":"object","id":2},"messages":1,"from":{"type":"object","id":1},"bytes":15000.0},{"type":"SendRecv","to":{"type":"object","id":1},"messages":1,"from":{"type":"object","id":0},"bytes":25000.0}]}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"metadata":{"type":"LBDatafile","rank":1},"phases":[{"id":1,"tasks":[{"entity":{"home":1,"id":2,"migratable":true,"type":"object"},"node":1,"resource":"cpu","time":5.0,"user_defined":{"shared_id":1,"shared_bytes":15000.0,"home_rank":1}}],"communications":[{"type":"SendRecv","to":{"type":"object","id":1},"messages":1,"from":{"type":"object","id":2},"bytes":20000.0}]}]}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
input:
2+
directory: data/ccm_example_phase_1
3+
n_ranks: 2
4+
5+
viz:
6+
x_ranks: 2
7+
y_ranks: 1
8+
z_ranks: 1
9+
object_jitter: 0.0
10+
rank_qoi: load
11+
object_qoi: shared_id
12+
save_meshes: true
13+
save_pngs: true
14+
force_continuous_object_qoi: true
15+
16+
output:
17+
directory: output/tests
18+
file_stem: ccm_example

tests/unit/render/test_render.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ TEST_P(RenderTest, test_render_from_config_with_png) {
341341
INSTANTIATE_TEST_SUITE_P(
342342
RenderTests,
343343
RenderTest,
344-
::testing::Values<std::string>("conf.yaml", "ccm-example.yaml"),
344+
::testing::Values<std::string>("conf.yaml", "ccm-example.yaml", "ccm-example_phase_1.yaml"),
345345
[](const ::testing::TestParamInfo<std::string>& in_info) {
346346
// test suffix as slug
347347
auto suffix = std::regex_replace(in_info.param, std::regex("\\.yaml"), "");

0 commit comments

Comments
 (0)