Skip to content

Enhancement: Add firmware URL validation tool #62

@fxstein

Description

@fxstein

Summary

Add a new script (validate_firmware_urls) to the repository to automatically validate all firmware download URLs in the firmware and firmware.labs trees.

Requirements

  • Recursively find all .url files in firmware and firmware.labs directories.
  • For each .url file, extract the first line as the download URL.
  • Check each URL for HTTP 200 status using curl (or similar tool).
  • Report a minimal progress indicator (dot for OK, X for broken) and a summary (total, OK, broken) when run normally.
  • Support a --debug option to print detailed per-file output, including which files are checked, their status, and any errors.
  • List all broken or missing URLs at the end, with their file paths and error codes.
  • Handle filenames with spaces and special characters robustly.
  • Exit with code 1 if any URLs are broken, 0 if all are valid.
  • Script should be executable and follow the style of install_fromsource.

Motivation

This tool will help maintainers and contributors ensure that all firmware download links in the project remain valid, improving reliability and user experience. It is especially useful for automated CI checks and large-scale firmware management workflows.

Acceptance Criteria

  • Script is present in the repo and executable.
  • Running the script validates all URLs and provides clear output in both minimal and debug modes.
  • Broken URLs are clearly listed and the script exits nonzero if any are found.
  • Handles all edge cases (spaces, missing files, etc.) gracefully.

This issue tracks the addition and ongoing improvement of the firmware URL validation tool.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions