mirror of
https://github.com/nix-community/naersk
synced 2024-11-10 14:14:14 +00:00
Add default-run failing test
This commit is contained in:
parent
ff6a6c73e1
commit
f5ecd757b3
5 changed files with 27 additions and 0 deletions
5
test.nix
5
test.nix
|
@ -141,6 +141,11 @@ let
|
||||||
src = ./test/workspace-build-rs;
|
src = ./test/workspace-build-rs;
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
default-run = naersk.buildPackage {
|
||||||
|
src = ./test/default-run;
|
||||||
|
doCheck = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# extra crates, that are kinda slow to build
|
# extra crates, that are kinda slow to build
|
||||||
|
|
5
test/default-run/Cargo.lock
generated
Normal file
5
test/default-run/Cargo.lock
generated
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# This file is automatically @generated by Cargo.
|
||||||
|
# It is not intended for manual editing.
|
||||||
|
[[package]]
|
||||||
|
name = "default-run"
|
||||||
|
version = "0.1.0"
|
11
test/default-run/Cargo.toml
Normal file
11
test/default-run/Cargo.toml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# Tests that default-run doesn't break the dependency build, see
|
||||||
|
# https://github.com/nmattia/naersk/issues/123
|
||||||
|
|
||||||
|
[package]
|
||||||
|
name = "default-run"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = ["nicolas <nicolas@nmattia.com>"]
|
||||||
|
edition = "2018"
|
||||||
|
default-run = "other"
|
||||||
|
|
||||||
|
[dependencies]
|
3
test/default-run/src/bin/other.rs
Normal file
3
test/default-run/src/bin/other.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
fn main() {
|
||||||
|
println!("Hello, other!");
|
||||||
|
}
|
3
test/default-run/src/main.rs
Normal file
3
test/default-run/src/main.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
Loading…
Reference in a new issue