skip mcpl-test if it is not enabled

patterned after the dagmc-tests
This required the MCPL_ENABLED symbol to be unmangled
This commit is contained in:
erkn 2022-12-22 12:04:29 +01:00
parent 9865a129c4
commit ff48f53595
2 changed files with 6 additions and 2 deletions

View file

@ -32,6 +32,7 @@ constexpr double EXTSRC_REJECT_FRACTION {0.05};
//==============================================================================
// Global variables
//==============================================================================
extern "C" const bool MCPL_ENABLED;
class Source;

View file

@ -1,10 +1,13 @@
#!/usr/bin/env python
import openmc.lib
import pytest
import glob
import os
from tests.testing_harness import *
pytestmark = pytest.mark.skipif(
not openmc.lib._mcpl_enabled(),
reason="MCPL is not enabled.")
settings1="""<?xml version="1.0"?>
<settings>