Skip to content

make: clean tests better #16986

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

Closed
wants to merge 1 commit into from
Closed

make: clean tests better #16986

wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Apr 6, 2025

  1. 'make clean' in the root dir now also invokes 'make clean' in the tests subdir so that it cleans up better recursively. The Makefile.am does not list 'tests' as a normal subdir to avoid building that directory for a normal make invoke.

  2. 'make clean' in the tests/libtest and tests/unit directories now explicitly remove the unity build executables even if this is not a unit build. This, because those files may be leftovers from previous builds and such leftovers can otherwise linger around and since 'runtests.pl' dynamically acts differently based on the mere presence of those files, they can keep you fooled for a while until you realize...

1. 'make clean' in the root dir now also invokes 'make clean' in the
tests subdir so that it cleans up better recursively. The Makefile.am
does not list 'tests' as a normal subdir to avoid building that
directory for a normal make invoke.

2. 'make clean' in the tests/libtest and tests/unit directories now
*explicitly* remove the unity build executables even if this is not a
unit build. This, because those files may be leftovers from previous
builds and such leftovers can otherwise linger around and since
'runtests.pl' dynamically acts differently based on the mere *presence*
of those files, they can keep you fooled for a while until you
realize...
@bagder bagder closed this in d3761bb Apr 6, 2025
@bagder bagder deleted the bagder/test-clean branch April 6, 2025 11:13
vszakats added a commit to vszakats/curl that referenced this pull request Apr 14, 2025
Sync clean target with other test bundles.

Follow-up to d3761bb curl#16986
vszakats added a commit that referenced this pull request Apr 14, 2025
Sync clean target with other test bundles.

Follow-up to d3761bb #16986
Closes #17053
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
1. 'make clean' in the root dir now also invokes 'make clean' in the
tests subdir so that it cleans up better recursively. The Makefile.am
does not list 'tests' as a normal subdir to avoid building that
directory for a normal make invoke.

2. 'make clean' in the tests/libtest and tests/unit directories now
*explicitly* remove the unity build executables even if this is not a
unit build. This, because those files may be leftovers from previous
builds and such leftovers can otherwise linger around and since
'runtests.pl' dynamically acts differently based on the mere *presence*
of those files, they can keep you fooled for a while until you
realize...

Closes curl#16986
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
Sync clean target with other test bundles.

Follow-up to d3761bb curl#16986
Closes curl#17053
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants