aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-12-07 15:36:56 +0100
committerFlorian Dold <florian@dold.me>2022-12-07 15:36:56 +0100
commit0c19050ae76d85fa7da43ef5239dc1d6f0bb6a4d (patch)
tree97ae63993ca8ecb7188d3b426f0364252b85b456 /packages/taler-wallet-cli
parenta1c5f00aedb75e5e2deb6b12c3cfb06eefb355e4 (diff)
wallet: add 'env-full' test environment with merchant
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r--packages/taler-wallet-cli/src/index.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts
index dfc0f6fea..40f2273a7 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -68,6 +68,7 @@ import { runEnv1 } from "./env1.js";
import { GlobalTestState, runTestWithState } from "./harness/harness.js";
import { getTestInfo, runTests } from "./integrationtests/testrunner.js";
import { lintExchangeDeployment } from "./lint.js";
+import { runEnvFull } from "./env-full.js";
// @ts-ignore
global.TextEncoder = TextEncoder;
// @ts-ignore
@@ -910,6 +911,18 @@ advancedCli
});
advancedCli
+ .subcommand("envFull", "env-full", {
+ help: "Run a test environment for bench1",
+ })
+ .action(async (args) => {
+ const testDir = fs.mkdtempSync(path.join(os.tmpdir(), "taler-env-full-"));
+ const testState = new GlobalTestState({
+ testDir,
+ });
+ await runTestWithState(testState, runEnvFull, "env-full", true);
+ });
+
+advancedCli
.subcommand("env1", "env1", {
help: "Run a test environment for bench1",
})