28 lines
1.1 KiB
Swift
28 lines
1.1 KiB
Swift
// GstSmoke.swift
|
|
// Tier-6-only runtime smoke test for Gst (Phase E5). Proves — against the
|
|
// REAL libgstreamer-1.0, linked at runtime — that the generated bindings
|
|
// reach a real GStreamer C symbol.
|
|
//
|
|
// `versionString()` reaches `gst_version_string`, a plain free function that
|
|
// needs no `gst_init()` call and no pipeline/element construction — the
|
|
// simplest possible real round-trip through the generated Gst module. Uses
|
|
// only plain-public API — no `@_spi` import.
|
|
//
|
|
// Not generated. `scripts/smoke-test.sh <tier>` copies tier 1 and the selected
|
|
// tier's fixtures for tiers 2 through 5. Tier 6/all copies every tier's fixtures
|
|
// into one full-stack SmokeTests target. Only installed for tier >= 6.
|
|
|
|
import Testing
|
|
|
|
import GLib
|
|
import Gst
|
|
|
|
@Suite("Tier 6 Gst smoke tests")
|
|
struct GstSmokeTests {
|
|
@Test("versionString() reaches the real gst_version_string and reports a real GStreamer version string")
|
|
func versionStringReachesRealGst() throws {
|
|
let version = versionString()
|
|
#expect(!version.isEmpty)
|
|
#expect(version.contains("GStreamer"))
|
|
}
|
|
}
|