Skip to content

Commit 61edd60

Browse files
committed
Exclude yaml-test-suite from the Cargo package.
1 parent bc5e656 commit 61edd60

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

parser/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
- 8ef76dcc: Fix `Marker`s for `null` and empty values.
1212
- Fix `Span`s for collections to correctly mark the end of the collection.
1313

14+
**Changes**
15+
16+
- Exclude `yaml-test-suite` from the Cargo package.
17+
1418
## v0.0.4
1519

1620
**Breaking Changes**:

parser/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ license = { workspace = true }
1111
repository = { workspace = true }
1212
rust-version = { workspace = true }
1313
version = { workspace = true }
14+
exclude = [
15+
# Exclude the `yaml-test-suite` from the package. This removes the need to
16+
# add its license to the package.
17+
"/tests/yaml-test-suite",
18+
# We don't need the documents either.
19+
"/documents",
20+
]
1421

1522
[features]
1623
debug_prints = []

parser/tests/yaml-test-suite.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ struct YamlTest {
2020
}
2121

2222
fn main() -> Result<()> {
23+
if !std::path::Path::new("tests/yaml-test-suite").is_dir() {
24+
eprintln!("===================================================================");
25+
eprintln!("/!\\ yaml-test-suite directory not found, Skipping tests /!\\");
26+
eprintln!("If you intend to contribute to the library, restore the test suite.");
27+
eprintln!("===================================================================");
28+
return Ok(());
29+
}
30+
2331
let mut arguments = Arguments::from_args();
2432
if arguments.num_threads.is_none() {
2533
arguments.num_threads = Some(1);

0 commit comments

Comments
 (0)