"""
"""
import subprocess
import pyopencl as cl
import pytest


@pytest.mark.parametrize("cl_filepath", [
    "test/generated/struct_initializer-device.cl",
    pytest.mark.xfail("test/generated/phiaddressspace-device.cl"),
    pytest.mark.xfail("test/generated/pointerpointer-device.cl"),
    pytest.mark.xfail("test/eigen/generated/test_cuda_elementwise_small-device.cl"),
])
def test_compile(context, cl_filepath):
    print(subprocess.check_output([
        'make',
        cl_filepath
    ]).decode('utf-8'))

    with open(cl_filepath, 'r') as f:
        sourcecode = f.read()

    print('compiling cl for %s ...' % cl_filepath)
    cl.Program(context, sourcecode).build()
    print('  ... %s compiled ok' % cl_filepath)

"""
"""
import subprocess
import pyopencl as cl
import pytest


@pytest.mark.parametrize("cl_filepath", [
    "test/generated/struct_initializer-device.cl",
    pytest.mark.xfail("test/generated/phiaddressspace-device.cl"),
    pytest.mark.xfail("test/generated/pointerpointer-device.cl"),
    "test/eigen/generated/test_cuda_elementwise_small-device.cl",
])
def test_compile(context, cl_filepath):
    print(subprocess.check_output([
        'make',
        cl_filepath
    ]).decode('utf-8'))

    with open(cl_filepath, 'r') as f:
        sourcecode = f.read()

    print('compiling cl for %s ...' % cl_filepath)
    cl.Program(context, sourcecode).build()
    print('  ... %s compiled ok' % cl_filepath)

remove an xfail (since passing now)