unit-test: meson: check meson version for C++20

If a package requests C++20 support, only Meson >=0.57 recognizes
the 'cpp_std=c++20' option but doesn't warn about this.  Add code
in our test path to ensure that if a package has requested C++20
it also requests Meson >=0.57.  This helps prevent a cryptic
message if someone compiles one of our packages on a distro with
an older version of Meson.

Tested: Ran script against sdbusplus with various settings of
meson_version and cpp_std.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I130766a822710bf634eca3677e22c9d484defa00
1 file changed