# syscalls_testcases
**Repository Path**: oscomp/syscalls_testcases
## Basic Information
- **Project Name**: syscalls_testcases
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-04-16
- **Last Updated**: 2021-04-16
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Linux syscalls tests
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](https://github.com/riscv/riscv-gnu-toolchain#installation-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/...`
**Run tests**
Depend on library: libstdc++.so