diff options
| author | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-20 15:22:40 +0200 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-21 08:31:44 +0200 |
| commit | b61b43517cf9f6acb8075101b939d2b50a6ff0e6 (patch) | |
| tree | 13769001e37629fb041f3ad2c98cea19f6157db5 | |
| parent | c3e8334ba1bd7632ba4123ee4cb0ed1ed15e579d (diff) | |
hep: pythia: Enable parallel tests.
* guix-science/packages/hep.scm (pythia)
[arguments]<#:phases>: Use upstream test runner in 'check, evaluate and provide
the number of threads to use.
| -rw-r--r-- | guix-science/packages/hep.scm | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/guix-science/packages/hep.scm b/guix-science/packages/hep.scm index 47a886a..e576d8c 100644 --- a/guix-science/packages/hep.scm +++ b/guix-science/packages/hep.scm | |||
| @@ -932,24 +932,23 @@ HEP packages against.") | |||
| 932 | (delete 'check) | 932 | (delete 'check) |
| 933 | 933 | ||
| 934 | (add-after 'install 'check | 934 | (add-after 'install 'check |
| 935 | (lambda* (#:key tests? #:allow-other-keys) | 935 | (lambda* (#:key tests? parallel-tests? #:allow-other-keys) |
| 936 | (when tests? | 936 | (when tests? |
| 937 | (let ((examples (string-append #$output | 937 | (let ((examples (string-append #$output |
| 938 | "/share/Pythia8/examples"))) | 938 | "/share/Pythia8/examples")) |
| 939 | (run (string-join (list "101" ;standalone | ||
| 940 | "114" ;with yoda | ||
| 941 | "131" ;with hepmc3 | ||
| 942 | "141" ;with root | ||
| 943 | "161" ;with fastjet | ||
| 944 | ) " ")) | ||
| 945 | (threads (number->string (if parallel-tests? | ||
| 946 | (parallel-job-count) 1)))) | ||
| 939 | (copy-recursively examples "examples") | 947 | (copy-recursively examples "examples") |
| 940 | (with-directory-excursion "examples" | 948 | (with-directory-excursion "examples" |
| 941 | (for-each (lambda (test) | 949 | (invoke "./runmains" |
| 942 | (invoke "make" test) | 950 | (string-append "--threads=" threads) |
| 943 | (invoke (string-append "./" test))) | 951 | (string-append "--run='" run "'")))))))))) |
| 944 | (list | ||
| 945 | ;; standalone | ||
| 946 | "main101" | ||
| 947 | ;; with yoda | ||
| 948 | "main114" | ||
| 949 | ;; with hepmc3 | ||
| 950 | "main131" | ||
| 951 | ;; with fastjet and root | ||
| 952 | "main142")))))))))) | ||
| 953 | (inputs (list fastjet | 952 | (inputs (list fastjet |
| 954 | hepmc3 | 953 | hepmc3 |
| 955 | lhapdf | 954 | lhapdf |
