Skip to content

Commit

Permalink
fix test package
Browse files Browse the repository at this point in the history
  • Loading branch information
jcar87 committed Nov 4, 2024
1 parent b5230b1 commit 3ea31c7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions recipes/cppfront/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@

class TestPackageConan(ConanFile):
settings = "os", "arch", "compiler", "build_type"
generators = "VirtualBuildEnv"
test_type = "explicit"
generators = "VirtualRunEnv"

def layout(self):
basic_layout(self)

def build_requirements(self):
self.tool_requires(self.tested_reference_str)
def requirements(self):
self.requires(self.tested_reference_str)

def build(self):
copy(self, "pure2-hello.cpp2", src=self.recipe_folder, dst=self.build_folder)
self.run("cppfront {}".format(os.path.join(self.build_folder, "pure2-hello.cpp2")))
self.run("cppfront {}".format(os.path.join(self.build_folder, "pure2-hello.cpp2")), env="conanrun")

def test(self):
self.run("cppfront -h")
Expand Down

0 comments on commit 3ea31c7

Please sign in to comment.