Open silabs-kjetil opened 6 months ago
It seems like there's no option to do this. The following is a quite and hacky workaround I just tried.
In my case, and I'm not sure this is common to every flow, the DUT executable is only built during the full run. It didn't seem to be built when passing the --testfile
arg.
I also had to fix the riscof/framework/test.py
module to use os.makedirs(..., exist_ok=True)
rather than os.mkdir()
.
The testlist is under riscof_work/test_list.yaml
.
There may be cleaner ways to do this but the documentation is awful and I've only just started poking around.
I ended up selectively removing assembly files from the riscv-test-suite folders in order to run the tests I wanted to run. I also could not get the --testfile
argument to work correctly. Will you open up a PR with the changes needed for riscof/framework/test.py
or should I do it?
PR opened for that one fix but I think there are quite a few updates needed. It would be nice to be able to:
--testlist
argumentNot got any time right now to look at these but hopefully this comment will either remind me or spur someone else on.
I had the same problem. nothing seemed to work so Just made a new folder for my specific test and gave the path with test suite and voila!! only test in the directory executes and only relevent executable executables and logs are created.
How do we use riscof and the commands available to run only a single test? I have not found any documentation yet on how to do this. This feature would be quite useful to have when debugging test configuration and failures.