japaric / steed

[INACTIVE] Rust's standard library, free of C dependencies, for Linux systems
519 stars 22 forks source link

bare bones test crate #112

Closed japaric closed 7 years ago

japaric commented 7 years ago

To get cargo test working with steed

Limitations:

How to test your crate against steed:

[dependencies.collections]
[dependencies.rand]

[dependencies.std]
git = "https://github.com/japaric/steed"  # or path
stage = 1

[dependencies.test]
git = "https://github.com/japaric/steed"  # or path
stage = 2

closes #23


I want to check that this enough to test steed itself before merging it. Then in another PR, I'll add testing to CI and start gating on it.

tbu- commented 7 years ago

Awesome! I guess we're gonna have a lot of failing tests to fix soon.

japaric commented 7 years ago

OK, I managed to get xargo test to work on steed (It was quite complicated). Here are the preliminary results:

Running 192 tests
test ascii::tests::test_is_ascii ... ok
test ascii::tests::test_to_ascii_uppercase ... ok
test ascii::tests::test_to_ascii_lowercase ... ok
test ascii::tests::test_make_ascii_lower_case ... ok
test ascii::tests::test_make_ascii_upper_case ... ok
test ascii::tests::test_eq_ignore_ascii_case ... ok
test ascii::tests::inference_works ... ok
test collections::hash::bench::new_drop ... ignored
test collections::hash::bench::new_insert_drop ... ignored
test collections::hash::bench::grow_by_insertion ... ignored
test collections::hash::bench::find_existing ... ignored
test collections::hash::bench::find_nonexisting ... ignored
test collections::hash::bench::hashmap_as_queue ... ignored
test collections::hash::bench::get_remove_insert ... ignored
test collections::hash::table::can_alias_safehash_as_hash ... ok
test collections::hash::table::test_rounding ... ok
test collections::hash::table::test_offset_calculation ... ok
test collections::hash::set::test_set::test_zero_capacities ... 

then it SIGSEGVs 😄.

I'll send a follow-up PR enabling the test suite but ignoring everything that fails ...

@homunkulus r+

homunkulus commented 7 years ago

:pushpin: Commit 03beed2 has been approved by japaric

homunkulus commented 7 years ago

:hourglass: Testing commit 03beed2 with merge 03beed2...

homunkulus commented 7 years ago

:broken_heart: Test failed - status-travis

japaric commented 7 years ago

@homunkulus r+

homunkulus commented 7 years ago

:pushpin: Commit c5c424e has been approved by japaric

homunkulus commented 7 years ago

:hourglass: Testing commit c5c424e with merge c5c424e...

homunkulus commented 7 years ago

:sunny: Test successful - status-travis Approved by: japaric Pushing c5c424e0ab874559a57655a8b6352e61d920031c to master...