Closed msnliu closed 2 years ago
Hi,
Sorry, ctest
integration is not complete yet. If you want to check the available presents, please see cmake --list-presets
.
If you do want to run the available unit tests, there are available in a separate project. Just pass -Doperon_DEVELOPER_MODE=ON
to cmake and it will get build in build/test/operon-test
.
hi @foolnotion, @msnliu is working with me to install and test operon. Thanks for your quick response. Could you recommend a simple starting example we can follow for running the CLI version?
This is mostly from the top of my head as I can't test everything right now, but you have some options:
result
symlink will then point to its location in the nix store.
nix build github:heal-research/operon/cpp20 --no-write-lock-file
same as above but inside docker:
docker run -ti --rm docker.nix-community.org/nixpkgs/nix-flakes nix shell github:heal-research/operon/cpp20 --no-write-lock-file
Feel free to reopen this and I'll do my best to help.
thanks @foolnotion ! we went the vcpkg route, but will switch to 1 or 2 and see how it goes.
Happy to help! For option 1, the cmake flag -DBUILD_CLI_PROGRAMS=OFF
needs to be -DBUILD_CLI_PROGRAMS=ON
. eve, vstat, operon revisions need to be the latest ones. You probably also want to pass -DCMAKE_CXX_FLAGS=-march=x86-64-v3
or something similar, in order to get the best performance.
The command I ran:
The error message I was getting: We added -Wno-error=dev flag and was using vcpkg The machine is based on Ubuntu.