Skip to content

Commit 26dae8d

Browse files
[ObjC] Test pddm expansion
Testing both the support and the sources expanded. PiperOrigin-RevId: 508471876
1 parent b977cf5 commit 26dae8d

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

objectivec/BUILD.bazel

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,34 @@ sh_test(
121121
],
122122
)
123123

124+
# -------------------------------------------------------------------
125+
# Validation of pddm expansion.
126+
127+
py_binary(
128+
name = "pddm",
129+
srcs = ["DevTools/pddm.py"],
130+
)
131+
132+
py_test(
133+
name = "pddm_tests",
134+
size = "small",
135+
srcs = [
136+
"DevTools/pddm.py",
137+
"DevTools/pddm_tests.py",
138+
],
139+
)
140+
141+
sh_test(
142+
name = "sources_pddm_expansion_test",
143+
size = "small",
144+
srcs = ["DevTools/sources_pddm_expansion_test.sh"],
145+
data = [":pddm"] + glob([
146+
"**/*.h",
147+
"**/*.m",
148+
"**/*.pddm",
149+
]),
150+
)
151+
124152
################################################################################
125153
# Distribution files
126154
################################################################################
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
${TEST_SRCDIR}/google3/third_party/protobuf/objectivec/pddm \
4+
--dry-run \
5+
${TEST_SRCDIR}/google3/third_party/protobuf/objectivec/*.[hm] \
6+
${TEST_SRCDIR}/google3/third_party/protobuf/objectivec/Tests/*.[hm] \
7+
|| die "Update by running: objectivec/DevTools/pddm.py objectivec/*.[hm] objectivec/Tests/*.[hm]"
8+
9+
echo "PASS"

0 commit comments

Comments
 (0)