Skip to content

GNU guix: Tests failing due to not finding color-schemes #5941

Open
@nomike

Description

@nomike

A few tests are failing as they can't find the color scheme files:

render-monotone_polyhedron-single-triangle
render-monotone_cube10
render-monotone_square10
openscad-colorscheme-metallic_logo
openscad-colorscheme-sunset_logo
openscad-colorscheme-starnight_logo
openscad-colorscheme-monotone_logo
openscad-colorscheme-clearsky_logo
openscad-colorscheme-metallic-render_CSG

PWD is `/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build/tests.

Output of the testcase:

     Start 1773: render-monotone_polyhedron-single-triangle
 6/20 Test #1773: render-monotone_polyhedron-single-triangle ...........***Failed    0.16 sec
polyhedron-single-triangle
run_test() cmdline: /tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build/openscad /tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/source/tests/data/scad/3D/misc/polyhedron-single-triangle.scad --backend=manifold --colorscheme=Monotone --render -o /tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build/tests/output/render-monotone/polyhedron-single-triangle-actual.png
using font directory: /tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/source/tests/data/ttf
stderr output: Could not initialize localization (application path is '/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build').
Cornfield

Error: openscad failed with return code 1

I've manually executed the test with strace which produced this output:

newfstatat(AT_FDCWD, "/proc/self/exe", {st_mode=S_IFLNK|0777, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0
readlink("/proc/self/exe", "/tmp/guix-build-openscad-2025.05"..., 128) = 66
newfstatat(AT_FDCWD, "/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build/openscad", {st_mode=S_IFREG|0755, st_size=18910168, ...}, 0) = 0
readlink("/tmp", 0x7ffd64bea920, 1023)  = -1 EINVAL (Invalid argument)
readlink("/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0", 0x7ffd64bea920, 1023) = -1 EINVAL (Invalid argument)
readlink("/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build", 0x7ffd64bea920, 1023) = -1 EINVAL (Invalid argument)
readlink("/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build/openscad", 0x7ffd64bea920, 1023) = -1 EINVAL (Invalid argument)
newfstatat(AT_FDCWD, "/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build/../share/openscad/color-schemes", 0x7ffd64bead20, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build/../../share/openscad/color-schemes", 0x7ffd64bead20, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build/./color-schemes", 0x7ffd64bead20, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build/../color-schemes", 0x7ffd64bead20, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build/../../color-schemes", 0x7ffd64bead20, 0) = -1 ENOENT (No such file or directory)
readlink("/tmp", 0x7ffd64bea700, 1023)  = -1 EINVAL (Invalid argument)
readlink("/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0", 0x7ffd64bea700, 1023) = -1 EINVAL (Invalid argument)
readlink("/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build", 0x7ffd64bea700, 1023) = -1 EINVAL (Invalid argument)
getcwd("/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build/tests", 4096) = 64
newfstatat(AT_FDCWD, "/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/build/color-schemes/render", 0x7ffd64beac00, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/tmp/.config/OpenSCAD", {st_mode=S_IFDIR|0775, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, "/tmp/.config/OpenSCAD/color-schemes/render", 0x7ffd64beac00, 0) = -1 ENOENT (No such file or directory)

This is where that directory actually is:

$ find /tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0 -type d -name color-schemes 
/tmp/guix-build-openscad-2025.05.30-0.f0e2492.drv-0/source/color-schemes

So relative to the binary in the build folder it should be ../source/color-schemes and that's why those tests fail.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions