[ObjC] Test pddm expansion

Testing both the support and the sources expanded.

PiperOrigin-RevId: 508471876
pull/11896/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent b977cf5c7e
commit 26dae8d94a
  1. 28
      objectivec/BUILD.bazel
  2. 9
      objectivec/DevTools/sources_pddm_expansion_test.sh

@ -121,6 +121,34 @@ sh_test(
],
)
# -------------------------------------------------------------------
# Validation of pddm expansion.
py_binary(
name = "pddm",
srcs = ["DevTools/pddm.py"],
)
py_test(
name = "pddm_tests",
size = "small",
srcs = [
"DevTools/pddm.py",
"DevTools/pddm_tests.py",
],
)
sh_test(
name = "sources_pddm_expansion_test",
size = "small",
srcs = ["DevTools/sources_pddm_expansion_test.sh"],
data = [":pddm"] + glob([
"**/*.h",
"**/*.m",
"**/*.pddm",
]),
)
################################################################################
# Distribution files
################################################################################

@ -0,0 +1,9 @@
#!/bin/bash
${TEST_SRCDIR}/google3/third_party/protobuf/objectivec/pddm \
--dry-run \
${TEST_SRCDIR}/google3/third_party/protobuf/objectivec/*.[hm] \
${TEST_SRCDIR}/google3/third_party/protobuf/objectivec/Tests/*.[hm] \
|| die "Update by running: objectivec/DevTools/pddm.py objectivec/*.[hm] objectivec/Tests/*.[hm]"
echo "PASS"
Loading…
Cancel
Save