29 lines
1.2 KiB
Swift
29 lines
1.2 KiB
Swift
// AdwSmoke.swift
|
|
// Tier-6-only runtime smoke test for Adw (Phase E5). Proves — against the
|
|
// REAL libadwaita-1, linked at runtime — that the generated bindings reach
|
|
// real libadwaita C symbols.
|
|
//
|
|
// `getMajorVersion()`/`getMinorVersion()` reach `adw_get_major_version`/
|
|
// `adw_get_minor_version`, plain namespace-level free functions. Version
|
|
// functions never call `adw_init()`, so no GTK display connection is
|
|
// required. 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 Adw
|
|
|
|
@Suite("Tier 6 Adw smoke tests")
|
|
struct AdwSmokeTests {
|
|
@Test("getMajorVersion()/getMinorVersion() reach the real adw_get_major_version/adw_get_minor_version and report libadwaita 1")
|
|
func versionFunctionsReachRealAdw() throws {
|
|
#expect(getMajorVersion() == 1)
|
|
// libadwaita's minor version is a real, non-placeholder value
|
|
// reported by the linked library, not a stubbed default.
|
|
#expect(getMinorVersion() >= 0)
|
|
}
|
|
}
|