Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebar compile umbrella tests #873

Closed

Conversation

goertzenator
Copy link

The obvious: This branch generalizes some infrastructure in rebar_compile_SUITE so that tests can be written once and then run in both umbrella and plain application mode. Existing cases are backwards compatible, but some have been updated to be "dual use".

The less obvious: This branch adds a test that reveals multiple problems in MIB compilation.

The cases in rebar_compile_SUITE can now be run as a plain application
AND as an application in an umbrella project.  The config "apps" can
be thought of as the project directory, and a new config "subject_dir"
indicates where the test application is to be created.  In
"as_application" mode, "apps" and "subject_dir" are identical.
Existing cases are backwards compatible with "as_application" mode. In
"as_umbrella", "subject_dir" will be some subdirectory of "apps".

To be compatible with "as_umbrella", the test case must replace some
uses of "apps" with "subject_dir".  Some cases have been updated in
this patch to demonstrate this, but the main focus here is to
establish the dual-use infrastructure.
Check that header file is generated and placed correctly.
@goertzenator
Copy link
Author

Note: This branch adds 2 failing tests. Travis CI is reporting this correctly.

@tsloughter
Copy link
Collaborator

Thanks, can you rebase.

@talentdeficit have you seen this?

@talentdeficit
Copy link
Contributor

no i missed this. i largely rewrote the compiler test suite with the branch that landed a few days ago so a rebase might be tough. we should definitely land the mib tests though and try to adapt this work if it still makes sense

@goertzenator
Copy link
Author

This will never merge. Closing this PR while I prepare a new one with just the important bits.

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.

3 participants