Run make tests for file resolution
This commit is contained in:
parent
1169541e17
commit
9942012f41
4 changed files with 50 additions and 0 deletions
7
src/test/run-make-fulldeps/resolve-rename/Makefile
Normal file
7
src/test/run-make-fulldeps/resolve-rename/Makefile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
-include ../tools.mk
|
||||||
|
|
||||||
|
all:
|
||||||
|
$(RUSTC) -C extra-filename=-hash foo.rs
|
||||||
|
$(RUSTC) bar.rs
|
||||||
|
mv $(TMPDIR)/libfoo-hash.rlib $(TMPDIR)/libfoo-another-hash.rlib
|
||||||
|
$(RUSTC) baz.rs
|
15
src/test/run-make-fulldeps/resolve-rename/bar.rs
Normal file
15
src/test/run-make-fulldeps/resolve-rename/bar.rs
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
|
||||||
|
// file at the top-level directory of this distribution and at
|
||||||
|
// http://rust-lang.org/COPYRIGHT.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
// option. This file may not be copied, modified, or distributed
|
||||||
|
// except according to those terms.
|
||||||
|
|
||||||
|
#![crate_type = "rlib"]
|
||||||
|
|
||||||
|
extern crate foo;
|
||||||
|
|
||||||
|
pub fn bar() { foo::foo() }
|
15
src/test/run-make-fulldeps/resolve-rename/baz.rs
Normal file
15
src/test/run-make-fulldeps/resolve-rename/baz.rs
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
|
||||||
|
// file at the top-level directory of this distribution and at
|
||||||
|
// http://rust-lang.org/COPYRIGHT.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
// option. This file may not be copied, modified, or distributed
|
||||||
|
// except according to those terms.
|
||||||
|
|
||||||
|
#![crate_type = "rlib"]
|
||||||
|
|
||||||
|
extern crate bar;
|
||||||
|
|
||||||
|
pub fn baz() { bar::bar() }
|
13
src/test/run-make-fulldeps/resolve-rename/foo.rs
Normal file
13
src/test/run-make-fulldeps/resolve-rename/foo.rs
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
|
||||||
|
// file at the top-level directory of this distribution and at
|
||||||
|
// http://rust-lang.org/COPYRIGHT.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
// option. This file may not be copied, modified, or distributed
|
||||||
|
// except according to those terms.
|
||||||
|
|
||||||
|
#![crate_type = "rlib"]
|
||||||
|
|
||||||
|
pub fn foo() {}
|
Loading…
Add table
Add a link
Reference in a new issue