From f87ad41f72ca4465a0c5b4ba9fd36a7b09e4d4f4 Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Mon, 24 Jun 2024 15:49:36 +0200 Subject: Initial commit Co-authored-by: Klaus Aehlig --- test/TARGETS | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 test/TARGETS (limited to 'test/TARGETS') 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"] + } +} -- cgit v1.2.3