ci: enable testing for typed data segment

This commit is contained in:
Jake Hillion 2023-06-29 08:23:06 -07:00 committed by Jake Hillion
parent 046e5f57bb
commit 8e48c6ca52
3 changed files with 18 additions and 1 deletions

View File

@ -21,6 +21,13 @@ workflows:
oid_test_args: "-ftype-graph"
tests_regex: "OidIntegration\\..*"
exclude_regex: ".*inheritance_polymorphic.*"
- test:
name: test-typed-data-segment-gcc
requires:
- build-gcc
oid_test_args: "-ftyped-data-segment"
tests_regex: "OidIntegration\\..*"
exclude_regex: ".*inheritance_polymorphic.*|.*thrift_.*|.*std_vector_del_allocator_a|.*cycles_.*"
- coverage:
name: coverage
requires:
@ -29,6 +36,10 @@ workflows:
name: coverage-type-graph
requires:
- test-type-graph-gcc
- coverage:
name: coverage-typed-data-sgement
requires:
- test-typed-data-segment-gcc
- build:
name: build-clang

View File

@ -163,6 +163,12 @@ std::optional<ObjectIntrospection::FeatureSet> processConfigFile(
if (featuresSet[Feature::TypedDataSegment] &&
!featuresSet[Feature::TypeGraph]) {
if (auto search = featureMap.find(Feature::TypeGraph);
search != featureMap.end() && !search->second) {
LOG(ERROR) << "TypedDataSegment feature requires TypeGraph feature to be "
"enabled but it was explicitly disabled!";
return {};
}
featuresSet[Feature::TypeGraph] = true;
LOG(WARNING) << "TypedDataSegment feature requires TypeGraph feature to be "
"enabled, enabling now.";

View File

@ -44,7 +44,7 @@ definitions = '''
"dynamicSize":0
}]}]'''
[cases.multidim_legacy] # Test for legacy behaviour. Remove with OICodeGen
cli_options = ["-Ftype-graph"]
cli_options = ["-Ftype-graph", "-Ftyped-data-segment"]
param_types = ["const MultiDim&"]
setup = "return {};"
expect_json = '''[{