Skip to content

Commit

Permalink
broken test in cmake 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded committed May 5, 2019
1 parent fa5489f commit c6e5f37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ install:
- set PATH=%PATH%;%PYTHON%/Scripts/
- pip.exe install conan nose
- conan install cmake_installer/3.7.2@conan/stable -g=virtualrunenv
- activate_run.bat

test_script:
- nosetests .
- activate_run.bat
- nosetests . -A "not cmake39"
- deactivate_run.bat
- nosetests . -A "cmake39"
3 changes: 3 additions & 0 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import platform
import shutil

from nose.plugins.attrib import attr

def save(filename, content):
try:
Expand Down Expand Up @@ -305,6 +306,7 @@ def test_vs_toolset(self):
cmd = os.sep.join([".", "bin", "main"])
run(cmd)

@attr("cmake39")
def test_vs_toolset_host_x64(self):
if platform.system() != "Windows":
return
Expand All @@ -325,6 +327,7 @@ def test_vs_toolset_host_x64(self):

os.makedirs("build")
os.chdir("build")
# Only works cmake>=3.9
run("cmake .. %s -T v140,host=x64 -DCMAKE_BUILD_TYPE=Release" % (generator))
run("cmake --build . --config Release")
cmd = os.sep.join([".", "bin", "main"])
Expand Down

0 comments on commit c6e5f37

Please sign in to comment.