Git Product home page Git Product logo

Comments (5)

gilles-peskine-arm avatar gilles-peskine-arm commented on June 17, 2024

On second thoughts, I'm not sure about this. I had missed that test_certs.h only depends on the content of the tests/data_files directory. Files in this directory almost never change, so it is not a problem to commit files that are generated from them. It is, however, relatively common to add files to this directory, and that requires updating test_certs.h. Furthermore adding two files in parallel may lead to an add-add conflict when merging. So I'm still leaning towards thinking that test_certs.h should be generated as part of make generated_files (and cmake etc. equivalents).

Other reasons why we commit files in tests/data_files are that many files require special tooling (e.g. I think at the moment there isn't a single version of openssl that works for all the targets in tests/data_files/Makefile), and the output is randomized. This doesn't apply to the process that generates test_certs.h.

from mbedtls.

huitema avatar huitema commented on June 17, 2024

Maybe related to the generation issue, but the windows build complains that "test_certs.h" is not found, even after a successful run of make generated_files.bat. (Which depends on setting a CC environment variable, which is not set by default and is not documented.) I think it is an issue of search path for include files in the VS2017 project. It works fine if I add "tests/src" to the search path.

from mbedtls.

gilles-peskine-arm avatar gilles-peskine-arm commented on June 17, 2024

"test_certs.h" is not found, even after a successful run of make generated_files.bat.

This is fixed by #9017 .

I think it is an issue of search path for include files in the VS2017 project.

Is it? test_certs.h is only included with #include "test_certs.h" from a file in the same directory, so the search path shouldn't matter.

from mbedtls.

gilles-peskine-arm avatar gilles-peskine-arm commented on June 17, 2024

Resolved by #9017

from mbedtls.

gilles-peskine-arm avatar gilles-peskine-arm commented on June 17, 2024

Which depends on setting a CC environment variable, which is not set by default and is not documented.

Fair point. #9128

from mbedtls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.