Strategist for running C, C++ test cases from one runner? #13849
-
Are there strategist for running both C and C++ test cases from one test runner? Lets assume a given project is written in C and happens to be compatible with C++, skipping all of the detail of how this part is done to save time, how can this project be tested with test cases for two languages and be ran with one test runner? If this is impossible I'm open to a more logical solution for running test cases for both C and C++. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If meson is your test runner then it would simply execute the C test as one executable, and the C++ test as a different executable, and expect both test programs to return success. You could test a C library by writing C interface tests in one program, and writing C++ interface tests in a second program, to test that the library still works when compiled and used as C++. |
Beta Was this translation helpful? Give feedback.
If meson is your test runner then it would simply execute the C test as one executable, and the C++ test as a different executable, and expect both test programs to return success.
You could test a C library by writing C interface tests in one program, and writing C++ interface tests in a second program, to test that the library still works when compiled and used as C++.