You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
3.0 KiB
125 lines
3.0 KiB
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
java_test_host {
|
|
name: "xsdc-java-tests",
|
|
srcs: [
|
|
"src/**/*.java",
|
|
":xsdc_attr_group_simple_tests",
|
|
":xsdc_attr_enumtype_tests",
|
|
":xsdc_group_tests",
|
|
":xsdc_nested_type_tests",
|
|
":xsdc_predefined_types_tests",
|
|
":xsdc_purchase_simple_tests",
|
|
":xsdc_reference_tests",
|
|
":xsdc_simple_complex_content_tests",
|
|
":xsdc_simple_type_tests",
|
|
],
|
|
test_options: {
|
|
unit_test: true,
|
|
},
|
|
static_libs: [
|
|
"junit",
|
|
"xsdc",
|
|
"stub-annotations",
|
|
"kxml2-2.3.0",
|
|
],
|
|
java_resource_dirs: ["resources"],
|
|
test_suites: ["general-tests"],
|
|
}
|
|
|
|
cc_test_host {
|
|
name: "xsdc-cpp-tests",
|
|
srcs: [
|
|
"simple_type.cpp",
|
|
"tests.cpp",
|
|
"main.cpp",
|
|
],
|
|
test_options: {
|
|
unit_test: true,
|
|
},
|
|
generated_sources: [
|
|
"xsdc_attr_group_simple_tests",
|
|
"xsdc_attr_enumtype_tests",
|
|
"xsdc_group_tests",
|
|
"xsdc_nested_type_tests",
|
|
"xsdc_predefined_types_tests",
|
|
"xsdc_purchase_simple_tests",
|
|
"xsdc_reference_tests",
|
|
"xsdc_simple_complex_content_tests",
|
|
"xsdc_simple_type_tests",
|
|
],
|
|
generated_headers: [
|
|
"xsdc_attr_group_simple_tests",
|
|
"xsdc_attr_enumtype_tests",
|
|
"xsdc_group_tests",
|
|
"xsdc_nested_type_tests",
|
|
"xsdc_predefined_types_tests",
|
|
"xsdc_purchase_simple_tests",
|
|
"xsdc_reference_tests",
|
|
"xsdc_simple_complex_content_tests",
|
|
"xsdc_simple_type_tests",
|
|
],
|
|
header_libs: ["libxsdc-utils"],
|
|
shared_libs: [
|
|
"libbase",
|
|
"libxml2",
|
|
],
|
|
data: ["resources/*.xml"],
|
|
test_suites: ["general-tests"],
|
|
}
|
|
|
|
// These tests verify that enums-only and parser-only
|
|
// modules can be combined later.
|
|
cc_test_host {
|
|
name: "xsdc-cpp-tests-split",
|
|
srcs: [
|
|
"simple_type.cpp",
|
|
"main.cpp",
|
|
],
|
|
test_options: {
|
|
unit_test: true,
|
|
},
|
|
generated_sources: [
|
|
"xsdc_simple_type_tests_enums",
|
|
"xsdc_simple_type_tests_parser",
|
|
],
|
|
generated_headers: [
|
|
"xsdc_simple_type_tests_enums",
|
|
"xsdc_simple_type_tests_parser",
|
|
],
|
|
header_libs: ["libxsdc-utils"],
|
|
shared_libs: [
|
|
"libbase",
|
|
"libxml2",
|
|
],
|
|
data: ["resources/*.xml"],
|
|
test_suites: ["general-tests"],
|
|
}
|
|
|
|
// These tests verify that enums-only module can be used on
|
|
// its own and it does not depend on libxml2.
|
|
cc_test_host {
|
|
name: "xsdc-cpp-tests-enums",
|
|
srcs: [
|
|
"simple_type_enumsonly.cpp",
|
|
"main.cpp",
|
|
],
|
|
test_options: {
|
|
unit_test: true,
|
|
},
|
|
generated_sources: [
|
|
"xsdc_simple_type_tests_enums",
|
|
],
|
|
generated_headers: [
|
|
"xsdc_simple_type_tests_enums",
|
|
],
|
|
header_libs: ["libxsdc-utils"],
|
|
shared_libs: [
|
|
"libbase",
|
|
],
|
|
data: ["resources/*.xml"],
|
|
test_suites: ["general-tests"],
|
|
}
|