Skip to content

Commit

Permalink
Clean up test-crates (#1460)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoli authored Oct 5, 2023
1 parent 221b865 commit e735471
Show file tree
Hide file tree
Showing 481 changed files with 10 additions and 85,722 deletions.
12 changes: 10 additions & 2 deletions test-crates/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Test-crates
============

This folder contains the scripts used to run and test Prusti on a set of popular Rust crates.
A tool to run and test Prusti on a set of popular Rust crates.

These scripts should be eventually replaced by a tool built upon the [rustwide project](https://github.com/rust-lang/rustwide).
The tool is built upon [rustwide](https://github.com/rust-lang/rustwide). The `crates.csv` file contains the list of crates to test, specifying for each crate its name, version, and a "test kind" flag that configures how Prusti is tested.

Possible values for the test kind, strictly ordered from the most permissive to the most restrictive kind, are the following:
1. `Skip`: Completely ignore this crate.
1. `NoCrash`: Test that `cargo-prusti` does not crash nor generate "invalid" errors.
1. `NoErrors`: Test that `cargo-prusti` does not crash nor generate "internal/invalid" errors.
1. `NoErrorsWithUnreachableUnsupportedCode`: Test that `cargo-prusti` does not crash nor generate "internal/invalid" when the `allow_unreachable_unsupported_code` flag is set.

To make these tests fully reproducible one should also freeze the `Cargo.lock` in each crate. Without that, the dependencies used by the tested crate can change from time to time. In practice, this is usually not a big issue.
4 changes: 0 additions & 4 deletions test-crates/cargo-locks/000_libc.Cargo.lock

This file was deleted.

4 changes: 0 additions & 4 deletions test-crates/cargo-locks/001_bitflags.Cargo.lock

This file was deleted.

31 changes: 0 additions & 31 deletions test-crates/cargo-locks/002_log.Cargo.lock

This file was deleted.

21 changes: 0 additions & 21 deletions test-crates/cargo-locks/003_lazy_static.Cargo.lock

This file was deleted.

54 changes: 0 additions & 54 deletions test-crates/cargo-locks/004_serde.Cargo.lock

This file was deleted.

21 changes: 0 additions & 21 deletions test-crates/cargo-locks/005_winapi.Cargo.lock

This file was deleted.

180 changes: 0 additions & 180 deletions test-crates/cargo-locks/006_regex.Cargo.lock

This file was deleted.

14 changes: 0 additions & 14 deletions test-crates/cargo-locks/007_regex-syntax.Cargo.lock

This file was deleted.

4 changes: 0 additions & 4 deletions test-crates/cargo-locks/008_num-traits.Cargo.lock

This file was deleted.

Loading

0 comments on commit e735471

Please sign in to comment.