Skip to content
Snippets Groups Projects
Commit 5bb15e5b authored by JohannesGaessler's avatar JohannesGaessler
Browse files

Fixed NLOJet++ distcheck paths

parent 0412907f
No related branches found
No related tags found
No related merge requests found
Showing
with 11 additions and 8 deletions
......@@ -15,7 +15,7 @@ AUTOMAKE_OPTIONS = gnu
# perl script targets to check the package (distributed, but not installed)
#
dist_check_SCRIPTS = fnlo-nj-wrmtest.pl fnlo-nj-lotest.pl fnlo-nj-nlotest.pl fnlo-compare-tables.py
TESTS_ENVIRONMENT = LIBDIR=$(libdir) PYTHONPATH=$(shell fnlo-tk-config --pythondir)
TESTS_ENVIRONMENT = LIBDIR=$(shell fnlo-tk-config --libdir) PYTHONPATH=$(shell fnlo-tk-config --pythondir)
TESTS = $(dist_check_SCRIPTS)
# Additional clean up for check targets
......
......@@ -10,6 +10,7 @@ except ModuleNotFoundError:
sys.exit(77)
LIBDIR = os.environ["LIBDIR"]
DATADIR = f"{os.path.dirname(os.path.abspath(__file__))}/../data/check/"
TYPES = ["fix", "flex"]
NAMES = ["NodesPerBin", "NodeDensity"]
......@@ -18,13 +19,13 @@ SEEDS = [1000, 2000]
# fnlo.SetGlobalVerbosity(fnlo.DEBUG)
os.system("rm -rf output")
os.system("ln -s input/InclusiveNJets_InclusiveJets_fix.wrm")
os.system("ln -s input/InclusiveNJets_InclusiveJets_flex.wrm")
os.system(f"ln -sf {DATADIR}InclusiveNJets_InclusiveJets_fix.wrm")
os.system(f"ln -sf {DATADIR}InclusiveNJets_InclusiveJets_flex.wrm")
def generate_table(vartype: str, name: str, seed: int):
os.system(f"ln -sf input/{vartype}_{name}.str InclusiveNJets.str")
print(f"Asserting that steering file InclusiveNJets.str exists")
os.system(f"ln -sf {DATADIR}{vartype}_{name}.str InclusiveNJets.str")
print("Asserting that steering file InclusiveNJets.str exists")
assert os.path.exists("InclusiveNJets.str")
os.system(
"nlojet++ "
......
......@@ -69,7 +69,7 @@ $ret = system("$cmd");
if ( $ret ) {die "fnlo-tk-nlotest: Ungzipping test table ${tabgz} failed: $ret, aborted!\n";}
# Determine difference to default LO table
$cmd = "./compare-table-helper.py ./${tabl} output/${tabl} > lodiff.log";
$cmd = "${src}/../data/check/compare-table-helper.py ./${tabl} output/${tabl} > lodiff.log";
print "Executing command: $cmd\n";
$ret = system("$cmd");
if ( $ret == 77 ) {
......
......@@ -69,7 +69,7 @@ $ret = system("$cmd");
if ( $ret ) {die "fnlo-tk-nlotest: Ungzipping test table ${tabgz} failed: $ret, aborted!\n";}
# Determine difference to default NLO table
$cmd = "./compare-table-helper.py ./${tabn} output/${tabn} > lodiff.log";
$cmd = "${src}/../data/check/compare-table-helper.py ./${tabn} output/${tabn} > lodiff.log";
print "Executing command: $cmd\n";
$ret = system("$cmd");
if ( $ret == 77 ) {
......
......@@ -15,7 +15,9 @@ AUTOMAKE_OPTIONS = gnu
# warmup.txt --> fnr0001midpHT_I723509_v23_fix_InclusiveNJets_warmup.txt
# born.tab.gz --> fnr0001midpHT_I723509_v23_fix-hhc-born-2jet.tab.gz
# nlo.tab.gz --> fnr0001midpHT_I723509_v23_fix-hhc-nlo-2jet.tab.gz
dist_check_DATA = steer.str warmup.txt born.tab.gz nlo.tab.gz
dist_check_DATA = steer.str warmup.txt born.tab.gz nlo.tab.gz compare-table-helper.py \
fix_NodeDensity.str fix_NodesPerBin.str InclusiveNJets_InclusiveJets_fix.wrm \
flex_NodeDensity.str flex_NodesPerBin.str InclusiveNJets_InclusiveJets_flex.wrm
# Files that are required to build the project but that can be
# recreated IF the necessary autotools etc. are available by:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment