Skip to content

Commit

Permalink
tests: Use "cxx_compiler: [vs2022]" on Windows
Browse files Browse the repository at this point in the history
refs:
- conda-forge/vc-feedstock#78

Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
  • Loading branch information
mbargull committed Jun 1, 2024
1 parent 462ac10 commit 51d73f5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/test_boa_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@
tests_dir = pathlib.Path(__file__).parent / "tests-v2"


def test_build_recipes():
def test_build_recipes(tmp_path: Path):
recipes = [str(x) for x in recipes_dir.iterdir() if x.is_dir()]
cbc_yaml = tmp_path / "conda_build_config.yaml"
cbc_yaml.write_text("cxx_compiler: # [win]\n- vs2022 # [win]\n")
for recipe in recipes:
check_call(["boa", "build", recipe])
check_call(["boa", "build", "-m", str(cbc_yaml), recipe])


def test_build_notest():
def test_build_notest(tmp_path: Path):
recipes = [str(x) for x in recipes_dir.iterdir() if x.is_dir()]
recipe = recipes[0]
check_call(["boa", "build", recipe, "--no-test"])
cbc_yaml = tmp_path / "conda_build_config.yaml"
cbc_yaml.write_text("cxx_compiler: # [win]\n- vs2022 # [win]\n")
check_call(["boa", "build", "-m", str(cbc_yaml), recipe, "--no-test"])


def test_run_exports(tmp_path: Path):
Expand Down

0 comments on commit 51d73f5

Please sign in to comment.