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

ctest doesn't find any tests #162

Closed
yurivict opened this issue Jan 4, 2021 · 4 comments
Closed

ctest doesn't find any tests #162

yurivict opened this issue Jan 4, 2021 · 4 comments

Comments

@yurivict
Copy link

yurivict commented Jan 4, 2021

Please add to README how to run tests.

ctest's docs says that it needs enable_testing() and add_test() but none of them is used.

@hanickadot
Copy link
Owner

For CTRE tests just use make from Makefile not cmake, which is meant to be used by users.

Readme updated in 0e646f385295de075729a81d22612a4ea5b6bfaa

@yurivict
Copy link
Author

yurivict commented Jan 4, 2021

Running make compiles object modules, but doesn't run anything:

[yuri@yv /usr/ports/devel/ctre]$ make test
===>  Testing for ctre-3.3.4
gmake[1]: Entering directory '/usr/ports/devel/ctre/work/compile-time-regular-expressions-3.3.4'
c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer   -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -MMD -c tests/_unicode.cpp -o tests/_unicode.o
c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer   -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -MMD -c tests/generating.cpp -o tests/generating.o
c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer   -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -MMD -c tests/gets.cpp -o tests/gets.o
c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer   -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -MMD -c tests/matching2-msvc-greedy.cpp -o tests/matching2-msvc-greedy.o
c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer   -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -MMD -c tests/matching2.cpp -o tests/matching2.o
c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer   -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -MMD -c tests/matching3.cpp -o tests/matching3.o
c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer   -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -MMD -c tests/msvc.cpp -o tests/msvc.o
c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer   -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -MMD -c tests/parsing.cpp -o tests/parsing.o
c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer   -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -MMD -c tests/range.cpp -o tests/range.o
c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer   -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -MMD -c tests/results.cpp -o tests/results.o
c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer   -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -MMD -c tests/trampoline.cpp -o tests/trampoline.o
c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer   -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -MMD -c tests/wide-pattern.cpp -o tests/wide-pattern.o
c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer   -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -MMD -c tests/z_matching.cpp -o tests/z_matching.o
gmake[1]: Leaving directory '/usr/ports/devel/ctre/work/compile-time-regular-expressions-3.3.4'

@hanickadot
Copy link
Owner

that's correct ... everything is tested during compilation, if you are able to compile then it's ok

@yurivict
Copy link
Author

yurivict commented Jan 4, 2021

Ok, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants