summaryrefslogtreecommitdiff
path: root/test cases/frameworks/5 protocol buffers
AgeCommit message (Collapse)Author
2024-03-17tests: rename skip_on_jobname to expect_skip_on_jobname and skip_on_os to ↵Christoph Reiter
expect_skip_on_os The test.json format currently has three keys related to skipping tests: * `skip_on_jobname` * `skip_on_os` * `skip_on_env` While `skip_on_env` marks the test itself as skipped, i.e. they don't get run when the conditions are met, the other two skip options are just marking the test as "expected to be skipped" if the conditions apply, i.e. they want to see `MESON_SKIP_TEST` in the output and things will fail if that doesn't happen. They don't actually skip the tests as the names imply. To make this clearer rename the keys: * `skip_on_jobname` -> `expect_skip_on_jobname` * `skip_on_os` -> `expect_skip_on_os` `skip_on_env` stays the same, since that actually skips. The docs were also confused about this, so adjust that too.
2024-02-09test cases: use C++17 for protobuf because of abseil-cppSam James
On the openSUSE builder, we got a horrifying CI failure like: ``` FAILED: asubdir/subdir-prog.p/main.cpp.o c++ -Iasubdir/subdir-prog.p -Iasubdir '-I../test cases/frameworks/5 protocol buffers/asubdir' -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++14 -O0 -g -DPROTOBUF_USE_DLLS -DNOMINMAX -MD -MQ asubdir/subdir-prog.p/main.cpp.o -MF asubdir/subdir-prog.p/main.cpp.o.d -o asubdir/subdir-prog.p/main.cpp.o -c '../test cases/frameworks/5 protocol buffers/asubdir/main.cpp' In file included from /usr/include/google/protobuf/stubs/common.h:20, from /usr/include/google/protobuf/io/coded_stream.h:107, from asubdir/subdir-prog.p/defs.pb.h:26, from ../test cases/frameworks/5 protocol buffers/asubdir/main.cpp:1: /usr/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type 52 | using string_view = std::string_view; | ^~~~~~~~~~~ [...] ``` This turns out to be because of a *huge* mess with abseil-cpp and protobuf. We're still trying to handle it in Gentoo, even (see bgo#912819) and https://github.com/gentoo/gentoo/pull/32281. In summary, abseil-cpp started to require C++17 (unless built with a special option which causes ABI problems). Let's switch the protobuf test case to use C++17 accordingly. There's some precedence for Just Doing This, like in cb54f0d707e5673eb1d8aaafae59a6d5fde25e18 recently for Boost, and 792a84199b8829c923968e8816a27e021647d146 previously for protobuf itself. Bug: https://bugs.gentoo.org/912819 See also: https://github.com/gentoo/gentoo/pull/32281 Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
2023-07-18tests: bump the C++ std for protobuf testsEli Schwartz
Based on https://opensource.google/documentation/policies/cplusplus-support Google no longer supports C++11, and protobuf spawns an `#error` if you don't have at least 14. So, perform our currently scheduled automatic bump.
2021-07-13Add expected skip annotations for non-linux CI runs to framework testsJon Turney
2019-12-19CI: Fix C++11 related error on osx for protocol bufferDaniel Mensinger
2017-12-18Can declare file generation in one dir and use the output in another.Jussi Pakkanen
2017-12-17Preserve_path_from should be a kwarg of process(), not generator().Jussi Pakkanen
2017-12-12Files created with generator can have path segments.Jussi Pakkanen
This is OK, because they are written in the private directory of each target and its layout can be anything.
2017-05-08Add support for @CURRENT_SOURCE_DIR@ in generator argumentsAlberto Aguirre
Allow users to specify @CURRENT_SOURCE_DIR@ in generator arguments to specify the current target source directory. This is useful when creating protobuf generator objects in sub-directories because protoc will then generate files in the expected location. Fixes #1622. Remove stray semicolon Update documentation
2017-04-15tests: skip protocol buffers test if deps are not foundTim-Philipp Müller
2015-08-27Generator outputs are all relative.Jussi Pakkanen
2014-06-22Renamed deps -> dependencies.Jussi Pakkanen
2014-05-24Keyword argument unification.Jussi Pakkanen
2013-06-02C++ is now called cpp rather than cxx.Jussi Pakkanen
2013-06-02Renamed find_dep to dependency.Jussi Pakkanen
2013-06-02Renamed add_test to test.Jussi Pakkanen
2013-06-01Required defaults to true for programs.Jussi Pakkanen
2013-06-01The default value of required is true for dependencies.Jussi Pakkanen
2013-06-01Generator rules can have more than one output.Jussi Pakkanen
2013-05-27Source generator now works with Protocol Buffers.Jussi Pakkanen
2013-05-27Worked on expanding the generator so it works with protocol buffers. Does ↵Jussi Pakkanen
not work yet.