diff options
author | Florian Dold <florian@dold.me> | 2023-02-15 23:32:42 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-16 02:50:29 +0100 |
commit | 825d2c4352022e7397854b2bd9ba7d3589873c07 (patch) | |
tree | d23530bf8408367439e6b3820ea0c4269bfeb39a /packages/taler-harness/src/index.ts | |
parent | cb2f4c21d85707abb0221cbf2a859a98836b2d44 (diff) | |
download | wallet-core-825d2c4352022e7397854b2bd9ba7d3589873c07.tar.xz |
make wallet-cli runnable under qtart
Diffstat (limited to 'packages/taler-harness/src/index.ts')
-rw-r--r-- | packages/taler-harness/src/index.ts | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/packages/taler-harness/src/index.ts b/packages/taler-harness/src/index.ts index e4ee25dae..14b8a4302 100644 --- a/packages/taler-harness/src/index.ts +++ b/packages/taler-harness/src/index.ts @@ -23,7 +23,6 @@ import os from "os"; import path from "path"; import { Amounts, - clk, Configuration, decodeCrock, Logger, @@ -38,6 +37,7 @@ 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"; +import { clk } from "@gnu-taler/taler-util/clk"; const logger = new Logger("taler-harness:index.ts"); @@ -75,6 +75,15 @@ const advancedCli = testingCli.subcommand("advancedArgs", "advanced", { }); advancedCli + .subcommand("decode", "decode", { + help: "Decode base32-crockford.", + }) + .action((args) => { + const enc = fs.readFileSync(0, "utf8"); + console.log(decodeCrock(enc.trim())); + }); + +advancedCli .subcommand("bench1", "bench1", { help: "Run the 'bench1' benchmark", }) @@ -272,7 +281,7 @@ testingCli help: "Produce less output.", }) .flag("noTimeout", ["--no-timeout"], { - help: "Do not time out tests." + help: "Do not time out tests.", }) .action(async (args) => { await runTests({ |