Lines Matching refs:w
275 func(w io.Writer, name, prefix, moduleDir string) {
281 r.writeTestRunner(w, name, "Run"+name+strconv.Itoa(i), shard)
285 fmt.Fprintln(w, "")
286 fmt.Fprintln(w, ".PHONY:", "Run"+name)
287 fmt.Fprintln(w, "Run"+name, ": \\")
289 fmt.Fprintln(w, " ", "Run"+name+strconv.Itoa(i), "\\")
291 fmt.Fprintln(w, "")
293 r.writeTestRunner(w, name, "Run"+name, r.tests)
301 func (r *robolectricTest) writeTestRunner(w io.Writer, module, name string, tests []string) {
302 fmt.Fprintln(w, "")
303 fmt.Fprintln(w, "include $(CLEAR_VARS)")
304 fmt.Fprintln(w, "LOCAL_MODULE :=", name)
305 fmt.Fprintln(w, "LOCAL_JAVA_LIBRARIES :=", module)
306 fmt.Fprintln(w, "LOCAL_JAVA_LIBRARIES += ", strings.Join(r.libs, " "))
307 fmt.Fprintln(w, "LOCAL_TEST_PACKAGE :=", String(r.robolectricProperties.Instrumentation_for))
308 fmt.Fprintln(w, "LOCAL_INSTRUMENT_SRCJARS :=", r.roboSrcJar.String())
309 fmt.Fprintln(w, "LOCAL_ROBOTEST_FILES :=", strings.Join(tests, " "))
311 fmt.Fprintln(w, "LOCAL_ROBOTEST_TIMEOUT :=", *t)
314 fmt.Fprintf(w, "-include prebuilts/misc/common/robolectric/%s/run_robotests.mk\n", v)
316 fmt.Fprintln(w, "-include external/robolectric-shadows/run_robotests.mk")