Merge "Clean up rust tests." am: dc455395ee
Change-Id: I117a9497e9be9d12ec8b46a829867d5b92bc62f8
This commit is contained in:
@@ -215,25 +215,6 @@ func TestProcMacroDeviceDeps(t *testing.T) {
|
||||
srcs: ["foo.rs"],
|
||||
crate_name: "bar",
|
||||
}
|
||||
// Make a dummy libstd to let resolution go through
|
||||
rust_library_dylib {
|
||||
name: "libstd",
|
||||
crate_name: "std",
|
||||
srcs: ["foo.rs"],
|
||||
no_stdlibs: true,
|
||||
}
|
||||
rust_library_dylib {
|
||||
name: "libterm",
|
||||
crate_name: "term",
|
||||
srcs: ["foo.rs"],
|
||||
no_stdlibs: true,
|
||||
}
|
||||
rust_library_dylib {
|
||||
name: "libtest",
|
||||
crate_name: "test",
|
||||
srcs: ["foo.rs"],
|
||||
no_stdlibs: true,
|
||||
}
|
||||
rust_proc_macro {
|
||||
name: "libpm",
|
||||
rlibs: ["libbar"],
|
||||
|
@@ -21,51 +21,11 @@ import (
|
||||
|
||||
func GatherRequiredDepsForTest() string {
|
||||
bp := `
|
||||
rust_prebuilt_dylib {
|
||||
name: "libarena_x86_64-unknown-linux-gnu",
|
||||
srcs: [""],
|
||||
host_supported: true,
|
||||
}
|
||||
rust_prebuilt_dylib {
|
||||
name: "libfmt_macros_x86_64-unknown-linux-gnu",
|
||||
srcs: [""],
|
||||
host_supported: true,
|
||||
}
|
||||
rust_prebuilt_dylib {
|
||||
name: "libgraphviz_x86_64-unknown-linux-gnu",
|
||||
srcs: [""],
|
||||
host_supported: true,
|
||||
}
|
||||
rust_prebuilt_dylib {
|
||||
name: "libserialize_x86_64-unknown-linux-gnu",
|
||||
srcs: [""],
|
||||
host_supported: true,
|
||||
}
|
||||
rust_prebuilt_dylib {
|
||||
name: "libstd_x86_64-unknown-linux-gnu",
|
||||
srcs: [""],
|
||||
host_supported: true,
|
||||
}
|
||||
rust_prebuilt_dylib {
|
||||
name: "libsyntax_x86_64-unknown-linux-gnu",
|
||||
srcs: [""],
|
||||
host_supported: true,
|
||||
}
|
||||
rust_prebuilt_dylib {
|
||||
name: "libsyntax_ext_x86_64-unknown-linux-gnu",
|
||||
srcs: [""],
|
||||
host_supported: true,
|
||||
}
|
||||
rust_prebuilt_dylib {
|
||||
name: "libsyntax_pos_x86_64-unknown-linux-gnu",
|
||||
srcs: [""],
|
||||
host_supported: true,
|
||||
}
|
||||
rust_prebuilt_dylib {
|
||||
name: "libterm_x86_64-unknown-linux-gnu",
|
||||
srcs: [""],
|
||||
host_supported: true,
|
||||
}
|
||||
rust_prebuilt_dylib {
|
||||
name: "libtest_x86_64-unknown-linux-gnu",
|
||||
srcs: [""],
|
||||
@@ -81,6 +41,31 @@ func GatherRequiredDepsForTest() string {
|
||||
nocrt: true,
|
||||
system_shared_libs: [],
|
||||
}
|
||||
rust_library_dylib {
|
||||
name: "libstd",
|
||||
crate_name: "std",
|
||||
srcs: ["foo.rs"],
|
||||
no_stdlibs: true,
|
||||
}
|
||||
rust_library_rlib {
|
||||
name: "libstd.static",
|
||||
crate_name: "std",
|
||||
srcs: ["foo.rs"],
|
||||
no_stdlibs: true,
|
||||
}
|
||||
rust_library_dylib {
|
||||
name: "libtest",
|
||||
crate_name: "test",
|
||||
srcs: ["foo.rs"],
|
||||
no_stdlibs: true,
|
||||
}
|
||||
rust_library_rlib {
|
||||
name: "libtest.static",
|
||||
crate_name: "test",
|
||||
srcs: ["foo.rs"],
|
||||
no_stdlibs: true,
|
||||
}
|
||||
|
||||
` + cc.GatherRequiredDepsForTest(android.NoOsType)
|
||||
return bp
|
||||
}
|
||||
|
Reference in New Issue
Block a user