Update build files and create tester directory and files
Troubleshoot CMake
Rename console directory and fix buildfiles
Differential D397
Update build system ardunster on Feb 24 2021, 2:10 PM. Authored by
Details
Update build files and create tester directory and files Troubleshoot CMake Rename console directory and fix buildfiles Builds and has prototype Goldilocks test frame included set it on fire
Diff Detail
Event TimelineComment Actions @jcmcdonald this was way messier than simplexpress, but, after some directory renames and rearranging, make ready and make console and make tester are all functioning as one would expect them to without errors. And on the ++ side, I have the tester ready to install tests to. Side note, does it work to put the .hpp and .cpp files for individual tests and suites in the tester subdirectory, rather than cluttering up the main source directories with them? Comment Actions If you want to put your tests in separate directories, I recommend using these locations:
I anticipate you'll need tests for both Ratscript itself and its console, eventually, since both are shippable software. The weird nesting I'm suggesting gives you some pretty include statements: #include "ratscript/lexer.hpp" #include "ratscript/tests/lexer_test.hpp" Comment Actions That makes sense. I'm curious why you wouldn't put them inside, say, {project}-tester, though? Comment Actions Because we have the principle of shipping tests with the library or product. If someone only uses the language, and not the console, they still need access to the language's tests. Comment Actions I think this is ready for review, assuming I didn't miss something else like git ignoring all my include files 🤦♀️ I'm not going to add actual tests here, because this code doesn't have anything worth testing, but once I merge into D383 (undoubtedly going to be a mess with all the renames and added files and so on) I'll add them there. |