diff mbox series

[bug#72817,2/3] gnu: xa: Enable tests.

Message ID 07f30d89c8eb9a40e48e4996e2c398f0f18e3ad3.1724669204.git.poptsov.artyom@gmail.com
State New
Headers show
Series gnu: vice: Update to 3.8. | expand

Commit Message

Artyom V. Poptsov Aug. 26, 2024, 10:50 a.m. UTC
* gnu/packages/assembly.scm (xa) [arguments]: Enable tests.

Change-Id: I1866b367fc58542d5c2ae90b82f89b218c0ffa1f
---
 gnu/packages/assembly.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Z572 Aug. 28, 2024, 3:10 a.m. UTC | #1
"Artyom V. Poptsov" <poptsov.artyom@gmail.com> writes:

> * gnu/packages/assembly.scm (xa) [arguments]: Enable tests.
>
> Change-Id: I1866b367fc58542d5c2ae90b82f89b218c0ffa1f
> ---
>  gnu/packages/assembly.scm | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm
> index 53106a0d74..e7bc9e1fef 100644
> --- a/gnu/packages/assembly.scm
> +++ b/gnu/packages/assembly.scm
> @@ -470,10 +470,12 @@ (define-public xa
>      (build-system gnu-build-system)
>      (arguments
>       (list
> -      #:tests? #f           ; TODO: custom test harness, not sure how it works
>        #:phases
>        #~(modify-phases %standard-phases
> -          (delete 'configure))          ; no "configure" script
> +          (delete 'configure)          ; no "configure" script
> +          (replace 'check
> +            (lambda _
> +              (invoke "make" "test"))))

just use #:test-target.

>        #:make-flags
>        #~(list (string-append "DESTDIR=" #$output)))) ; no $prefix support
>      (native-inputs (list perl))
diff mbox series

Patch

diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm
index 53106a0d74..e7bc9e1fef 100644
--- a/gnu/packages/assembly.scm
+++ b/gnu/packages/assembly.scm
@@ -470,10 +470,12 @@  (define-public xa
     (build-system gnu-build-system)
     (arguments
      (list
-      #:tests? #f           ; TODO: custom test harness, not sure how it works
       #:phases
       #~(modify-phases %standard-phases
-          (delete 'configure))          ; no "configure" script
+          (delete 'configure)          ; no "configure" script
+          (replace 'check
+            (lambda _
+              (invoke "make" "test"))))
       #:make-flags
       #~(list (string-append "DESTDIR=" #$output)))) ; no $prefix support
     (native-inputs (list perl))