Skip to content

Commit

Permalink
clang_myrial_tests: create intermediate outputs in the c_test_environ…
Browse files Browse the repository at this point in the history
…ment_directory
  • Loading branch information
dhalperi committed Sep 6, 2014
1 parent 0f75744 commit fe5b593
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions c_test_environment/clang_myrial_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@

class MyriaLClangTest(MyriaLPlatformTestHarness, MyriaLPlatformTests):
def check(self, query, name):
plan = self.get_physical_plan(query, target_alg=CCAlgebra())
physical_dot = viz.operator_to_dot(plan)
with open("%s.physical.dot"%(name), 'w') as dwf:
dwf.write(physical_dot)
with Chdir("c_test_environment") as d:
plan = self.get_physical_plan(query, target_alg=CCAlgebra())
physical_dot = viz.operator_to_dot(plan)
with open("%s.physical.dot"%(name), 'w') as dwf:
dwf.write(physical_dot)

# generate code in the target language
code = compile(plan)
# generate code in the target language
code = compile(plan)

with Chdir("c_test_environment") as d:
fname = "{name}.cpp".format(name=name)
if os.path.exists(fname):
os.remove(fname)
Expand Down

0 comments on commit fe5b593

Please sign in to comment.