Skip to content

Conversation

@carusogabriel
Copy link
Contributor

@carusogabriel carusogabriel commented Feb 4, 2018

AFAICT is safety in clean them, and there are a lot of them usually 😅

@KalleZ
Copy link
Member

KalleZ commented Feb 5, 2018

Hmm what about exp files too? Maybe I can do something similar for Windows when I'm back tomorrow

@carusogabriel
Copy link
Contributor Author

Makefile.global Outdated
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.diff -o -name \*.diff | xargs rm -f
Copy link
Member

Choose a reason for hiding this comment

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

The -o means "or", so putting the same thing on both sides doesn't make much sense ^^ Maybe find . -name \*.diff -o -name \*.out -o -name \*.log | xargs rm -f?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Always teaching me, thanks 😄

Makefile.global Outdated
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.diff -o -name \*.out -o -name \*.log | xargs rm -f
Copy link
Member

Choose a reason for hiding this comment

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

This will also catch some unrelated stuff, like config.log. This probably needs to be restricted to tests/ directories or something.

Copy link
Contributor Author

@carusogabriel carusogabriel Feb 9, 2018

Choose a reason for hiding this comment

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

I removed this for now, keeping only *.diff and *.out. I'll figure out a better clean scripts for our tests so we can even include *.php and *.exp as well :)

@nikic
Copy link
Member

nikic commented Feb 9, 2018

I don't think this PR makes sense in the current form. Either we should be removing all test artifacts, or none of them. Just dropping two out of something like six files seems neither here nor there.

@carusogabriel
Copy link
Contributor Author

@nikic Closing for now. I'll search a pattern for test folders and its files and how to remove them without touch others ☺️

@carusogabriel carusogabriel deleted the patch-1 branch February 9, 2018 21:25
@nikic
Copy link
Member

nikic commented Feb 9, 2018

I'm also not totally sure if we should be doing this at all. The main purpose of make clean is to remove build artifacts in order to trigger a full (non-incremental) rebuild. Tests aren't really related to that.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants