diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2026-03-25 11:12:48 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2026-03-25 12:00:23 +0200 |
| commit | 706fe6cadf121331433fcf0ec25e6bd9cabd0556 (patch) | |
| tree | 2075747e4dedf02a043617f0a2bb8cfe45d06725 /gnu/packages/javascript.scm | |
| parent | 4c9e8c8d8e749a861f373fc1f896b009946da5e5 (diff) | |
gnu: quickjs: Run more tests.
* gnu/packages/javascript.scm (quickjs)[arguments]: Add a test-target.
Add a phase to prepare for the tests. Remove the custom 'check phase.
Change-Id: Ic6f0877d34fcd052b7bdd2853d316ba8376fb907
Diffstat (limited to 'gnu/packages/javascript.scm')
| -rw-r--r-- | gnu/packages/javascript.scm | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index 7365dae7835..842c8fbf4d5 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm | |||
| @@ -1041,18 +1041,24 @@ roots, or wrestle with obscure build systems.") | |||
| 1041 | "doc/quickjs.html")))))) | 1041 | "doc/quickjs.html")))))) |
| 1042 | (build-system gnu-build-system) | 1042 | (build-system gnu-build-system) |
| 1043 | (arguments | 1043 | (arguments |
| 1044 | (list #:make-flags | 1044 | (list |
| 1045 | #~(list (string-append "PREFIX=" #$output) | 1045 | #:make-flags |
| 1046 | #$@(if (or (target-riscv64?) | 1046 | #~(list (string-append "PREFIX=" #$output) |
| 1047 | (target-ppc32?)) | 1047 | #$@(if (or (target-riscv64?) |
| 1048 | '("LDFLAGS=-latomic") | 1048 | (target-ppc32?)) |
| 1049 | '())) | 1049 | '("LDFLAGS=-latomic") |
| 1050 | #:phases #~(modify-phases %standard-phases | 1050 | '())) |
| 1051 | (delete 'configure) | 1051 | #:test-target (if (target-x86-32?) |
| 1052 | (replace 'check | 1052 | "microbench" |
| 1053 | (lambda* (#:key tests? #:allow-other-keys) | 1053 | "test") |
| 1054 | (when tests? | 1054 | #:phases #~(modify-phases %standard-phases |
| 1055 | (invoke "make" "microbench"))))))) | 1055 | (delete 'configure) |
| 1056 | (add-before 'check 'pre-check | ||
| 1057 | (lambda* (#:key native-inputs inputs #:allow-other-keys) | ||
| 1058 | (substitute* "tests/test_std.js" | ||
| 1059 | (("/bin/sh") (search-input-file | ||
| 1060 | (or native-inputs inputs) | ||
| 1061 | "bin/sh")))))))) | ||
| 1056 | (home-page "https://bellard.org/quickjs/") | 1062 | (home-page "https://bellard.org/quickjs/") |
| 1057 | (synopsis "Small embeddable Javascript engine") | 1063 | (synopsis "Small embeddable Javascript engine") |
| 1058 | (description "QuickJS supports the ES2023 specification including modules, | 1064 | (description "QuickJS supports the ES2023 specification including modules, |
