forked from lix-project/lix-installer
f58280a11a
* Make plans versioned * Delint * speeeeeeeeling * remove file that was dead * Flesh out docs and improve public API * Speeling * Fixups * Fix doctests * Do a better job with actionstate * Add some more docs * Fix doctest * Make CLI stuff optional * Touchup * Speeling * Add fish support * Add shell tests * Add login shell tests * Improve provisioning behavior of shell profiles * Make created shell profiles executable * Bump nix * Try interactive shell * Fixup merge * Bad yaml, bad * Tweak ci * Set GITHUB_PATH * Do github runner automatically * Use GITHUB_PATH more * use login shells again * Ouytput github path in ci * Okay so GITHUB_PATH is a UNIX socket? * Okay yup they are UNIX sockets * Have the macs dump their github path * YAML stuff * Pass github path in invocation * Bump plans * Okay it is not a socket * Remove debugging * Review fixes * Pass correct shell arg to mac * Echo github path * Echo the path, then... * Join GITHUB_PATH writes
30 lines
1.1 KiB
Rust
30 lines
1.1 KiB
Rust
use harmonic::InstallPlan;
|
|
|
|
const LINUX_MULTI: &str = include_str!("./fixtures/linux/linux-multi.json");
|
|
const STEAM_DECK: &str = include_str!("./fixtures/linux/steam-deck.json");
|
|
const DARWIN_MULTI: &str = include_str!("./fixtures/darwin/darwin-multi.json");
|
|
|
|
// Ensure existing plans still parse
|
|
// If this breaks and you need to update the fixture, disable these tests, bump harmonic to a new version, and update the plans.
|
|
#[test]
|
|
fn plan_compat_linux_multi() -> eyre::Result<()> {
|
|
let _: InstallPlan = serde_json::from_str(LINUX_MULTI)?;
|
|
Ok(())
|
|
}
|
|
|
|
// Ensure existing plans still parse
|
|
// If this breaks and you need to update the fixture, disable these tests, bump harmonic to a new version, and update the plans.
|
|
#[test]
|
|
fn plan_compat_steam_deck() -> eyre::Result<()> {
|
|
let _: InstallPlan = serde_json::from_str(STEAM_DECK)?;
|
|
Ok(())
|
|
}
|
|
|
|
// Ensure existing plans still parse
|
|
// If this breaks and you need to update the fixture, disable these tests, bump harmonic to a new version, and update the plans.
|
|
#[test]
|
|
fn plan_compat_darwin_multi() -> eyre::Result<()> {
|
|
let _: InstallPlan = serde_json::from_str(DARWIN_MULTI)?;
|
|
Ok(())
|
|
}
|