summaryrefslogtreecommitdiffstats
path: root/src/test/testkeys.cc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test: add missing include for std::coutMax Kellermann2024-11-041-0/+3
| | | | Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
* common: modify 'main()s' to use new argv_to_vec() signatureRonen Friedman2021-08-191-2/+1
| | | | | | | A followup to PR #42820 that modified argv_to_vec() signature (for style and performance). Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
* test: : build without "using namespace std"Kefu Chai2021-08-131-0/+2
| | | | | | | | | | * add "std::" prefix in headers * add "using" declarations in .cc files. so we don't rely on "using namespace std" in one or more included headers. Signed-off-by: Kefu Chai <kchai@redhat.com>
* test: CINIT_FLAG_NO_MON_CONFIG or NO_DEFAULT_CONFIG_FILESage Weil2018-03-061-1/+2
| | | | | | | | | | | | | | | Usually we use NO_DEFAULT_CONFIG_FILE, but for those tests that need the plugin directory overrides in order to work properly when run manually (e.g., "bin/unittest_compression"), read the config and only skip the mon config. The NO_DFEAULT_CONFIG_FILE (which also skips the mon) would work for everything when run via ctest, but as a dev one often runs the unittest manually and having to pass CEPH_LIB=lib is annoying. Note that do_cmake.sh already writes out a trivial ceph.conf with these options set for us. Signed-off-by: Sage Weil <sage@redhat.com>
* drop unnecessary env_to_vec callsSage Weil2018-03-061-1/+0
| | | | | | global[_pre]_init does this for us now. Signed-off-by: Sage Weil <sage@redhat.com>
* dout: Use dout_contextAdam C. Emerson2016-12-221-0/+2
| | | | | | | As a transition for g_ceph_context removal, make all dout macros depends on a local macro. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* common: Unskew clockAdam C. Emerson2016-12-221-1/+1
| | | | | | | | In preparation to deglobalizing CephContext, remove the CephContext* parameter to ceph_clock_now() and ceph::real_clock::now() that carries a configurable offset. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* common,test: g_ceph_context->put() upon returnKefu Chai2016-11-241-1/+2
| | | | | | | | | | | | | | | | | | | | | prior to this change, global_init() could create a new CephContext and assign it to g_ceph_context. it's our responsibilty to release the CephContext explicitly using cct->put() before the application quits. but sometimes, we fail to do so. in this change, global_init() will return an intrusive_ptr<CephContext>, which calls `g_ceph_context->put()` in its dtor. this ensures that the CephContext is always destroyed before main() returns. so the log is flushed before _log_exp_length is destroyed. there are two cases where global_pre_init() is called directly. - ceph_conf.cc: g_ceph_context->put() will be called by an intrusive_ptr<> deleter. - rgw_main.cc: global_init() is called later on on the success code path, so it will be taken care of. Fixes: http://tracker.ceph.com/issues/17762 Signed-off-by: Kefu Chai <kchai@redhat.com>
* test: file change affected by auth file header optimization.shawn2016-05-201-0/+1
| | | | Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
* automake cleanup: moving tests to test subdirRoald J. van Loon2013-09-071-0/+64
This are tests and should be in the src/test subdir. Signed-off-by: Roald J. van Loon <roaldvanloon@gmail.com>