An open API service indexing awesome lists of open source software.

https://github.com/rust-gcc/rusttest-to-dg


https://github.com/rust-gcc/rusttest-to-dg

Last synced: 4 months ago
JSON representation

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
```