19 lines
801 B
Rust
19 lines
801 B
Rust
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
use std::path::Path;
|
|
|
|
#[test]
|
|
fn test_documentation_files_exist() {
|
|
assert!(Path::new("docs/status.md").exists(), "docs/status.md must exist");
|
|
assert!(Path::new("docs/comparison.md").exists(), "docs/comparison.md must exist");
|
|
assert!(Path::new("docs/building.md").exists(), "docs/building.md must exist");
|
|
assert!(Path::new("LICENSE").exists(), "LICENSE must exist");
|
|
}
|
|
|
|
#[test]
|
|
fn test_flatpak_manifest_contains_pipewire_and_wayland() {
|
|
let manifest = std::fs::read_to_string("packaging/flatpak/io.github.molotov.Molotov.yaml")
|
|
.expect("Flatpak manifest should exist");
|
|
assert!(manifest.contains("--socket=wayland"));
|
|
assert!(manifest.contains("--socket=pipewire"));
|
|
assert!(manifest.contains("--device=dri"));
|
|
}
|