diff options
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()); + } +} |