Open Barabas5532 opened 1 year ago
@Barabas5532 I had to do something like this to make "inject a single test" into a RISCOF run, where my_test_list.yaml
is your abbreviated set of tests:
shopt -s globstar
riscof testlist --config=config.ini --suite=riscv-arch-test/riscv-test-suite/ --env=riscv-arch-test/riscv-test-suite/env --work-dir=riscof_work
rm -rf riscof_work/**/dut/
rm -rf riscof_work/**/ref/
cp my_test_list.yaml riscof_work/test_list.yaml
riscof run --config=config.ini --suite=riscv-arch-test/riscv-test-suite/ --env=riscv-arch-test/riscv-test-suite/env --testfile=riscof_work/test_list.yaml --no-browser --no-clean
shopt -u globstar
Guessing this isn't quite intended, but it does work for my use case of "separating test generation from running the tests."
I'm trying to pass a testlist to run a single test rather than the entire suite for faster iteration while I'm setting up the tests and debugging failures.
When I run
riscof run --config=config.ini --suite=riscv-arch-test/riscv-test-suite/ --env=riscv-arch-test/riscv-test-suite/env --testfile test_list.yaml
, some errors are emitted fromriscof_sail_cSim.py
related to directories already existing from these lines:After fixing these, more errors are coming from inside riscof scripts:
I get either
FileExistsError
orFileNotFoundError
depending on whether I have run riscof with the default test list or not.How can I make this work?