diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-02-02 17:05:02 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-02-02 17:05:02 +0100 |
commit | 1182531ed31ccff36e26121ae0cc5b3243669317 (patch) | |
tree | 98ea9ccb5e89ae0c3250e24a9ceb95dae53f77d5 /module/ri-engine/src/test | |
parent | 2f4e334f432f56ba9da8bace16ca89d76fd546e7 (diff) | |
download | rules-sandbox-1182531ed31ccff36e26121ae0cc5b3243669317.tar.gz rules-sandbox-1182531ed31ccff36e26121ae0cc5b3243669317.tar.bz2 rules-sandbox-1182531ed31ccff36e26121ae0cc5b3243669317.tar.xz rules-sandbox-1182531ed31ccff36e26121ae0cc5b3243669317.zip |
Creating engine.yaml and engine.ninja generator.
Diffstat (limited to 'module/ri-engine/src/test')
-rw-r--r-- | module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeWireguardTestMain.java | 2 | ||||
-rw-r--r-- | module/ri-engine/src/test/java/io/trygvis/rules/engine/NinjaTestMain.java | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeWireguardTestMain.java b/module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeWireguardTestMain.java index 4d88e39..cf6b1c8 100644 --- a/module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeWireguardTestMain.java +++ b/module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeWireguardTestMain.java @@ -14,7 +14,7 @@ class AcmeWireguardTestMain { c.outputState = new File("out/acme/wireguard.yaml"); c.agendaGroups = new String[]{"init", "generate"}; c.generatedOutput = new File("acme-wireguard"); - c.includes = new String[]{ + c.outputIncludes = new String[]{ "Wg*", "Machine", "DnsEntry", diff --git a/module/ri-engine/src/test/java/io/trygvis/rules/engine/NinjaTestMain.java b/module/ri-engine/src/test/java/io/trygvis/rules/engine/NinjaTestMain.java new file mode 100644 index 0000000..d62eec1 --- /dev/null +++ b/module/ri-engine/src/test/java/io/trygvis/rules/engine/NinjaTestMain.java @@ -0,0 +1,16 @@ +package io.trygvis.rules.engine; + +import io.trygvis.rules.engine.cli.NinjaCommand; + +import java.io.File; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +class NinjaTestMain { + public static void main(String[] args) throws Exception { + var c = new NinjaCommand(); + c.basedir = new File("example"); + + assertEquals(0, c.call()); + } +} |