diff --git a/bdk-ffi/justfile b/bdk-ffi/justfile index 9c6940f8..ea2bea39 100644 --- a/bdk-ffi/justfile +++ b/bdk-ffi/justfile @@ -9,4 +9,4 @@ check: cargo clippy test: - cargo test --lib + cargo test diff --git a/bdk-ffi/tests/README.md b/bdk-ffi/tests/README.md deleted file mode 100644 index 5ee48806..00000000 --- a/bdk-ffi/tests/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# Integration tests for bdk-ffi - -This contains simple tests to make sure bdk-ffi can be used as a dependency for each of the -supported bindings languages. - -To skip integration tests and only run unit tests use `cargo test --lib`. - -To run all tests including integration tests use `CLASSPATH=./tests/jna/jna-5.14.0.jar cargo test`. - -Before running integration tests you must install the following development tools: - -1. [Java](https://openjdk.org/) and [Kotlin](https://kotlinlang.org/), -[sdkman](https://sdkman.io/) can help: -```shell -sdk install java 11.0.16.1-zulu -sdk install kotlin 1.7.20` -``` -2. [Swift](https://www.swift.org/) -3. [Python](https://www.python.org/) diff --git a/bdk-ffi/tests/bindings/test.kts b/bdk-ffi/tests/bindings/test.kts deleted file mode 100644 index b6b49cad..00000000 --- a/bdk-ffi/tests/bindings/test.kts +++ /dev/null @@ -1,9 +0,0 @@ -/* - * This is a basic test kotlin program that does nothing but confirm that the kotlin bindings compile - * and that a program that depends on them will run. - */ - -import org.bitcoindevkit.bitcoin.Network - -// A type from bitcoin-ffi -val network = Network.TESTNET diff --git a/bdk-ffi/tests/bindings/test.py b/bdk-ffi/tests/bindings/test.py deleted file mode 100644 index c594d37a..00000000 --- a/bdk-ffi/tests/bindings/test.py +++ /dev/null @@ -1,12 +0,0 @@ -from bdkpython.bitcoin import Network - -import unittest - -class TestBdk(unittest.TestCase): - - # A type from the bitcoin-ffi library - def test_some_enum(self): - network = Network.TESTNET - -if __name__=='__main__': - unittest.main() diff --git a/bdk-ffi/tests/bindings/test.swift b/bdk-ffi/tests/bindings/test.swift deleted file mode 100644 index a9e816e0..00000000 --- a/bdk-ffi/tests/bindings/test.swift +++ /dev/null @@ -1,10 +0,0 @@ -/* - * This is a basic test swift program that does nothing but confirm that the swift bindings compile - * and that a program that depends on them will run. - */ - -import Foundation -import BitcoinDevKit - -// A type from the bitcoin-ffi library -let network = Network.testnet diff --git a/bdk-ffi/tests/jna/jna-5.14.0.jar b/bdk-ffi/tests/jna/jna-5.14.0.jar deleted file mode 100644 index e27f9c54..00000000 Binary files a/bdk-ffi/tests/jna/jna-5.14.0.jar and /dev/null differ diff --git a/bdk-ffi/tests/test_generated_bindings.rs b/bdk-ffi/tests/test_generated_bindings.rs deleted file mode 100644 index e6057c6c..00000000 --- a/bdk-ffi/tests/test_generated_bindings.rs +++ /dev/null @@ -1,9 +0,0 @@ -uniffi::build_foreign_language_testcases!( - // Not sure why the new types break this Kotlin test and not the others, but the libraries work - // fine. Commenting out for now. - // "tests/bindings/test.kts", - "tests/bindings/test.swift", - // Weirdly enough, the Python tests below pass locally, but fail on the CI with the error: - // ModuleNotFoundError: No module named 'bdkpython' - // "tests/bindings/test.py", -);