diff options
| author | Greg Hogan <code@greghogan.com> | 2025-07-10 14:48:34 +0000 |
|---|---|---|
| committer | Greg Hogan <code@greghogan.com> | 2025-08-04 04:10:55 +0000 |
| commit | 633cb4618658470e8a5c027d620d6e2499ffcdf4 (patch) | |
| tree | a6995865cd9b7e4a294e87803b3bb652126ccb72 | |
| parent | 364e8832982bdd41d5d151ae5f93df26f4b36603 (diff) | |
gnu: orocos-kinematics-dynamics: Remove #:test-target.
* gnu/packages/engineering.scm (orocos-kinematics-dynamics)
[arguments]<#:test-target>: Delete.
[origin]: Move snippet ...
[arguments]<#:phases>: ... to 'fix-tests, and enable testing.
Change-Id: I5795b54ff132b71e699d7c030bcad0f1393ef39e
| -rw-r--r-- | gnu/packages/engineering.scm | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index d945e807dee..efc419fb790 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm | |||
| @@ -5658,13 +5658,7 @@ towards field theory.") | |||
| 5658 | (commit commit))) | 5658 | (commit commit))) |
| 5659 | (sha256 | 5659 | (sha256 |
| 5660 | (base32 "1c7vimy065908qs5nwhnrk9pp0wh8pjgdvz2hwb12a9wcsj50kf0")) | 5660 | (base32 "1c7vimy065908qs5nwhnrk9pp0wh8pjgdvz2hwb12a9wcsj50kf0")) |
| 5661 | (file-name (git-file-name name version)) | 5661 | (file-name (git-file-name name version)))) |
| 5662 | (modules '((guix build utils))) | ||
| 5663 | ;; make tests deterministic by seeding the random number generator | ||
| 5664 | (snippet '(substitute* '("orocos_kdl/tests/treeinvdyntest.cpp" | ||
| 5665 | "orocos_kdl/tests/solvertest.cpp") | ||
| 5666 | (("srand\\( \\(unsigned\\)time\\( NULL \\)\\)") | ||
| 5667 | "srand(0u)"))))) | ||
| 5668 | (build-system cmake-build-system) | 5662 | (build-system cmake-build-system) |
| 5669 | (native-inputs (list cppunit)) | 5663 | (native-inputs (list cppunit)) |
| 5670 | (propagated-inputs (list eigen)) | 5664 | (propagated-inputs (list eigen)) |
| @@ -5672,10 +5666,20 @@ towards field theory.") | |||
| 5672 | (list | 5666 | (list |
| 5673 | #:configure-flags | 5667 | #:configure-flags |
| 5674 | #~(list "-DENABLE_TESTS=ON") | 5668 | #~(list "-DENABLE_TESTS=ON") |
| 5675 | #:test-target "check" | ||
| 5676 | #:phases | 5669 | #:phases |
| 5677 | #~(modify-phases %standard-phases | 5670 | #~(modify-phases %standard-phases |
| 5678 | (add-after 'unpack 'chdir | 5671 | (add-after 'unpack 'fix-tests |
| 5672 | (lambda _ | ||
| 5673 | ;; Make tests deterministic by seeding the random number generator. | ||
| 5674 | (substitute* '("orocos_kdl/tests/treeinvdyntest.cpp" | ||
| 5675 | "orocos_kdl/tests/solvertest.cpp") | ||
| 5676 | (("srand\\( \\(unsigned\\)time\\( NULL \\)\\)") | ||
| 5677 | "srand(0u)")) | ||
| 5678 | ;; CTest requires tests to be enabled in the top-level directory. | ||
| 5679 | (substitute* "orocos_kdl/CMakeLists.txt" | ||
| 5680 | (("IF\\( ENABLE_TESTS \\)" _all) | ||
| 5681 | (string-append _all "\n" "enable_testing()"))))) | ||
| 5682 | (add-after 'fix-tests 'chdir | ||
| 5679 | (lambda _ | 5683 | (lambda _ |
| 5680 | (chdir "orocos_kdl")))))) | 5684 | (chdir "orocos_kdl")))))) |
| 5681 | (home-page "https://docs.orocos.org/kdl/overview.html") | 5685 | (home-page "https://docs.orocos.org/kdl/overview.html") |
