Skip to content

Commit 6f74e0a

Browse files
committed
buildtest: add a dedicate crate for process-lines
This will speed up running tests, as it will be possible to run process-lines in parallel with hello-world.
1 parent dfd4dfc commit 6f74e0a

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[package]
2+
name = "process-lines"
3+
version = "0.1.0"
4+
authors = ["Pietro Albini <pietro@pietroalbini.org>"]
5+
edition = "2018"
6+
7+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8+
9+
[dependencies]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn main() {
2+
println!("Hello, world!");
3+
println!("Hello, world again!");
4+
}

tests/buildtest/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fn test_hello_world() {
2828

2929
#[test]
3030
fn test_process_lines() {
31-
runner::run("hello-world", |run| {
31+
runner::run("process-lines", |run| {
3232
run.build(SandboxBuilder::new().enable_networking(false), |build| {
3333
let storage = rustwide::logging::LogStorage::new(LevelFilter::Info);
3434
let mut ex = false;

0 commit comments

Comments
 (0)