Skip to content

tests: convert unit tests into libtests - #22471

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/lib1398
Closed

tests: convert unit tests into libtests#22471
bagder wants to merge 2 commits into
masterfrom
bagder/lib1398

Conversation

@bagder

@bagder bagder commented Aug 3, 2026

Copy link
Copy Markdown
Member

These use only public libcurl functions and should therefore be libtests

It was previously a unit test but it uses only public library functions
@bagder bagder added the tests label Aug 3, 2026
It uses only public libcurl functions
@bagder bagder changed the title tests: convert 1398 into a libtest tests: convert unit tests into libtests Aug 3, 2026
@bagder
bagder requested a review from Copilot August 3, 2026 11:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR moves two tests (1396 and 1398) from the unit-test harness into the libtest harness, aligning with the stated intent that they only exercise public libcurl APIs.

Changes:

  • Remove unit1396/unit1398 from the unit-test build list and add lib1396/lib1398 to the libtest build list.
  • Rename the test entry functions from test_unit#### to test_lib#### in the corresponding libtest sources.
  • Update test1396 and test1398 definitions to run via <tool>lib%TESTNUMBER</tool> instead of marking them as unittest.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/unit/Makefile.inc Drops 1396/1398 from the unit test compilation set.
tests/libtest/Makefile.inc Adds 1396/1398 to the libtest compilation set.
tests/libtest/lib1396.c Renames the libtest entry function to the libtest naming convention.
tests/libtest/lib1398.c Renames the libtest entry function to the libtest naming convention.
tests/data/test1396 Switches the test runner from unit-test mode to lib%TESTNUMBER.
tests/data/test1398 Switches the test runner from unit-test mode to lib%TESTNUMBER.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bagder
bagder marked this pull request as ready for review August 3, 2026 11:47
@bagder bagder closed this in a2b178d Aug 3, 2026
@bagder
bagder deleted the bagder/lib1398 branch August 3, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants