Move to tests/cbindings

This commit is contained in:
E M 2026-02-12 22:14:21 +11:00
parent 98e2296520
commit 588b668b1a
No known key found for this signature in database
5 changed files with 4 additions and 20 deletions

4
.gitignore vendored
View File

@ -48,5 +48,5 @@ tests/integration/logs
data/
examples/c/data-dir
examples/c/downloaded_hello.txt
tests/cbindings/data-dir
tests/cbindings/downloaded_hello.txt

View File

@ -150,7 +150,7 @@ testIntegration: | build deps
# Builds a C example that uses the libstorage C library and runs it
testLibstorage: | build deps
$(MAKE) $(if $(ncpu),-j$(ncpu),) libstorage
cd examples/c && \
cd tests/cbindings && \
if [ "$(detected_OS)" = "Windows" ]; then \
gcc -o storage.exe storage.c -L../../build -lstorage -pthread && \
PATH=../../build:$$PATH ./storage.exe; \

View File

@ -67,23 +67,7 @@ This produces the shared library under `build/`.
### Run the Go example
Build the Go example:
```bash
go build -o storage-go examples/golang/storage.go
```
Export the library path:
```bash
export LD_LIBRARY_PATH=build
```
Run the example:
```bash
./storage-go
```
See https://github.com/logos-storage/logos-storage-go-bindings-example.
### Static vs Dynamic build