diff options
| author | Im-Beast <franik.mateusz@gmail.com> | 2024-12-07 16:54:34 +0100 |
|---|---|---|
| committer | Im-Beast <franik.mateusz@gmail.com> | 2024-12-07 16:54:34 +0100 |
| commit | 344819a8f5045bd4e63ce099ce52b6bffd3a6720 (patch) | |
| tree | 37b3054436e1d8ea94da10861c2f7fc12bdb5737 /tests/compare.ts | |
| parent | 4fb071af2e65b20f99d5a9c5bf461f55c224f1fb (diff) | |
tests: use the new download_deps script, run tests on macos
Diffstat (limited to 'tests/compare.ts')
| -rwxr-xr-x | tests/compare.ts | 17 |
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); |
