mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-03-02 18:33:10 +00:00
Move to tests/cbindings
This commit is contained in:
parent
98e2296520
commit
588b668b1a
4
.gitignore
vendored
4
.gitignore
vendored
@ -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
|
||||
|
||||
2
Makefile
2
Makefile
@ -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; \
|
||||
|
||||
18
README.md
18
README.md
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user