Commit 455637e
authored
Rework how tests are run (bytecodealliance#211)
This commit reorganizes how tests are run with a few goals in mind:
* Currently it's difficult to run just one test, you typically have to
run everything and that can take some time.
* The error messages for failing tests aren't always immediately clear
what test failed where.
This commit moves the `src/tests.rs` module to a `tests/all.rs`
integration test that is now run without a test harness. Test discovery
happens manually and rayon is used for parallelism. Test filters via CLI
arguments are supported and match on the filename of the test to run.
A few fixes to validation were applied along the way, along with
enabling a few more directories from the upstream spec tests. For now,
though, there's still a number of holes in the reference types
validation.1 parent 7c68762 commit 455637e
6 files changed
Lines changed: 435 additions & 505 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
298 | 300 | | |
299 | 301 | | |
300 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1982 | 1982 | | |
1983 | 1983 | | |
1984 | 1984 | | |
1985 | | - | |
1986 | | - | |
1987 | | - | |
1988 | | - | |
1989 | | - | |
1990 | | - | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
1991 | 1993 | | |
1992 | | - | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
1993 | 1998 | | |
1994 | 1999 | | |
1995 | 2000 | | |
| |||
1998 | 2003 | | |
1999 | 2004 | | |
2000 | 2005 | | |
2001 | | - | |
| 2006 | + | |
2002 | 2007 | | |
2003 | 2008 | | |
2004 | 2009 | | |
| |||
2011 | 2016 | | |
2012 | 2017 | | |
2013 | 2018 | | |
2014 | | - | |
2015 | | - | |
2016 | | - | |
2017 | | - | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
2018 | 2029 | | |
2019 | 2030 | | |
2020 | 2031 | | |
| |||
0 commit comments