Lines Matching defs:tmpdir

16     def run_intercept(tmpdir, args):
17 result = os.path.join(tmpdir, "cdb.json")
18 make = make_args(tmpdir) + args
29 with libear.TemporaryDirectory() as tmpdir:
30 result = self.run_intercept(tmpdir, ["build_regular"])
35 with libear.TemporaryDirectory() as tmpdir:
36 result = os.path.join(tmpdir, "cdb.json")
37 make = make_args(tmpdir) + ["build_regular"]
46 with libear.TemporaryDirectory() as tmpdir:
47 result = self.run_intercept(tmpdir, ["-j", "4", "build_regular"])
53 with libear.TemporaryDirectory() as tmpdir:
54 result = os.path.join(tmpdir, "cdb.json")
55 make = make_args(tmpdir) + ["CC=clang", "build_regular"]
61 with libear.TemporaryDirectory() as tmpdir:
62 result = self.run_intercept(tmpdir, ["build_all_in_one"])
67 with libear.TemporaryDirectory() as tmpdir:
68 result = os.path.join(tmpdir, "cdb.json")
69 make = make_args(tmpdir) + ["build_broken"]
77 def run_intercept(tmpdir, target):
78 result = os.path.join(tmpdir, "cdb.json")
79 make = make_args(tmpdir) + [target]
83 with libear.TemporaryDirectory() as tmpdir:
84 exitcode = self.run_intercept(tmpdir, "build_clean")
88 with libear.TemporaryDirectory() as tmpdir:
89 exitcode = self.run_intercept(tmpdir, "build_broken")
95 def run_intercept(tmpdir, target, args):
96 result = os.path.join(tmpdir, "cdb.json")
97 make = make_args(tmpdir) + [target]
108 with libear.TemporaryDirectory() as tmpdir:
109 result = self.run_intercept(tmpdir, "build_clean", [])
111 result = self.run_intercept(tmpdir, "build_regular", [])
116 with libear.TemporaryDirectory() as tmpdir:
117 result = self.run_intercept(tmpdir, "build_clean", [])
119 result = self.run_intercept(tmpdir, "build_regular", ["--append"])
126 def run_intercept(tmpdir, command):
127 result = os.path.join(tmpdir, "cdb.json")
128 silent_check_call(["intercept-build", "--cdb", result] + command, cwd=tmpdir)
134 with libear.TemporaryDirectory() as tmpdir:
135 filename = os.path.join(tmpdir, "test.c")
139 cdb = self.run_intercept(tmpdir, cmd)
149 with libear.TemporaryDirectory() as tmpdir:
150 filename = os.path.join(tmpdir, command[-1])
153 cdb = self.run_intercept(tmpdir, cmd)