Commit 6ed8efc6 authored by Armin Rigo's avatar Armin Rigo
Browse files

Really skip the cppyy tests (tested on tannit where gcc is old)

parent fe1599eef041
......@@ -2,12 +2,6 @@ import py, sys
@py.test.mark.tryfirst
def pytest_runtest_setup(item):
if 'linux' in sys.platform:
# tests require minimally std=c++11
cc_info = py.process.cmdexec('gcc -v --help')
if not '-std=c++11' in cc_info:
py.test.skip('skipping tests because gcc does not support C++11')
if py.path.local.sysfind('genreflex') is None:
import pypy.module.cppyy.capi.loadable_capi as lcapi
if 'dummy' in lcapi.reflection_library:
......
import py, sys, subprocess
currpath = py.path.local(__file__).dirpath()
def setup_make(targetname):
if sys.platform == 'win32':
py.test.skip("win32 not supported so far")
import pypy.module.cppyy.capi.loadable_capi as lcapi
popen = subprocess.Popen(["make", targetname], cwd=str(currpath),
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
stdout, _ = popen.communicate()
if popen.returncode:
if '-std=c++11' in stdout:
py.test.skip("gcc does not seem to support -std=c++11")
raise OSError("'make' failed:\n%s" % (stdout,))
import py, os, sys
import subprocess
from pypy.module.cppyy import interp_cppyy, executor
from .support import setup_make
currpath = py.path.local(__file__).dirpath()
test_dct = str(currpath.join("example01Dict.so"))
def setup_module(mod):
if sys.platform == 'win32':
py.test.skip("win32 not supported so far")
import pypy.module.cppyy.capi.loadable_capi as lcapi
err = os.system("cd '%s' && make example01Dict.so" % currpath)
if err:
raise OSError("'make' failed (see stderr)")
setup_make("example01Dict.so")
class TestCPPYYImplementation:
def test01_class_query(self, space):
......
import py, os, sys
from .support import setup_make
currpath = py.path.local(__file__).dirpath()
test_dct = str(currpath.join("datatypesDict.so"))
def setup_module(mod):
if sys.platform == 'win32':
py.test.skip("win32 not supported so far")
err = os.system("cd '%s' && make datatypesDict.so" % currpath)
if err:
raise OSError("'make' failed (see stderr)")
setup_make("datatypesDict.so")
class AppTestDATATYPES:
spaceconfig = dict(usemodules=['cppyy', '_rawffi', 'itertools'])
......
import py, os, sys
from pypy.module.cppyy import interp_cppyy, executor
from .support import setup_make
currpath = py.path.local(__file__).dirpath()
test_dct = str(currpath.join("example01Dict.so"))
def setup_module(mod):
if sys.platform == 'win32':
py.test.skip("win32 not supported so far")
err = os.system("cd '%s' && make example01Dict.so" % currpath)
if err:
raise OSError("'make' failed (see stderr)")
setup_make("example01Dict.so")
class AppTestPYTHONIFY:
spaceconfig = dict(usemodules=['cppyy', '_rawffi', 'itertools'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment