Skip to content

Provide build and run flow for spike, rev, and host #378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

kpgriesser
Copy link
Collaborator

@kpgriesser kpgriesser commented Jul 9, 2025

This is a follow-on PR to #376 and completes the support for running tests on spike ( in addition to rev and host). This is useful in the development of emulated system calls by providing the ability to compare results on different targets. Only two tests are currently using this in the rev repository but the flow is also being used in developing external test suites through the use of the REVHOME environment variable.

Examples:

cd test/syscalls/printf
make clean run                          # build and run for  rev
make clean run TARG=host    # build and run for host
make clean run TARG=spike   # build and run for spike

Tests may use compile-time flags to differentiate the different targets.

Specifically:
REV_TARGET
HOST_TARGET
SPIKE_TARGET

The make file is only used by ctest for compiling the test for REV so the tests are compatible with the current testing methodology.

@kpgriesser kpgriesser marked this pull request as draft July 9, 2025 22:12
@kpgriesser kpgriesser marked this pull request as ready for review July 9, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant