PureXML/Package.swift
Mihaela Mihaljevic 925172cd84
chore(test): vendor the XSTS archive (unmodified) under Tests/Fixtures (#322)
Saves the W3C XML Schema Test Suite (2006-11-06) in the repo as the
complete, unmodified xsts-2007-06-20.tar.gz (4.4 MB), the only form the
W3C Document License permits redistributing. The extracted 39,399 files
are still never committed (that would be a modified redistribution).

A README records the provenance, SHA-256, and license. scripts/fetch-xsts.sh
now extracts this vendored archive when present (no network) and only
downloads as a fallback. The archive is excluded from the test bundle in
Package.swift since the runner reads it off disk via XSTS_ROOT, not from
resources.
2026-06-26 09:20:37 +02:00

37 lines
904 B
Swift

// swift-tools-version: 6.1
import PackageDescription
let package = Package(
name: "PureXML",
products: [
.library(
name: "PureXML",
targets: ["PureXML"],
),
],
dependencies: [],
targets: [
.target(
name: "PureXML",
path: "Sources",
),
.testTarget(
name: "PureXMLPublicAPITests",
dependencies: ["PureXML"],
path: "PublicAPITests",
),
.testTarget(
name: "PureXMLTests",
dependencies: ["PureXML"],
path: "Tests",
// The vendored XSTS archive is consumed off-disk via XSTS_ROOT, never
// from the test bundle, so keep it out of the copied resources.
exclude: ["Fixtures/xsts"],
resources: [
.copy("Fixtures"),
],
),
],
)