From e65cf1d265210738a9b3c0b811fbfeffa0741c39 Mon Sep 17 00:00:00 2001 From: "Klaus T. Aehlig" Date: Tue, 25 Jun 2024 17:59:39 +0200 Subject: Import rust rules and add a minimal example Note that the PATH for rust targets also has to include that for the C compiler and hence also coreutils, as the rust compiler calls out to `cc`. --- test/rust/hello/TARGETS | 8 ++++++++ test/rust/hello/test_hello.sh | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 test/rust/hello/TARGETS create mode 100644 test/rust/hello/test_hello.sh (limited to 'test/rust/hello') diff --git a/test/rust/hello/TARGETS b/test/rust/hello/TARGETS new file mode 100644 index 0000000..ab48819 --- /dev/null +++ b/test/rust/hello/TARGETS @@ -0,0 +1,8 @@ +{ "": {"type": "install", "tainted": ["test"], "deps": ["hello"]} +, "hello": + { "type": ["@", "rules", "shell/test", "script"] + , "name": ["hello"] + , "test": ["test_hello.sh"] + , "deps": [["@", "src", "rust/hello", ""]] + } +} diff --git a/test/rust/hello/test_hello.sh b/test/rust/hello/test_hello.sh new file mode 100644 index 0000000..531f888 --- /dev/null +++ b/test/rust/hello/test_hello.sh @@ -0,0 +1,3 @@ +set -e + +./hello | grep -i world -- cgit v1.2.3