diff options
Diffstat (limited to '')
-rw-r--r-- | test cases/rust/1 basic/clippy.toml | 1 | ||||
-rw-r--r-- | test cases/rust/1 basic/meson.build | 9 | ||||
-rw-r--r-- | test cases/rust/1 basic/prog.rs | 4 | ||||
-rw-r--r-- | test cases/rust/1 basic/subdir/meson.build | 2 | ||||
-rw-r--r-- | test cases/rust/1 basic/subdir/prog.rs | 3 | ||||
-rw-r--r-- | test cases/rust/1 basic/test.json | 8 |
6 files changed, 27 insertions, 0 deletions
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"} + ] +} |