search for: libobjectyaml

Displaying 3 results from an estimated 3 matches for "libobjectyaml".

2019 Jun 25
2
[CMake] External File Dependencies for Unit Tests
...Test.cpp which just uses a string inside the source file, or use an Inputs directory? Both are not great, as you point out about using an Inputs directory. Also, I'm not sure that I can create an object without invoking yaml2obj itself, I can't seem to find a function to do this exposed by libObjectYAML. If I do need to invoke yaml2obj, would you happen to know how to tell CMake to build yaml2obj first, and also where would I find that executable? Thanks so much, James. On Mon, Jun 24, 2019 at 5:19 AM James Henderson < jh7370.2008 at my.bristol.ac.uk> wrote: > Hi Alex, > > Not an...
2019 Jun 25
2
[CMake] External File Dependencies for Unit Tests
...> keeps the whole test localised to one place, making it easier to > understand what the test is actually testing. > > Also, I'm not sure that I can create an object without invoking > yaml2obj itself, I can't seem to find a function to do this exposed > by libObjectYAML. > > > It looks to me like you'd need to move big chunks of code out of the > yaml2obj tool into the ObjectYAML library. The Minidump version was > added quite recently, and took the approach of doing all the layout in > the library, whereas for most other formats, the wo...
2019 Jun 22
2
[CMake] External File Dependencies for Unit Tests
Hi, I want to write unit tests for a project I am working on. I need to create object files, preferably I want to have yaml files in the source tree and have cmake generate object files using yaml2obj. Does anyone know what I would put in the CMakeLists.txt to get this behavior? For a concrete example if I didn’t explain clearly: In llvm/unittests/Object I would maybe have an Inputs directory,