softwareQinc / qpp

Modern C++ quantum computing library

Home Page:https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0208073

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please add to README how to run tests

yurivict opened this issue · comments

I tried with cmake -DBUILD_TESTING:BOOL=ON && gmake test but got:

-- Build files have been written to: /usr/ports/misc/quantum++/work/.build
ninja: no work to do.
[0/1] cd /usr/ports/misc/quantum++/work/.build && /usr/local/bin/ctest --force-new-ctest-process
Test project /usr/ports/misc/quantum++/work/.build
    Start 1: unit_tests_NOT_BUILT
Could not find executable unit_tests_NOT_BUILT
Looked in the following places:
unit_tests_NOT_BUILT
unit_tests_NOT_BUILT
Release/unit_tests_NOT_BUILT
Release/unit_tests_NOT_BUILT
Debug/unit_tests_NOT_BUILT
Debug/unit_tests_NOT_BUILT
MinSizeRel/unit_tests_NOT_BUILT
MinSizeRel/unit_tests_NOT_BUILT
RelWithDebInfo/unit_tests_NOT_BUILT
RelWithDebInfo/unit_tests_NOT_BUILT
Deployment/unit_tests_NOT_BUILT
Deployment/unit_tests_NOT_BUILT
Development/unit_tests_NOT_BUILT
Development/unit_tests_NOT_BUILT
Unable to find executable: unit_tests_NOT_BUILT
1/1 Test #1: unit_tests_NOT_BUILT .............***Not Run   0.00 sec

Thanks! We are currently packaging the library (it's actually done, but documentation still needs to be updated), and will document it shortly, both in the README, INSTALL and also on the Wiki. To run the tests, do

cmake .. && make -j4 unit_tests && ctest

For now, to see how things work (before we document it), take a look at the CircleCI config file https://github.com/softwareQinc/qpp/blob/main/.circleci/config.yml

This works, thanks!