search for: namespacellvm_1_1unittest

Displaying 2 results from an estimated 2 matches for "namespacellvm_1_1unittest".

2019 Jun 25
2
[CMake] External File Dependencies for Unit Tests
...un CMake again This is unfortunate, I would have hoped I could have CMake create $(wildcard *.yaml) type of output in the make files. But it sounds like this doesn't exist on make alternatives, so this wont work. There is actually a function to get the Inputs directory, http://llvm.org/doxygen/namespacellvm_1_1unittest.html. I think it is only used in one test, though. Would you recommend that I do what is done in unittest/ObjectYAML/MinidumpYAMLTest.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...
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,