Skip to content

Tests cannot be run when cross compiling #858

@augusew1

Description

@augusew1

To be clear: this is not an issue asking for help cross compiling. This is a bug in Ipopt's autotools.

I am using Ubuntu 24.04 to cross compile Ipopt for an aarch64 host from an x86_64 build machine. The only step that is explicitly prevented from working is make test, due to run_unitTests.sh naively running the binaries on the build platform. Since you are not using autotools's native test support, the normal methods of using LOG_COMPILER, etc. to override the test runner do not work.

There needs to be some sort of variable allowing the user to override how tests are run so that they can be wrapped by something like qemu-user-static to test cross compiled code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions