Support more complex test compilation

Issue #497 resolved
Paul Hargrove created an issue

This issue is a request for support in our make infrastructure (make dev-check in particular) for tests which are more general than a C++ source file compiled using upcxx to produce an executable.

Likely mechanisms for such generality include running bash or a child make with appropriate inputs, instead of running the compiler. That is probably as simple as dispatching based on the "source file" suffix (e.g. .sh or .mak instead of .cpp). Implementing either shell or make seems sufficient, since each can run the other fairly trivially.

I don't see supporting generalizations to test execution as part of this issue. So, the shell script or make command would still be expected to generate an executable with the corresponding file name, suitable for execution with upcxx-run.

Either I or Dan are qualified to work on this, having both worked on the current implementation of tests. So, I am not yet picking an assignee.

Comments (4)

  1. Paul Hargrove reporter

    PR 398 has been merged.

    The work included support for .sh suffixed files in tests directories to designate scripts which build tests, as well as a means for them to customize the run command when that is necessary.

  2. Log in to comment