diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-physics/pythia/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-physics/pythia/files')
3 files changed, 64 insertions, 0 deletions
diff --git a/sci-physics/pythia/files/pythia-8.2.26-run-tests.patch b/sci-physics/pythia/files/pythia-8.2.26-run-tests.patch new file mode 100644 index 000000000000..34c7179fa55d --- /dev/null +++ b/sci-physics/pythia/files/pythia-8.2.26-run-tests.patch @@ -0,0 +1,27 @@ +--- examples/Makefile.orig 2017-07-25 11:56:03.545393093 +0200 ++++ examples/Makefile 2017-07-25 11:56:37.468572887 +0200 +@@ -158,6 +158,7 @@ + rm -f $(LOCAL_EXAMPLE)/weakbosons.lhe + rm -f $(LOCAL_EXAMPLE)/Pythia8.promc + rm -f $(LOCAL_EXAMPLE)/hist.root ++ rm main*out *.dat + + # Clean all temporary and generated files. + distclean: clean +@@ -168,3 +169,16 @@ + rm -f $(LOCAL_SHARE)/COPYING + rm -f $(LOCAL_SHARE)/GUIDELINES + rm -f $(LOCAL_SHARE)/README ++ ++# Run tests, inject test-specific arguments when needed ++main%.out: main% ++ ./$< \ ++ $(if $(findstring $*,16 42 43 $(shell seq 81 89)), main$*.cmnd) \ ++ $(if $(findstring $*, $(shell seq 81 83)), w+_production_lhc_0.lhe) \ ++ $(if $(findstring $*, 84), hepmcout84.dat 2 w+_production_lhc) \ ++ $(if $(findstring $*, $(shell seq 85 88)), w_production) \ ++ $(if $(findstring $*, 42 43 $(shell seq 81 89)), histout$*.dat) \ ++ > $@ ++ ++main89.out: main89 ++ $(foreach cmd, $(wildcard main89*.cmnd), ./$< $(cmd) histout-$(cmd).dat >> $@ || exit;) diff --git a/sci-physics/pythia/files/pythia8209-root-noninteractive.patch b/sci-physics/pythia/files/pythia8209-root-noninteractive.patch new file mode 100644 index 000000000000..4581eaea389b --- /dev/null +++ b/sci-physics/pythia/files/pythia8209-root-noninteractive.patch @@ -0,0 +1,17 @@ +--- pythia8209/examples/main91.cc.orig 2015-06-05 07:44:27.000000000 +0300 ++++ pythia8209/examples/main91.cc 2015-06-05 08:17:22.477228166 +0300 +@@ -62,13 +62,9 @@ + // Statistics on event generation. + pythia.stat(); + +- // Show histogram. Possibility to close it. +- mult->Draw(); +- std::cout << "\nDouble click on the histogram window to quit.\n"; +- gPad->WaitPrimitive(); +- + // Save histogram on file and close file. + mult->Write(); ++ outFile->Close(); + delete outFile; + + // Done. diff --git a/sci-physics/pythia/files/pythia8209-run-tests.patch b/sci-physics/pythia/files/pythia8209-run-tests.patch new file mode 100644 index 000000000000..d1edc8393726 --- /dev/null +++ b/sci-physics/pythia/files/pythia8209-run-tests.patch @@ -0,0 +1,20 @@ +--- pythia8209/examples/Makefile.orig 2015-06-04 22:21:53.000000000 +0300 ++++ pythia8209/examples/Makefile 2015-06-05 05:35:25.324262331 +0300 +@@ -139,3 +139,17 @@ + rm -f test[0-9][0-9][0-9]; rm -f out[0-9][0-9][0-9];\ + rm -f weakbosons.lhe; rm -f Pythia8.promc; rm -f hist.root;\ + rm -f *~; rm -f \#*; rm -f core*; rm -f *Dct.* ++ rm -f main*out *.dat ++ ++# Run tests, inject test-specific arguments when needed ++main%.out: main% ++ ./$< \ ++ $(if $(findstring $*,16 42 43 $(shell seq 81 89)), main$*.cmnd) \ ++ $(if $(findstring $*, $(shell seq 81 83)), w+_production_lhc_0.lhe) \ ++ $(if $(findstring $*, 84), hepmcout84.dat 2 w+_production_lhc) \ ++ $(if $(findstring $*, $(shell seq 85 88)), w_production) \ ++ $(if $(findstring $*, 42 43 $(shell seq 81 89)), histout$*.dat) \ ++ > $@ ++ ++main89.out: main89 ++ $(foreach cmd, $(wildcard main89*.cmnd), ./$< $(cmd) histout-$(cmd).dat >> $@ || exit;) |