Skip to content

Conversation

@JosiahWI
Copy link
Contributor

@JosiahWI JosiahWI commented Jun 10, 2024

Some AuTests require Netcat as a client, but do not get skipped if it is missing. This updates the tests so that they get skipped if Netcat is not installed.

EDIT: This updates CMakeLists.txt and autest.sh to fail appropriately if Netcat is missing.

Some AuTests require Netcat as a client, but do not get skipped if it is
missing. This updates the tests so that they get skipped if Netcat is
not installed.
@JosiahWI JosiahWI added this to the 10.1.0 milestone Jun 10, 2024
@JosiahWI JosiahWI self-assigned this Jun 10, 2024
Copy link
Contributor

@bneradt bneradt left a comment

Choose a reason for hiding this comment

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

Looks good to me. I double-checked that each of these does indeed use nc or calls a script that does.

As usual, I'll let a non-Yahoo reviewer approve.

@JosiahWI
Copy link
Contributor Author

We may not want to merge this because it would cause CI to pass without indicating an issue if the nc command were missing, and we need those tests to run.

@ywkaras ywkaras requested a review from shinrich June 10, 2024 19:15
@JosiahWI JosiahWI marked this pull request as draft June 11, 2024 12:20
@JosiahWI JosiahWI added the Build work related to build configuration or environment label Jun 20, 2024
@JosiahWI JosiahWI changed the title Skip appropriate AuTests if Netcat is not present Fail earlier if Netcat is not installed Jun 20, 2024
@JosiahWI
Copy link
Contributor Author

I've repurposed the PR to have the CMake build and autest.sh check for netcat and fail if it is missing, rather than skipping tests based on its presence.

@JosiahWI JosiahWI marked this pull request as ready for review June 20, 2024 17:32
Copy link
Contributor

@bneradt bneradt left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for giving this nc requirement explicit messaging.

@JosiahWI JosiahWI merged commit a16e0f8 into apache:master Jun 20, 2024
@JosiahWI JosiahWI deleted the fix/autest-netcat branch June 20, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AuTest Build work related to build configuration or environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants