Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated README and test script #125

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# OpenTDF - client-cpp

Minimal c/c++ client to generate and access TDF files

## Building
Expand All @@ -15,13 +16,15 @@ To build the client the following dependencies are needed
Using [Hombrew](https://brew.sh) (for Mac and Linux)

```
brew install conan cmake
brew install conan@1 cmake
```

### Installing a published release with Conan (recommended, will prefer prebuilt binaries but build missing deps from source)
``` sh

```sh
conan install opentdf-client/1.1.3@ --build=missing
```

For more details on Conan and publishing, see [OpenTDF/client-conan](https://github.com/opentdf/client-conan)

### Local In-Tree Building
Expand All @@ -32,4 +35,3 @@ For more details on Conan and publishing, see [OpenTDF/client-conan](https://git
### Local In-Tree Building+Testing

1. `sh build-and-run-sanity-test.sh`

6 changes: 2 additions & 4 deletions build-and-run-sanity-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export VRUN_BACKEND_TESTS="true"
export VBUILD_UNIT_TESTS="true"
export VEXPORT_COMBINED_LIB="true"

cd ../../src && ./build-all.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Causes error on CI side:
CIError

cd ./src && ./build-all.sh

if [[ -z "${VEXPORT_COMBINED_LIB}" ]]; then
echo "Skip building the sample"
Expand All @@ -14,7 +14,5 @@ else
cd ../examples && mkdir build && cd build && cmake .. && make

echo "Run the sanity test"
./tdf_sample
./tdf_sample
fi


Loading