The tests defined:
- syscalls: system call tests run locally, and do not require additional configuration in the machine.
- util: utilities library to support the tests.
Configure
Please prepare a RiscV cross-compilation toolchain.
eg: riscv-gnu-toolchain with Linux multilib
Configure file toolchain/cc_toolchain_config.bzl, and set riscv_gnu_toolchain_path = "/path/to/your/toolchain".
Build tests
To build a single test case:
bazel build --config=riscv64_config //test/syscalls/linux:write_test
To build all syscalls test cases:
bazel build --config=riscv64_config //test/syscalls/linux/...
OR Just build:
bazel build -s --config=riscv64_config //test/syscalls/linux:access_test //test/syscalls/linux:write_test
Run tests
Depend on library: libstdc++.so