only: more tests
This commit is contained in:
parent
b441b6cf13
commit
3434bd9f9e
|
@ -15,7 +15,7 @@ public class LiveDataProcessor {
|
|||
|
||||
private final static String header = "// generated by gen_live_documentation.sh / LiveDataProcessor.java\n";
|
||||
|
||||
private final static String enumContentFileName = "console/binary/generated/live_data_ids.h";
|
||||
public final static String enumContentFileName = "console/binary/generated/live_data_ids.h";
|
||||
|
||||
private final static String tsOutputsDestination = "console/binary/";
|
||||
public static final String GAUGES = tsOutputsDestination + File.separator + "generated/gauges.ini";
|
||||
|
|
|
@ -96,5 +96,16 @@ public class LiveDataProcessorTest {
|
|||
|
||||
captor.assertOutput("\tgaugeCategory = \"cate\"\n" +
|
||||
"tempC0Gauge = tempC0,\"WBO: Temperature0\", \"C\", 500.0,1000.0, 500.0,1000.0, 500.0,1000.0, 0,0\n", LiveDataProcessor.GAUGES);
|
||||
|
||||
captor.assertOutput("// generated by gen_live_documentation.sh / LiveDataProcessor.java\n" +
|
||||
"#pragma once\n" +
|
||||
"\n" +
|
||||
"// this generated C header is mostly used as input for java code generation\n" +
|
||||
"typedef enum {\n" +
|
||||
"LDS_wbo_channels0,\n" +
|
||||
"LDS_output_channels,\n" +
|
||||
"} live_data_e;\n" +
|
||||
"#define WBO_CHANNELS_BASE_ADDRESS 0\n" +
|
||||
"#define OUTPUT_CHANNELS_BASE_ADDRESS 12\n", LiveDataProcessor.enumContentFileName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue