Commit graph

51 commits

Author SHA1 Message Date
Rui Chen
70c01a642f
build: support cmake 4.0 ()
Signed-off-by: Rui Chen <rui@chenrui.dev>
2025-03-31 23:35:49 +01:00
JaiXJM-BB
58cf1ef6d0
cmake: Support BlackBerry QNX () 2024-12-13 23:00:05 +00:00
Vertexwahn
82793e3f38 Fix spelling 2024-06-09 22:08:02 +01:00
Alexander Borsuk
c196ce6baa Fixed macro redifinition warning for Unity builds
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-06-09 22:07:48 +01:00
Changqing Li
827c769e5f switch shebang to python3
python2 is EOL, swith shebang to python3

Signed-off-by: Changqing Li <changqing.li@windriver.com>
2020-10-30 10:16:12 +00:00
Corentin Le Molgat
f7228d77b5 Use CMake namespace gflags:: for export and alias target
Now use gflags::gflags instead of gflags

note: seems already in use in gRPC
cf https://github.com/grpc/grpc/blob/master/cmake/gflags.cmake#L30
2018-01-31 13:46:59 +01:00
Silver Chan
77592648e3 repair wrong namespace problem
repair wrong namespace problem
2017-11-03 12:21:22 +00:00
Todd Lipcon
14c0e93755 Convert dashes to underscores for unknown flags () 2016-11-22 00:11:14 +00:00
Andreas Schuh
22e4a534c1 fix: Run strip_flags_binary test only for release configurations () 2016-08-02 12:15:44 +01:00
Andreas Schuh
b16653edf0 fix: Typo in gflags_strip_flags_test.cmake script 2016-08-02 09:51:47 +01:00
dreamer.dead
46ea10f071 Do not pass flag type as a char literal when registering a new flag.
It is possible to create a type-safe version of FlagRegisterer
ctor (as well as some internal gflags classes), that will deduce
type of the new flag automatically.

This results in removing quite a few calls to strcmp() when new
flag is created.

No existing behavior change.
2016-07-29 21:02:29 +03:00
dreamer.dead
fa2663839c Fix unittests expectations related to uint32. 2016-07-20 12:18:08 +03:00
FARBOS Arnaud
eff38cbc18 fix test compilation 2016-04-26 15:05:53 +02:00
Allan L. Bazinet
eaf05340dc Support uint32 as flag type
From , “Given that there is an unsigned flag type for 64-bit
integers, it is probably reasonable to request/expect the same for
32-bit integers.”
2016-04-05 10:50:21 -07:00
Andreas Schuh
389ef3f737 Merge branch 'master' of github.com:gflags/gflags 2016-03-01 21:34:32 +00:00
Andreas Schuh
752c63249b fix: Include order of config.h and gflags.h in unit test 2016-03-01 21:34:24 +00:00
Andreas Schuh
7a21c16f00 cmake: Rename targets to gflags[_nothreads]_(static|shared), support
find_package COMPONENTS
2016-03-01 21:04:10 +00:00
Andreas Schuh
a4382e5f37 cmake: Require CMake 2.8.12 in NC tests 2016-03-01 21:03:05 +00:00
Andreas Schuh
18cb422451 fix: Require CMake version 2.8.12 in test project 2016-03-01 19:56:54 +00:00
Andreas Schuh
799e910c74 fix: Include private config.h in gflags_unittest.cc 2016-03-01 19:56:02 +00:00
Andreas Schuh
221f327749 Revert " Move test binaries to Testing/bin"
This reverts commit 02f3189788.
2016-02-29 19:30:58 +00:00
Andreas Schuh
2a3454c104 fix: DLL import/export defines for unit tests, remove obsolete config_for_unittests.h 2016-02-29 19:18:21 +00:00
Andreas Schuh
9ef0d5220e enh: Add usage of DEFINE_validator to test project 2016-02-29 17:12:15 +00:00
Andreas Schuh
02f3189788 Move test binaries to Testing/bin 2016-02-29 17:03:08 +00:00
Andreas Schuh
8ac4bc41aa fix: Pass std::string directly, no need for c_str() call 2016-02-29 16:12:33 +00:00
Andreas Schuh
762f9cbb65 Call ShutDownCommandLineFlags for (manual) valgrind test 2016-02-19 13:20:40 +00:00
Sergey Sharybin
4f100cb6a0 Resolve several missing declarations warnings 2015-12-31 17:09:59 +05:00
Andreas Schuh
16a168763e Add test of gflags-config.cmake package configuration 2015-03-25 13:54:49 +00:00
Andreas Schuh
71c656e0e9 Use PROJECT_BINARY_DIR in place of gflags_BINARY_DIR 2015-03-25 00:14:46 +00:00
Andreas Schuh
7eb3d365e3 Modify negative compilation tests to link against gflags_LIBRARIES 2015-03-24 23:45:21 +00:00
Andreas Schuh
ccff5658e0 Fix temporary directory configuration of negative compilation tests 2015-03-24 23:44:34 +00:00
Andreas Schuh
33fc9997bd Fix compilation of tests 2015-03-24 23:43:53 +00:00
Andreas Schuh
dc8543a473 Add test which uses gflags_declare.h.
Update issue 79
Added a test which uses gflags_declare.h as any other project would use it to avoid such avoidable build configuration mistakes.
2014-03-30 15:16:00 +01:00
Andreas Schuh
9ecc4cab3b Enable packaging of library using CPack. 2014-03-20 02:11:44 +00:00
Andreas Schuh
ddc5357419 Add link dependency on shlwapi.lib during build configuration instead of #pragma comment statement. Use this library also on MinGW. 2014-03-19 17:32:23 +00:00
Andreas Schuh
5250372ab6 Fix conditional compilation of tests using glob expressions. 2014-03-19 15:55:43 +00:00
Andreas Schuh
8566bcf1eb Replace GFLAGS_HAVE_* #defines by HAVE_* again. 2014-03-19 14:24:52 +00:00
Andreas Schuh
492ac156bc Fix DLL build on Windows and use PathMatchSpec instead of fnmatch.
Expose as few system variables as possible through public interface.
Perform STRIP_FLAGS_HELP test using CMake instead of Bash.
Change file path separator used by gflags_reporting.cc to backslash on Windwos.
2014-03-18 22:03:10 +00:00
Andreas Schuh
1e0b54c6ed Fix unit tests for Windows and CygWin. 2014-03-17 21:49:10 +00:00
Andreas Schuh
6b7be9a00a Enable test case which tests invalid negative value for uint64 flag. 2014-03-17 21:22:51 +00:00
Andreas Schuh
107681258b Fix VS linker warning regarding locally defined FLAGS_tryfromenv symbol. 2014-03-17 21:20:24 +00:00
Andreas Schuh
8d3797cd15 Fix VS security warnings using SafeGetEnv and SafeFOpen utility functions. 2014-03-17 21:19:35 +00:00
Andreas Schuh
0d9486f9a3 Pass --test_tmpdir and --srcdir to unittests. 2014-03-17 21:15:52 +00:00
Andreas Schuh
8477f3174e Fix build with Xcode 5, system checks, set LANGUAGE to CXX. 2014-03-15 14:15:33 +00:00
Andreas Schuh
f0f565fb0f Remove obsolete gflags_unittest.sh script. 2014-03-14 20:34:30 +00:00
Andreas Schuh
8a563cfca3 Migrate unit tests to CMake/CTest. Fix preprocessor directive in gflags_unittest.cc. 2014-03-14 20:32:37 +00:00
Andreas Schuh
1c9f065dd0 Add negative compilation tests. 2013-08-01 03:31:47 +01:00
Andreas Schuh
7abcbdcbbd Add gflags library which is built with NO_THREADS definition. 2013-08-01 02:04:37 +01:00
Andreas Schuh
ac3cb02be8 Add missing unittest2 and unittest3 executables. 2013-08-01 01:59:32 +01:00
Andreas Schuh
126f36b826 Enable build and execution of tests again using CTest. 2013-08-01 01:47:13 +01:00