Skip to content

Commit

Permalink
Add test for --dep-info.
Browse files Browse the repository at this point in the history
  • Loading branch information
metajack committed Dec 13, 2013
1 parent 9365375 commit b2ccd4c
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/run-make/dep-info/Makefile
@@ -0,0 +1,11 @@
-include ../tools.mk
all:
$(RUSTC) --dep-info --lib lib.rs
sleep 1
touch foo.rs
-rm -f $(TMPDIR)/done
$(MAKE) -f Makefile.foo
rm $(TMPDIR)/done
pwd
$(MAKE) -df Makefile.foo
rm $(TMPDIR)/done && exit 1 || exit 0
11 changes: 11 additions & 0 deletions src/test/run-make/dep-info/Makefile.foo
@@ -0,0 +1,11 @@
ifeq ($(shell uname),Darwin)
LIBEXT=dylib
else
LIBEXT=so
endif

$(TMPDIR)/libfoo-b517899a-0.1.$(LIBEXT):
$(RUSTC) --dep-info --lib lib.rs
touch $(TMPDIR)/done

-include $(TMPDIR)/lib.d
1 change: 1 addition & 0 deletions src/test/run-make/dep-info/bar.rs
@@ -0,0 +1 @@
pub fn bar() {}
1 change: 1 addition & 0 deletions src/test/run-make/dep-info/foo.rs
@@ -0,0 +1 @@
pub fn foo() {}
4 changes: 4 additions & 0 deletions src/test/run-make/dep-info/lib.rs
@@ -0,0 +1,4 @@
#[pkgid="foo#0.1"];

pub mod foo;
pub mod bar;

13 comments on commit b2ccd4c

@bors
Copy link
Contributor

@bors bors commented on b2ccd4c Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at metajack@b2ccd4c

@bors
Copy link
Contributor

@bors bors commented on b2ccd4c Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging metajack/rust/dep-info = b2ccd4c into auto

@bors
Copy link
Contributor

@bors bors commented on b2ccd4c Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

metajack/rust/dep-info = b2ccd4c merged ok, testing candidate = 15fd0c0d

@bors
Copy link
Contributor

@bors bors commented on b2ccd4c Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on b2ccd4c Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at metajack@b2ccd4c

@bors
Copy link
Contributor

@bors bors commented on b2ccd4c Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging metajack/rust/dep-info = b2ccd4c into auto

@bors
Copy link
Contributor

@bors bors commented on b2ccd4c Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

metajack/rust/dep-info = b2ccd4c merged ok, testing candidate = 82694e78

@bors
Copy link
Contributor

@bors bors commented on b2ccd4c Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on b2ccd4c Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at metajack@b2ccd4c

@bors
Copy link
Contributor

@bors bors commented on b2ccd4c Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging metajack/rust/dep-info = b2ccd4c into auto

@bors
Copy link
Contributor

@bors bors commented on b2ccd4c Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

metajack/rust/dep-info = b2ccd4c merged ok, testing candidate = 9bbef13

@bors
Copy link
Contributor

@bors bors commented on b2ccd4c Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on b2ccd4c Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 9bbef13

Please sign in to comment.