Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Fix test_FP*_arithmetics_YYY.c.in tests #3

Open
kealan opened this issue Jun 13, 2019 · 6 comments
Open

Fix test_FP*_arithmetics_YYY.c.in tests #3

kealan opened this issue Jun 13, 2019 · 6 comments

Comments

@kealan
Copy link
Contributor

kealan commented Jun 13, 2019

No description provided.

@giorgiozoppi
Copy link
Contributor

giorgiozoppi commented Jun 13, 2019

I am moving slightly the old test to the cmocka, i have just created cmock test directory with a crypto_context example. What i dont see in the old test coverage is how you coverage the code.

@kealan
Copy link
Contributor Author

kealan commented Jun 14, 2019

Hi Giorgio

That is done here;

ifneq ($(findstring -DCMAKE_BUILD_TYPE=Coverage,${BUILD_PARAMS}),)
mkdir -p target/${BUILD_NAME}/coverage
cd target/${BUILD_NAME} &&
cmake $(subst $(dcomma),$(space),${BUILD_PARAMS}) ../.. | tee cmake.log ; test $${PIPESTATUS[0]} -eq 0 &&
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./ &&
make | tee make.log ; test $${PIPESTATUS[0]} -eq 0 &&
lcov --zerocounters --directory . &&
lcov --capture --initial --directory . --output-file coverage/amcl &&
env CTEST_OUTPUT_ON_FAILURE=1 make test | tee test.log ; test $${PIPESTATUS[0]} -eq 0 &&
lcov --no-checksum --directory . --capture --output-file coverage/amcl.info &&
lcov --remove coverage/amcl.info "/test_" --output-file coverage/amcl.info &&
genhtml -o coverage -t "milagro-crypto-c Test Coverage" coverage/amcl.info
else

@kealan
Copy link
Contributor Author

kealan commented Jun 14, 2019

Hi Giogio

What is the reason that you want to move away from ctest to cmocka. I take the approach if it ain't broke don't fix it!

@kealan
Copy link
Contributor Author

kealan commented Jun 14, 2019

Also, would you mind if we remove cmocka from the master branch and follow the contribution guidelines that I sent in the email? Of course, only if you agree with them. We could branch develop and then add have add-cmocka as a feature with its own issue.

By the way, would you be intererested in starting a new repo maybe called it milagro-crypto-c++ and basing it on the c++ code in the incubator-milagro-crypto?

@kealan
Copy link
Contributor Author

kealan commented Jun 14, 2019

Hi Giorgio Are you with me removing cmocka from master? I want to set up master and develop branches today that we can then have feature branches off.

@giorgiozoppi
Copy link
Contributor

giorgiozoppi commented Jun 14, 2019 via email

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

No branches or pull requests

2 participants