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

TRIBITS_ADD_ADVANCED_TEST puts in an extra TRUE in OVERALL_WORKING_DIRECTORY #180

Closed
bathmatt opened this issue Feb 28, 2017 · 6 comments
Closed
Assignees

Comments

@bathmatt
Copy link

If I add a test as follows

TRIBITS_ADD_ADVANCED_TEST(
    ${IN_TEST_NAME}
    OVERALL_WORKING_DIRECTORY TEST_NAME

I get a cmake file that says
Drekar_plasma_oscillation_rtc_2D.cmake:SET(OVERALL_WORKING_DIRECTORY "TEST_NAMETRUE")

Why did it add the TRUE at the end of TEST_NAME?

@bartlettroscoe
Copy link
Member

Never saw that before. Can I see the full function call? Can you push this to a branch that I can see (perhaps inside SNL SRN)?

@bartlettroscoe bartlettroscoe self-assigned this Mar 1, 2017
@bathmatt
Copy link
Author

bathmatt commented Mar 1, 2017 via email

@bartlettroscoe
Copy link
Member

@bathmatt,

You need to change:

SKIP_CLEAN_OVERALL_WORKING_DIRECTORY TRUE

to

SKIP_CLEAN_OVERALL_WORKING_DIRECTORY

as documented at:

The way the parser used by this works is very strange but what it is doing is it is doing is removing the option SKIP_CLEAN_OVERALL_WORKING_DIRECTORY and then lumping TRUE with the argument OVERALL_WORKING_DIRECTORY TEST_NAME TRUE.

We need to add better checking for these arguments. We got that parser from someone else back in 2008 before I even started working with CMake. Now that CMake provides a native parser function:

we might look into using that to see if it does something more sane (and might even go faster).

@bartlettroscoe
Copy link
Member

@bathmatt, is this fixed on your end? Can I close this Issue?

BTW, I created #181 to replace the input function parser which might help catch and report problems like this a little better.

@bathmatt
Copy link
Author

bathmatt commented Mar 2, 2017 via email

@bartlettroscoe
Copy link
Member

Thanks...

Closing as complete after confirmation from @bathmatt.

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

No branches or pull requests

2 participants