feat: add basic

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-20 19:25:59 +02:00
commit fe48259d06
18 changed files with 2608 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
use crate::common::run_test;
#[tokio::test]
async fn can_run_for_env() -> anyhow::Result<()> {
run_test("can_run_for_env").await?;
Ok(())
}

View File

@@ -0,0 +1,2 @@
cuddle/clusters:
dev:

View File

@@ -0,0 +1,6 @@
{
hello = "world",
some = {
thing = "some"
}
}

View File

@@ -0,0 +1,16 @@
use cuddle_clusters::process::ProcessOpts;
pub(crate) async fn run_test(name: &str) -> anyhow::Result<()> {
let _ = tracing_subscriber::fmt::try_init();
println!("running for: {name}");
let current_dir = std::env::current_dir()?;
cuddle_clusters::process_opts(ProcessOpts {
path: current_dir.join("tests").join(name),
})
.await?;
Ok(())
}

View File

@@ -0,0 +1,3 @@
pub mod common;
mod can_run_for_env;