Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8309788
Makefile.am
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
11 KB
Subscribers
None
Makefile.am
View Options
## Makefile.am -- Makefile for executable WHIZARD test scripts
##
## Process this file with automake to produce Makefile.in
##
########################################################################
#
# Copyright (C) 1999-2013 by
# Wolfgang Kilian <kilian@physik.uni-siegen.de>
# Thorsten Ohl <ohl@physik.uni-wuerzburg.de>
# Juergen Reuter <juergen.reuter@desy.de>
# with contributions from
# Christian Speckner <cnspeckn@googlemail.com>
#
# WHIZARD is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# WHIZARD is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
########################################################################
WHIZARD_DRIVER = run_whizard.sh
UNIT_TESTS = \
analysis.run \
expressions.run \
beams.run \
polarizations.run \
md5.run \
lexers.run \
parser.run \
color.run \
os_interface.run \
evaluators.run \
formats.run \
sorting.run \
state_matrices.run \
interactions.run \
xml.run \
sm_qcd.run \
models.run \
beam_structures.run \
sf_aux.run \
sf_mappings.run \
sf_base.run \
sf_pdf_builtin.run \
sf_isr.run \
sf_epa.run \
sf_ewa.run \
phs_base.run \
phs_single.run \
phs_wood.run \
rng_base.run \
rng_tao.run \
selectors.run \
mci_base.run \
mci_midpoint.run \
mci_vamp.run \
prclib_interfaces.run \
particle_specifiers.run \
process_libraries.run \
prclib_stacks.run \
slha_interface.run \
prc_test.run \
subevt_expr.run \
processes.run \
process_stacks.run \
cascades.run \
event_transforms.run \
decays.run \
events.run \
eio_data.run \
eio_base.run \
eio_raw.run \
eio_lhef.run \
eio_ascii.run \
eio_weights.run \
iterations.run \
rt_data.run \
dispatch.run \
process_configurations.run \
event_streams.run
UNIT_TESTS_REQ_GAMELAN = \
commands.run
UNIT_TESTS_REQ_HEPMC = \
eio_hepmc.run
UNIT_TESTS_REQ_STDHEP = \
eio_stdhep.run
UNIT_TESTS_REQ_OCAML = \
prc_omega.run \
compilations.run \
integrations.run \
simulations.run
TESTS_DEFAULT = \
empty.run \
structure_1.run \
structure_2.run \
testproc_1.run \
testproc_2.run \
testproc_3.run \
testproc_4.run \
testproc_5.run \
testproc_6.run \
testproc_7.run \
testproc_8.run
### Tests not yet working ###
# vars.run \
# errors.run \
# extpar.run \
# helicity.run \
# susyhit.run \
### Rename model -> models, old models not yet running
# model(s).run \
### This test depends on several routines not yet reimplemented
# particles.run \
### JRR: WK please check (obsolete?)
# phs_forests.run
XFAIL_TESTS_DEFAULT = \
errors.run
### JRR: WK please check: obsolete?
#hard_interactions.run: test_me.run.log
TESTS_USER_STRFUN = \
user_strfun.run
TESTS_REQ_OCAML = \
libraries_1.run \
libraries_2.run \
libraries_3.run \
defaultcuts.run \
cuts.run \
qedtest_1.run \
qedtest_2.run \
qedtest_3.run \
qedtest_4.run \
qedtest_5.run \
qedtest_6.run \
qedtest_7.run \
qcdtest_1.run \
qcdtest_2.run \
qcdtest_3.run \
qcdtest_4.run \
qcdtest_5.run \
reweight_1.run \
reweight_2.run \
reweight_3.run \
reweight_4.run \
analyze_1.run \
alphas.run \
lhef_1.run \
lhef_2.run \
lhef_3.run \
lhef_4.run \
lhef_5.run \
smtest_1.run \
smtest_2.run \
smtest_3.run
### Not yet working
# libs.run \
# colors.run \
# ilc.run \
# user_cuts.run \
# restrictions.run \
# $(TESTS_USER_STRFUN)
### Rename model -> models, old models not yet running
# model(s).run
#### Still to be checked
# smtest.run \
# decays.run \
# mssmtest.run \
# pdf_builtin.run
XFAIL_TESTS_REQ_OCAML =
TESTS_REQ_HEPMC = \
hepmc_1.run \
hepmc_2.run \
hepmc_3.run
UNIT_TESTS_REQ_LHAPDF = \
sf_lhapdf.run
TESTS_REQ_LHAPDF = #\
lhapdf.run
XFAIL_TESTS_REQ_LHAPDF =
TESTS_REQ_STDHEP = \
stdhep_1.run \
stdhep_2.run
XFAIL_TESTS_REQ_STDHEP =
TESTS_STATIC = #\
static.run
XFAIL_TESTS_STATIC =
TESTS_REQ_SHOWER = #\
fsr_shower.run
# isr_shower.run
XFAIL_TESTS_REQ_SHOWER =
TESTS_EXTENDED = \
sm_ext.run \
mssm_ext.run \
nmssm_ext.run
XFAIL_TESTS_EXTENDED =
TESTS_REQ_GAMELAN = #\
$(TESTS_REQ_OCAML) \
$(TESTS_EXTENDED)
#test_me.run
### JRR: WK please check: Do we really want to keep this test?
# plain.run
TEST_DRIVERS_RUN = \
$(UNIT_TESTS) \
$(UNIT_TESTS_REQ_GAMELAN) \
$(UNIT_TESTS_REQ_HEPMC) \
$(UNIT_TESTS_REQ_LHAPDF) \
$(UNIT_TESTS_REQ_STDHEP) \
$(UNIT_TESTS_REQ_OCAML) \
$(TESTS_DEFAULT) \
$(TESTS_REQ_OCAML) \
$(TESTS_REQ_LHAPDF) \
$(TESTS_REQ_HEPMC) \
$(TESTS_REQ_STDHEP) \
$(TESTS_REQ_SHOWER) \
$(TESTS_STATIC) \
$(TESTS_EXTENDED)
TEST_DRIVERS_SH = $(TEST_DRIVERS_RUN:.run=.sh)
EXTRA_DIST = $(TEST_DRIVERS_SH)
########################################################################
TESTS =
XFAIL_TESTS =
UNIT_TESTS += $(UNIT_TESTS_REQ_GAMELAN)
UNIT_TESTS += $(UNIT_TESTS_REQ_HEPMC)
UNIT_TESTS += $(UNIT_TESTS_REQ_LHAPDF)
UNIT_TESTS += $(UNIT_TESTS_REQ_STDHEP)
UNIT_TESTS += $(UNIT_TESTS_REQ_OCAML)
# Temporarily, only the new unit tests are executed
if DEFAULT_CHECKS
TESTS += $(UNIT_TESTS)
endif DEFAULT_CHECKS
# Execute those as well
if DEFAULT_CHECKS
TESTS += $(TESTS_DEFAULT)
#XFAIL_TESTS += $(XFAIL_TESTS_DEFAULT)
endif DEFAULT_CHECKS
TESTS += $(TESTS_REQ_OCAML)
XFAIL_TESTS += $(XFAIL_TESTS_REQ_OCAML)
TESTS += $(TESTS_REQ_HEPMC)
XFAIL_TESTS += $(XFAIL_TESTS_REQ_HEPMC)
TESTS += $(TESTS_REQ_LHAPDF)
XFAIL_TESTS += $(XFAIL_TESTS_REQ_LHAPDF)
TESTS += $(TESTS_REQ_STDHEP)
XFAIL_TESTS += $(XFAIL_TESTS_REQ_STDHEP)
TESTS += $(TESTS_REQ_SHOWER)
XFAIL_TESTS += $(XFAIL_TESTS_REQ_SHOWER)
TESTS += $(TESTS_STATIC)
XFAIL_TESTS += $(XFAIL_TESTS_STATIC)
if EXT_NUM_CHECKS
TESTS += $(TESTS_EXTENDED)
XFAIL_TESTS += $(XFAIL_TESTS_EXTENDED)
endif EXT_NUM_CHECKS
mssm_ext.run: $(EXTENDED_MSSM_TEST_DRIVERS)
echo '#! /bin/sh' >$@
for driver in $(EXTENDED_MSSM_TEST_DRIVERS); do \
echo ./$$driver; \
done >>$@
chmod +x $@
nmssm_ext.run: $(EXTENDED_NMSSM_TEST_DRIVERS)
echo '#! /bin/sh' >$@
for driver in $(EXTENDED_NMSSM_TEST_DRIVERS); do \
echo ./$$driver; \
done >>$@
chmod +x $@
EXTENDED_MSSM_TEST_DRIVERS = \
mssm_ext-ee.run mssm_ext-ee2.run \
mssm_ext-en.run mssm_ext-tn.run \
mssm_ext-uu.run mssm_ext-uu2.run mssm_ext-uuckm.run \
mssm_ext-dd.run mssm_ext-dd2.run mssm_ext-ddckm.run \
mssm_ext-bb.run mssm_ext-bt.run mssm_ext-tt.run \
mssm_ext-ug.run mssm_ext-dg.run \
mssm_ext-aa.run mssm_ext-wa.run mssm_ext-za.run \
mssm_ext-ww.run mssm_ext-wz.run mssm_ext-zz.run \
mssm_ext-gg.run mssm_ext-ga.run mssm_ext-gw.run mssm_ext-gz.run
EXTENDED_NMSSM_TEST_DRIVERS = \
nmssm_ext-aa.run nmssm_ext-bb1.run nmssm_ext-bb2.run \
nmssm_ext-bt.run nmssm_ext-dd1.run \
nmssm_ext-dd2.run nmssm_ext-ee1.run \
nmssm_ext-ee2.run nmssm_ext-en.run \
nmssm_ext-ga.run nmssm_ext-gg.run \
nmssm_ext-gw.run nmssm_ext-gz.run \
nmssm_ext-qg.run nmssm_ext-tn.run \
nmssm_ext-tt1.run nmssm_ext-tt2.run \
nmssm_ext-uu1.run nmssm_ext-uu2.run \
nmssm_ext-wa.run nmssm_ext-ww1.run nmssm_ext-ww2.run \
nmssm_ext-wz.run nmssm_ext-za.run
# VPATH = $(top_builddir)/share/tests:$(top_srcdir)/share/tests:$(srcdir)
VPATH = $(srcdir)
SUFFIXES = .sh .run
.sh.run:
@rm -f $@
@if test -f $(top_builddir)/share/tests/$*.sin; then \
$(SED) 's|@script@|$(top_builddir)/share/tests/$*|g' $< > $@; \
elif test -f $(top_srcdir)/share/tests/$*.sin; then \
$(SED) 's|@script@|$(top_srcdir)/share/tests/$*|g' $< > $@; \
else \
echo "$*.sin not found!" 1>&2; \
exit 2; \
fi
chmod +x $@
structure_2.run: structure_2_inc.sin
structure_2_inc.sin: $(top_builddir)/share/tests/structure_2_inc.sin
cp $< $@
testproc_3.run: testproc_3.phs
testproc_3.phs: $(top_builddir)/share/tests/testproc_3.phs
cp $< $@
plain.run: TEST.mdl
susyhit.run: susyhit.in
user_cuts.run: user_cuts.f90
user_strfun.run: user_strfun.f90
user_cuts.f90: $(top_builddir)/share/tests/user_cuts.f90
cp $< $@
user_strfun.f90: $(top_builddir)/share/tests/user_strfun.f90
cp $< $@
TEST.mdl: $(top_srcdir)/share/tests/TEST.mdl
cp $< $@
WT_OMEGA_CACHE_SUFFIX=vertices
WT_OCAML_NATIVE_EXT=opt
if OCAML_AVAILABLE
qedtest_1.run qedtest_2.run qedtest_3.run qedtest_4.run qedtest_5.run qedtest_6.run: omega_QED.$(WT_OMEGA_CACHE_SUFFIX)
OMEGA_QED = $(top_builddir)/src/omega/bin/omega_QED.$(WT_OCAML_NATIVE_EXT)
omega_QED.$(WT_OMEGA_CACHE_SUFFIX): $(OMEGA_QED)
$(OMEGA_QED) -initialize .
qcdtest_1.run qcdtest_2.run: omega_QCD.$(WT_OMEGA_CACHE_SUFFIX)
OMEGA_QCD = $(top_builddir)/src/omega/bin/omega_QCD.$(WT_OCAML_NATIVE_EXT)
omega_QCD.$(WT_OMEGA_CACHE_SUFFIX): $(OMEGA_QCD)
$(OMEGA_QCD) -initialize .
endif OCAML_AVAILABLE
if MPOST_AVAILABLE
$(TESTS_REQ_GAMELAN): gamelan.sty
$(UNIT_TESTS_REQ_GAMELAN): gamelan.sty
gamelan.sty: $(top_builddir)/src/gamelan/gamelan.sty
cp $< $@
$(top_builddir)/src/gamelan/gamelan.sty:
$(MAKE) -C $(top_builddir)/src/gamelan gamelan.sty
endif
susyhit.in: $(top_builddir)/share/tests/susyhit.in
cp $< $@
BUILT_SOURCES = \
TESTFLAG \
STDHEP_FLAG \
HEPMC_FLAG \
LHAPDF_FLAG \
GAMELAN_FLAG \
OCAML_FLAG \
ref-output \
err-output
# If this file is found in the working directory, WHIZARD
# will use the paths for the uninstalled version (source/build tree),
# otherwise it uses the installed version
TESTFLAG:
touch $@
STDHEP_FLAG:
if STDHEP_AVAILABLE
touch $@
endif
HEPMC_FLAG:
if HEPMC_AVAILABLE
touch $@
endif
LHAPDF_FLAG:
if LHAPDF_AVAILABLE
touch $@
endif
GAMELAN_FLAG:
if MPOST_AVAILABLE
touch $@
endif
OCAML_FLAG:
if OCAML_AVAILABLE
touch $@
endif
# The reference output files are in the source directory. Copy them here.
if FC_QUAD
ref-output: $(top_srcdir)/share/tests/ref-output
mkdir -p ref-output
for f in $</*.ref; do cp $$f $@; done
for f in $</../ref-output-quad/*.ref; do cp $$f $@; done
else
ref-output: $(top_srcdir)/share/tests/ref-output
mkdir -p ref-output
for f in $</*.ref; do cp $$f $@; done
for f in $</../ref-output-double/*.ref; do cp $$f $@; done
endif
# The output files from self tests go here.
err-output:
mkdir -p err-output
## installcheck runs the test scripts with the TESTFLAG removed.
installcheck-local: notestflag check-am
notestflag:
rm -f TESTFLAG
.PHONY: notestflag
## Remove generated files
clean-local:
rm -f gamelan.sty TEST.mdl
rm -f TESTFLAG GAMELAN_FLAG STDHEP_FLAG
rm -f OCAML_FLAG HEPMC_FLAG LHAPDF_FLAG
rm -f whizard.static
rm -f *.run *.log slha_test.out
rm -f *.f90 *.c *.mod *.o *.la
rm -f *.makefile
rm -rf err-output
rm -rf ref-output
rm -f *.sin
rm -f *.phs *.vg *.vgb *.evt *.evx *.lhe *.hepmc *.dat *.debug
rm -f *.tmp *.hepevt *.hepevt.verb *.lha *.lha.verb
rm -f *.stdhep *.up.stdhep
rm -f *.tex *.mp *.mpx *.[1-9] *.[1-9][0-9] *.[1-9][0-9][0-9]
rm -f *.ltp *.aux *.dvi *.ps *.pdf so_test.*
rm -f *.tbl
rm -f slhaspectrum.in suspect2.out suspect2_lha.out
rm -f susyhit.in susyhit_slha.out suspect2_lha.in
rm -f *.$(WT_OMEGA_CACHE_SUFFIX)
## Remove backup files
maintainer-clean-local: maintainer-clean-fc
-rm -f *~
.PHONY: maintainer-clean-local
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 4:32 PM (21 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4023459
Default Alt Text
Makefile.am (11 KB)
Attached To
rWHIZARDSVN whizardsvn
Event Timeline
Log In to Comment