Skip to content

Conversation

@fitzgen
Copy link
Member

@fitzgen fitzgen commented Nov 28, 2017

And then in the process I noticed that we weren't running the layout tests for any of the libclang version-specific expectation files, so I also fixed that.

r? @emilio or @pepyakin

…ions

Only generating bindings depends on which libclang version we are dealing
with. Running the test expectations' layout tests does not change between
libclang versions, so these were redundant tests.

Note that we have not been testing the expected bindings that differ across
libclang versions (the nested sub-directories aren't automatically picked up by
cargo) and this commit does not change that.
…ations

This adds a build.rs to generate

    #[path="$FILE"]
    mod $FILE_AS_IDENT;

for each $FILE in our libclang version-specific directories. We need to do this
to get those files' layout tests to run because cargo doesn't automatically pick
up tests in subdirectories.
@emilio
Copy link
Contributor

emilio commented Nov 28, 2017

@bors-servo r+

@bors-servo
Copy link

📌 Commit 1c2172f has been approved by emilio

@bors-servo
Copy link

⌛ Testing commit 1c2172f with merge 0af9c89...

bors-servo pushed a commit that referenced this pull request Nov 28, 2017
Remove unnecessary ci jobs

And then in the process I noticed that we weren't running the layout tests for any of the libclang version-specific expectation files, so I also fixed that.

r? @emilio or @pepyakin
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: emilio
Pushing 0af9c89 to master...

@bors-servo bors-servo merged commit 1c2172f into rust-lang:master Nov 28, 2017
@fitzgen
Copy link
Member Author

fitzgen commented Nov 28, 2017

Thanks @emilio !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants