diff --git a/CMakeLists.txt b/CMakeLists.txt index c37db0afe51..117b4c13fe1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,6 +43,10 @@ endif () find_host_package(Boost REQUIRED) message("Path to Boost: " ${Boost_INCLUDE_DIRS}) +execute_process(COMMAND ls + WORKING_DIRECTORY ${Boost_INCLUDE_DIRS}/boost + OUTPUT_VARIABLE LS_OUTPUT) +MESSAGE( STATUS "CMD_OUTPUT:" ${LS_OUTPUT}) include(ExternalProject) diff --git a/swift/Tests/Keystore/KeyStoreTests.swift b/swift/Tests/Keystore/KeyStoreTests.swift index 62d907ccfaf..6925acd0be3 100755 --- a/swift/Tests/Keystore/KeyStoreTests.swift +++ b/swift/Tests/Keystore/KeyStoreTests.swift @@ -36,6 +36,7 @@ class KeyStoreTests: XCTestCase { var keyDirectory: URL! override func setUp() { + print("setUp()") super.setUp() let fileManager = FileManager.default @@ -76,12 +77,14 @@ class KeyStoreTests: XCTestCase { } func testLoadKeyStore() { + print("testLoadKeyStore()") let keyStore = try! KeyStore(keyDirectory: keyDirectory) XCTAssertEqual(keyStore.wallets.count, 4) XCTAssertEqual(keyStore.watches.count, 1) } func testCreateHDWallet() throws { + print("testCreateHDWallet()") let coins = [CoinType.ethereum, .binance, .smartChain] let keyStore = try KeyStore(keyDirectory: keyDirectory) let newWallet = try keyStore.createWallet(name: "name", password: "password", coins: coins) @@ -94,6 +97,7 @@ class KeyStoreTests: XCTestCase { } func testUpdateKey() throws { + print("testUpdateKey()") let keyStore = try KeyStore(keyDirectory: keyDirectory) let coins = [CoinType.ethereum, .callisto, .poanetwork] let wallet = try keyStore.createWallet(name: "name", password: "password", coins: coins) @@ -114,6 +118,7 @@ class KeyStoreTests: XCTestCase { } func testUpdateName() throws { + print("testUpdateName()") let keyStore = try KeyStore(keyDirectory: keyDirectory) let coins = [CoinType.ethereum, .callisto, .poanetwork] let wallet = try keyStore.createWallet(name: "name", password: "password", coins: coins) @@ -134,6 +139,7 @@ class KeyStoreTests: XCTestCase { } func testAddAccounts() throws { + print("testAddAccounts()") let keyStore = try KeyStore(keyDirectory: keyDirectory) let wallet = keyStore.hdWallet! _ = try keyStore.addAccounts(wallet: wallet, coins: [.ethereum, .callisto, .poanetwork], password: "password") @@ -144,6 +150,7 @@ class KeyStoreTests: XCTestCase { } func testRemoveAccounts() throws { + print("testRemoveAccounts()") let keyStore = try KeyStore(keyDirectory: keyDirectory) let coins = [CoinType.ethereum, .callisto, .poanetwork, .bitcoin] let wallet = try keyStore.createWallet(name: "name", password: "password", coins: coins) @@ -157,6 +164,7 @@ class KeyStoreTests: XCTestCase { } func testDeleteKey() throws { + print("testDeleteKey()") let keyStore = try KeyStore(keyDirectory: keyDirectory) let wallet = keyStore.keyWallet! try keyStore.delete(wallet: wallet, password: "testpassword") @@ -164,6 +172,7 @@ class KeyStoreTests: XCTestCase { } func testDeleteWallet() throws { + print("testDeleteWallet()") let keyStore = try KeyStore(keyDirectory: keyDirectory) let wallet = keyStore.hdWallet! try keyStore.delete(wallet: wallet, password: "password") @@ -171,6 +180,7 @@ class KeyStoreTests: XCTestCase { } func testImportKey() throws { + print("testImportKey()") let keyStore = try KeyStore(keyDirectory: keyDirectory) let privateKeyData = Data(hexString: "9cdb5cab19aec3bd0fcd614c5f185e7a1d97634d4225730eba22497dc89a716c")! let key = StoredKey.importPrivateKey(privateKey: privateKeyData, name: "name", password: Data("password".utf8), coin: .ethereum)! @@ -185,6 +195,7 @@ class KeyStoreTests: XCTestCase { } func testImportPrivateKeyAES256() throws { + print("testImportPrivateKeyAES256()") let keyStore = try KeyStore(keyDirectory: keyDirectory) let privateKeyData = Data(hexString: "9cdb5cab19aec3bd0fcd614c5f185e7a1d97634d4225730eba22497dc89a716c")! let key = StoredKey.importPrivateKeyWithEncryption(privateKey: privateKeyData, name: "name", password: Data("password".utf8), coin: .ethereum, encryption: StoredKeyEncryption.aes256Ctr)! @@ -199,6 +210,7 @@ class KeyStoreTests: XCTestCase { } func testImportPrivateKey() throws { + print("testImportPrivateKey()") let keyStore = try KeyStore(keyDirectory: keyDirectory) let privateKey = PrivateKey(data: Data(hexString: "9cdb5cab19aec3bd0fcd614c5f185e7a1d97634d4225730eba22497dc89a716c")!)! @@ -214,6 +226,7 @@ class KeyStoreTests: XCTestCase { } func testImportWallet() throws { + print("testImportWallet()") let keyStore = try KeyStore(keyDirectory: keyDirectory) let wallet = try keyStore.import(mnemonic: mnemonic, name: "name", encryptPassword: "newPassword", coins: [.ethereum]) let storedData = wallet.key.decryptMnemonic(password: Data("newPassword".utf8)) @@ -224,6 +237,7 @@ class KeyStoreTests: XCTestCase { } func testImportWalletAES256() throws { + print("testImportWalletAES256()") let keyStore = try KeyStore(keyDirectory: keyDirectory) let wallet = try keyStore.import(mnemonic: mnemonic, name: "name", encryptPassword: "newPassword", coins: [.ethereum], encryption: .aes256Ctr) let storedData = wallet.key.decryptMnemonic(password: Data("newPassword".utf8)) @@ -234,6 +248,7 @@ class KeyStoreTests: XCTestCase { } func testImportJSON() throws { + print("testImportJSON()") let expected = """ { @@ -327,6 +342,7 @@ class KeyStoreTests: XCTestCase { } func testExportMnemonic() throws { + print("testExportMnemonic()") let keyStore = try KeyStore(keyDirectory: keyDirectory) let wallet = try keyStore.import(mnemonic: mnemonic, name: "name", encryptPassword: "newPassword", coins: [.ethereum]) let exported = try keyStore.exportMnemonic(wallet: wallet, password: "newPassword") @@ -335,6 +351,7 @@ class KeyStoreTests: XCTestCase { } func testFileName() { + print("testFileName()") let keyStore = try! KeyStore(keyDirectory: keyDirectory) let timeZone = TimeZone(secondsFromGMT: -480)! @@ -345,6 +362,7 @@ class KeyStoreTests: XCTestCase { } func testFileNameUTC() { + print("testFileNameUTC()") let keyStore = try! KeyStore(keyDirectory: keyDirectory) let timeZone = TimeZone(abbreviation: "UTC")! @@ -355,6 +373,7 @@ class KeyStoreTests: XCTestCase { } func testDeriveActiveAccounts() { + print("testDeriveActiveAccounts()") let keyStore = try! KeyStore(keyDirectory: keyDirectory) let wallet = try! keyStore.import(mnemonic: mnemonic, name: "name", encryptPassword: "newPassword", coins: [.ethereum]) let coins = CoinType.allCases @@ -368,6 +387,7 @@ class KeyStoreTests: XCTestCase { } func testMissingBitcoinAddressDerivation() { + print("testMissingBitcoinAddressDerivation()") let keyStore = try! KeyStore(keyDirectory: keyDirectory) let wallet = keyStore.bitcoinWallet let coins = CoinType.allCases @@ -383,6 +403,7 @@ class KeyStoreTests: XCTestCase { } func testSave() throws { + print("testSave()") let dir = try createTempDirURL() let keyStore = try KeyStore(keyDirectory: dir) try keyStore.watch([ @@ -395,6 +416,7 @@ class KeyStoreTests: XCTestCase { } func testImportError() throws { + print("testStestImportErrorave()") let url = try createTempDirURL() let keystore = try KeyStore(keyDirectory: url) @@ -424,6 +446,7 @@ class KeyStoreTests: XCTestCase { } func testCreateMultiAccount() throws { + print("testCreateMultiAccount()") let mnemonic = "team engine square letter hero song dizzy scrub tornado fabric divert saddle" let password = "password" let keyStore = try KeyStore(keyDirectory: keyDirectory) diff --git a/tools/ios-test b/tools/ios-test index fddb7806e87..a5d8e615b01 100755 --- a/tools/ios-test +++ b/tools/ios-test @@ -12,6 +12,6 @@ xcodebuild -workspace TrustWalletCore.xcworkspace \ -scheme WalletCore \ -sdk iphonesimulator \ -destination "platform=iOS Simulator,name=iPhone 14" \ - test | xcbeautify + test popd