https://github.com/rust-gcc/rusttest-to-dg
https://github.com/rust-gcc/rusttest-to-dg
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rust-gcc/rusttest-to-dg
- Owner: Rust-GCC
- Created: 2024-06-24T11:07:56.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-05T16:24:38.000Z (over 1 year ago)
- Last Synced: 2025-04-03T17:38:54.122Z (about 1 year ago)
- Language: Rust
- Size: 38.1 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rusttest-to-dg
Converts `rustc` testcases into dejagnu testcases for `gccrs`
# Usage
This tool was invoked by the script [run](./run.sh). Furthermore, we need the rustc and gccrs source code to be downloaded on the system. And add their paths to the environment variables `GCCRS_PATH`, `RUST_PATH` and `RUSTTEST_TO_DG_PATH`
You can install gccrs from the [gccrs repository](https://github.com/Rust-GCC/gccrs):
```bash
git clone https://github.com/Rust-GCC/gccrs.git
```
You can install rustc from the [rust repository](https://github.com/rust-lang/rust):
```bash
git clone https://github.com/rust-lang/rust.git
# Checkout the rustc 1.49.0 version
cd rust
git checkout 1.49.0
```
After that, set the environment variables in your shell configuration file or in the terminal session:
```bash
export GCCRS_PATH=/path/to/gccrs
export RUST_PATH=/path/to/rust
export RUSTTEST_TO_DG_PATH=/path/to/rusttest-to-dg
```
Then, simply run the script [run](./run.sh)
```bash
bash run.sh
```