# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from . import integration from .. import helpers from intel import proc, topology import os import pytest import tempfile import subprocess # Physical CPU cores on the first socket. cores = topology.parse(topology.lscpu()).get_socket(0).cores proc_env_ok = { proc.ENV_PROC_FS: helpers.procfs_dir("ok"), topology.ENV_LSCPU_SYSFS: helpers.sysfs_dir("xeon_d") } def test_cmk_init(): args = [ "init", "--conf-dir={}".format(os.path.join(tempfile.mkdtemp(), "init")) ] helpers.execute(integration.cmk(), args, proc_env_ok)
# distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from . import integration from .. import helpers from intel import proc, topology import os import pytest import tempfile import subprocess # Physical CPU cores on the first socket. cores = topology.parse(topology.lscpu())[0].cores proc_env_ok = { proc.ENV_PROC_FS: helpers.procfs_dir("ok"), topology.ENV_LSCPU_SYSFS: helpers.sysfs_dir("xeon_d") } def test_cmk_init(): args = ["init", "--conf-dir={}".format(os.path.join(tempfile.mkdtemp(), "init"))] helpers.execute(integration.cmk(), args, proc_env_ok) def test_cmk_init_exists():