From 7b6e527f440cd7e6f8be2b07cee320ee6ca18786 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 29 Apr 2024 06:41:38 +0200 Subject: Adding upstream version 1.0.1. Signed-off-by: Daniel Baumann --- test cases/rust/1 basic/clippy.toml | 1 + test cases/rust/1 basic/meson.build | 9 +++++++++ test cases/rust/1 basic/prog.rs | 4 ++++ test cases/rust/1 basic/subdir/meson.build | 2 ++ test cases/rust/1 basic/subdir/prog.rs | 3 +++ test cases/rust/1 basic/test.json | 8 ++++++++ 6 files changed, 27 insertions(+) create mode 100644 test cases/rust/1 basic/clippy.toml create mode 100644 test cases/rust/1 basic/meson.build create mode 100644 test cases/rust/1 basic/prog.rs create mode 100644 test cases/rust/1 basic/subdir/meson.build create mode 100644 test cases/rust/1 basic/subdir/prog.rs create mode 100644 test cases/rust/1 basic/test.json (limited to 'test cases/rust/1 basic') diff --git a/test cases/rust/1 basic/clippy.toml b/test cases/rust/1 basic/clippy.toml new file mode 100644 index 0000000..e9ac31b --- /dev/null +++ b/test cases/rust/1 basic/clippy.toml @@ -0,0 +1 @@ +blacklisted-names = ["foo"] diff --git a/test cases/rust/1 basic/meson.build b/test cases/rust/1 basic/meson.build new file mode 100644 index 0000000..63ad375 --- /dev/null +++ b/test cases/rust/1 basic/meson.build @@ -0,0 +1,9 @@ +project('rustprog', 'rust') + +e = executable('rust-program', 'prog.rs', + rust_args : ['-C', 'lto'], # Just a test + install : true +) +test('rusttest', e) + +subdir('subdir') diff --git a/test cases/rust/1 basic/prog.rs b/test cases/rust/1 basic/prog.rs new file mode 100644 index 0000000..f1b3d30 --- /dev/null +++ b/test cases/rust/1 basic/prog.rs @@ -0,0 +1,4 @@ +fn main() { + let foo = "rust compiler is working"; + println!("{}", foo); +} diff --git a/test cases/rust/1 basic/subdir/meson.build b/test cases/rust/1 basic/subdir/meson.build new file mode 100644 index 0000000..36a3d4a --- /dev/null +++ b/test cases/rust/1 basic/subdir/meson.build @@ -0,0 +1,2 @@ +e = executable('rust-program2', 'prog.rs', install : true) +test('rusttest2', e) diff --git a/test cases/rust/1 basic/subdir/prog.rs b/test cases/rust/1 basic/subdir/prog.rs new file mode 100644 index 0000000..b171a80 --- /dev/null +++ b/test cases/rust/1 basic/subdir/prog.rs @@ -0,0 +1,3 @@ +fn main() { + println!("rust compiler is working"); +} diff --git a/test cases/rust/1 basic/test.json b/test cases/rust/1 basic/test.json new file mode 100644 index 0000000..95e6ced --- /dev/null +++ b/test cases/rust/1 basic/test.json @@ -0,0 +1,8 @@ +{ + "installed": [ + {"type": "exe", "file": "usr/bin/rust-program"}, + {"type": "pdb", "file": "usr/bin/rust-program"}, + {"type": "exe", "file": "usr/bin/rust-program2"}, + {"type": "pdb", "file": "usr/bin/rust-program2"} + ] +} -- cgit v1.2.3