diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2024-06-24 15:49:36 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-06-24 15:49:36 +0200 |
commit | f87ad41f72ca4465a0c5b4ba9fd36a7b09e4d4f4 (patch) | |
tree | 24d4a3a5975df2046714c6bc114d5d050bdc61fc /test/TARGETS | |
download | rules-rust-f87ad41f72ca4465a0c5b4ba9fd36a7b09e4d4f4.tar.gz |
Initial commit
Co-authored-by: Klaus Aehlig <klaus.aehlig@huawei.com>
Diffstat (limited to 'test/TARGETS')
-rw-r--r-- | test/TARGETS | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/test/TARGETS b/test/TARGETS new file mode 100644 index 0000000..5115bdf --- /dev/null +++ b/test/TARGETS @@ -0,0 +1,98 @@ +{ "static": + { "type": ["@", "test-rules", "test_rules", "test_case"] + , "name": ["static"] + , "targets": + [ "+baz-lib" + , "+bar-lib" + , "-bar-missing-baz" + , "+foo-lib" + , "+main" + , "-main-wrong-dep" + , "-main-missing-dep" + ] + , "asserts": + [ "test -f baz-lib/baz/libbaz.rlib" + , "! test -f baz-lib/baz/libbaz.rmeta" + , "test -f bar-lib/bar/libbar.rlib" + , "test -f main/bin/main" + , "./main/bin/main | grep baz" + , "./main/bin/main | grep bar" + , "./main/bin/main | grep foo" + ] + , "data": [["TREE", null, "static"]] + } +, "static-native": + { "type": ["@", "test-rules", "test_rules", "test_case"] + , "name": ["static-native"] + , "targets": + [ "+baz-lib" + , "+bar-lib" + , "-bar-missing-baz" + , "+foo-lib" + , "+main" + , "-main-wrong-dep" + , "-main-missing-dep" + ] + , "asserts": + [ "test -f baz-lib/baz/libbaz.a" + , "! test -f baz-lib/baz/libbaz.rmeta" + , "! test -f baz-lib/baz/libbaz.rlib" + , "test -f bar-lib/bar/libbar.rlib" + , "test -f foo-lib/foo/libfoo.a" + , "test -f main/bin/main" + , "./main/bin/main | grep baz" + , "./main/bin/main | grep bar" + , "./main/bin/main | grep foo" + ] + , "data": [["TREE", null, "static-native"]] + } +, "dynamic": + { "type": ["@", "test-rules", "test_rules", "test_case"] + , "name": ["dynamic"] + , "targets": + [ "+baz-lib" + , "+bar-lib" + , "-bar-missing-baz" + , "+foo-lib" + , "+main" + , "-main-wrong-dep" + , "-main-missing-dep" + ] + , "asserts": + [ "test -f baz-lib/baz/libbaz.rlib" + , "! test -f baz-lib/baz/libbaz.rmeta" + , "test -f bar-lib/bar/libbar.rlib" + , "test -f main/bin/main" + , "./main/bin/main | grep baz" + , "./main/bin/main | grep bar" + , "./main/bin/main | grep foo" + ] + , "data": [["TREE", null, "dynamic"]] + } +, "build-script": + { "type": ["@", "test-rules", "test_rules", "test_case"] + , "name": ["build-script"] + , "targets": ["+build_script", "+main"] + , "asserts": + [ "test -f build_script/bar/build_script" + , "test -f build_script/bar/file_args" + , "test -f build_script/bar/out" + , "! ./main/bin/main | grep bar" + , "./main/bin/main | grep \"build script\"" + , "./main/bin/main | grep foo" + ] + , "data": [["TREE", null, "build-script"]] + } +, "ALL": + { "type": "install" + , "deps": + [ "static" + , "static-native" + , "dynamic" + , "build-script" + , ["./", "c-from-rust", "c-from-rust"] + ] + , "dirs": [[["./", "rust-from-c", "TESTS"], "rust-from-c"]] + , "tainted": ["test"] + } +} |