Skip to content

tests: net: http: also build with clang #93386

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

Merged
merged 4 commits into from
Aug 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions scripts/ci/test_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __repr__(self):

class Filters:
def __init__(self, modified_files, ignore_path, alt_tags, testsuite_root,
pull_request=False, platforms=[], detailed_test_id=True, quarantine_list=None, tc_roots_th=20):
pull_request=False, platforms=[], detailed_test_id=False, quarantine_list=None, tc_roots_th=20):
self.modified_files = modified_files
self.testsuite_root = testsuite_root
self.resolved_files = []
Expand Down Expand Up @@ -137,8 +137,8 @@ def process(self):
def get_plan(self, options, integration=False, use_testsuite_root=True):
fname = "_test_plan_partial.json"
cmd = [f"{zephyr_base}/scripts/twister", "-c"] + options + ["--save-tests", fname ]
if not self.detailed_test_id:
cmd += ["--no-detailed-test-id"]
if self.detailed_test_id:
cmd += ["--detailed-test-id"]
if self.testsuite_root and use_testsuite_root:
for root in self.testsuite_root:
cmd+=["-T", root]
Expand Down Expand Up @@ -485,12 +485,13 @@ def parse_args():
n = ts.get("name")
a = ts.get("arch")
p = ts.get("platform")
t = ts.get("toolchain")
if TwisterStatus(ts.get('status')) == TwisterStatus.ERROR:
logging.info(f"Error found: {n} on {p} ({ts.get('reason')})")
errors += 1
if (n, a, p,) not in dup_free_set:
if (n, a, p, t) not in dup_free_set:
dup_free.append(ts)
dup_free_set.add((n, a, p,))
dup_free_set.add((n, a, p, t,))

logging.info(f'Total tests to be run: {len(dup_free)}')
with open(".testplan", "w") as tp:
Expand Down
2 changes: 1 addition & 1 deletion scripts/pylib/twister/twisterlib/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def synopsis(self):

logger.info("")
logger.info("To rerun the tests, call twister using the following commandline:")
extra_parameters = '' if detailed_test_id else ' --no-detailed-test-id'
extra_parameters = '' if not detailed_test_id else ' --detailed-test-id'
logger.info(f"west twister -p <PLATFORM> -s <TEST ID>{extra_parameters}, for example:")
logger.info("")
logger.info(
Expand Down
20 changes: 13 additions & 7 deletions tests/net/lib/http_server/tls/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ common:
- net
- server
- socket
integration_platforms:
- native_sim
- qemu_x86
platform_allow:
- native_sim
- qemu_x86
tests:
net.http.server.tls: {}
net.http.server.tls:
platform_allow:
- qemu_x86
integration_platforms:
- qemu_x86
net.http.server.tls.toolchain:
platform_allow:
- native_sim
integration_platforms:
- native_sim
integration_toolchains:
- host
- llvm
Loading