Skip to content
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

[doit] add task RunRISCVArchitectureTests #164

Merged
merged 1 commit into from
Sep 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/riscv-arch-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,19 @@ jobs:
echo "$GITHUB_WORKSPACE/riscv/bin" >> $GITHUB_PATH
echo $GITHUB_WORKSPACE

- name: '🔧 Setup RISC-V GCC'
- name: '🔧 Setup RISC-V GCC and doit'
run: |
mkdir riscv
curl -fsSL https://github.com/stnolting/riscv-gcc-prebuilt/releases/download/rv32i-2.0.0/riscv32-unknown-elf.gcc-10.2.0.rv32i.ilp32.newlib.tar.gz | \
tar -xzf - -C riscv
ls -al riscv

pip3 install doit

- name: '🔧 Setup GHDL Simulator'
uses: ghdl/setup-ghdl-ci@nightly
with:
backend: gcc

- name: '⚙️ Run RISC-V Architecture Tests'
run: ./sim/run_riscv_arch_test.sh ${{ matrix.suite }}
- name: '🚧 Run RISC-V Architecture Tests'
run: ./do.py RunRISCVArchitectureTests -s ${{ matrix.suite }}
29 changes: 29 additions & 0 deletions do.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,35 @@
ROOT = Path(__file__).parent


def task_RunRISCVArchitectureTests():
return {
"actions": [CmdAction(
"./run_riscv_arch_test.sh {suite}",
cwd=ROOT / "sim"
)],
"doc": "Run RISC-V Architecture Tests",
"params": [
{
"name": "suite",
"short": "s",
"long": "suite",
"default": "M",
"choices": ((item, "") for item in [
"I",
"C",
"M",
"privilege",
"Zifencei",
"rv32e_C",
"rv32e_E",
"rv32e_M"
]),
"help": "Test suite to be executed",
}
],
}


def task_Documentation():
return {
"actions": ["make -C docs {posargs}"],
Expand Down