summaryrefslogtreecommitdiff
path: root/tests/compare.ts
diff options
context:
space:
mode:
authorcyan <cyjan@mrcyjanek.net>2024-12-30 15:07:11 +0100
committerGitHub <noreply@github.com>2024-12-30 15:07:11 +0100
commit8d3a64e05d60924272275d5674db5345f701ba2d (patch)
treedf7e63d9f2be7b550254ef7c7777d45134bd73af /tests/compare.ts
parent35ded9142e3915c7cdf6d64c7a0f0d797fcac8c7 (diff)
parent785aca81ea4aa0081a92198e19d680d9661cba9d (diff)
Merge branch 'develop' into zano
Diffstat (limited to 'tests/compare.ts')
-rwxr-xr-xtests/compare.ts17
1 files changed, 3 insertions, 14 deletions
diff --git a/tests/compare.ts b/tests/compare.ts
index 2fd27b8..8c13fc5 100755
--- a/tests/compare.ts
+++ b/tests/compare.ts
@@ -1,24 +1,13 @@
import { assertEquals } from "jsr:@std/assert";
-import {
- loadMoneroDylib,
- loadWowneroDylib,
- moneroSymbols,
- WalletManager,
- wowneroSymbols,
-} from "../impls/monero.ts/mod.ts";
+import { WalletManager } from "../impls/monero.ts/mod.ts";
+import { loadDylib } from "./utils.ts";
const coin = Deno.args[0] as "monero" | "wownero";
const version = Deno.args[1];
const walletInfo = JSON.parse(Deno.args[2]);
-if (coin === "monero") {
- const dylib = Deno.dlopen(`tests/libs/${version}/monero_libwallet2_api_c.so`, moneroSymbols);
- loadMoneroDylib(dylib);
-} else {
- const dylib = Deno.dlopen(`tests/libs/${version}/wownero_libwallet2_api_c.so`, wowneroSymbols);
- loadWowneroDylib(dylib);
-}
+loadDylib(coin, version);
const walletManager = await WalletManager.new();
const wallet = await walletManager.openWallet(walletInfo.path, walletInfo.password);