Commit Graph

52392 Commits

Author SHA1 Message Date
Ali Maredia
9288e98092 cmake: test_pidfile.sh test passing
Replaced relative paths in test_pidfile.sh
with CEPH_VAR environment variables set in cmake.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
de97f67a65 cmake: Protect againist getenv returning nullptr
Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
cfcbe21b86 cmake: erasure-decode-non-regression.sh passing
Added missing dependencies and link libraries for
erasure-decode-non-regression.sh and added absolute
paths to ceph_erasure_code_non_regression.cc.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
fd978ce82b unittest_journal: got rid of relative paths
Replaced .libs in TestClassHandler.cc with CEPH_LIB

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
dd0ac999df unittest_blkdev: absolute path for cmake make check
Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
49da534d23 cmake: test_objectstore_memstore.sh test passing
Replaced relative paths in test_objectstore_memstore.sh
with CEPH_VAR environment variables set in cmake.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
1c8cd00360 cmake: erasure-code tests passing
Replaced relative paths in test-erausure-eio.sh
test-erasure-code.sh, and replaced .libs in
erasure_code unittests with CEPH_VAR environment
variables set in cmake.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
65963739cd cmake: ceph_objectstore_tool.py test passing
Replaced relative paths in shell scripts in
test/ceph_objectstore_tool.py and init-ceph.in to
work with CEPH_FOO environment variables set in cmake.
Also added CEPH_BUILD_DIR environment variable set
to CMAKE_BINARY_DIR. It is used in init-ceph and
ceph_objectstore_tool.py.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
f43dd0f3f5 cmake: unittest_bufferlist passing in cmake
Replaced relative paths in unittest_bufferlist.sh
to work with CEPH_FOO environment variables set in
cmake.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
cf24535ed7 cmake: cephtool-test-rados/mds/osd passing in cmake
Replaced relative paths in test/cephtool-test-mon.sh,
qa/workunits/cephtool/test.sh, and test/cephtool-test-mon.sh
to work with CEPH_FOO environment variables set in cmake.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
005e4b4314 cmake: working on cephtool-test-rados.sh test
Replaced relative paths in test/cephtool-test-rados.sh,
qa/workunits/rados/test_rados_tool.sh,
src/test/vstart_wrapper.sh, with CEPH_FOO environment
variables set in cmake. Also edited the CMake path
finding logic in vstart.sh with the CEPH_FOO variables.

NOTE: test is not passing yet, possibly due to the
filesystem. this commit is a work in progress

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
d1892706d7 cmake: working on rados-striper.sh test
Replaced relative paths in test/mon/osd-crush.sh
with CEPH_VAR environment variables set in cmake.

NOTE: test is not passing yet, possibly due to the
filesystem. this commit is a work in progress

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
8e3e3f45e4 cmake: librbd fixes
Added src/librbd and test/librbd CMakeLists.txt's,
various previously missing libraries and targets,
revised unittest_librbd.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
54eb382058 cmake: moved tests into test/system dir
Added a CMakeLists.txt into test/system.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
803def3a6e cmake: moved tests into test/rgw dir
Added a CMakeLists.txt into test/rgw.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:21 -04:00
Ali Maredia
798b821e02 cmake: moved tests into test/osdc dir
Added a CMakeLists.txt into test/osdc.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
4492439ef0 cmake: moved tests into test/ObjectMap dir
Added a CMakeLists.txt into test/ObjectMap.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
e7c14597eb cmake: moved tests into test/msgr dir
Added a CMakeLists.txt into test/msgr.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
cfffdf62da cmake: moved tests into test/messenger dir
Added a CMakeLists.txt into test/messenger.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
99d343636e cmake: moved tests into test/librados_test_stub dir
Added a CMakeLists.txt into test/librados_test_stub.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
eb8e49c5cb cmake: moved tests into test/libcephfs dir
Added a CMakeLists.txt into test/libcephfs.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
99d66ca5c8 cmake: moved tests into test/journal dir
Added a CMakeLists.txt into test/journal.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
997291e6f1 cmake: moved tests into test/filestore dir
Added a CMakeLists.txt into test/filestore.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
02d508c727 cmake: moved tests into test/compressor dir
Added a CMakeLists.txt into test/compressor,
libcompressor to src/compressor/CMakeLists.txt,
added absolute path into $snappy_sources, removed
.libs from compressor unit test source files

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
d50478f30f cmake: moved tests into test/cls_version dir
Added a CMakeLists.txt into test/cls_version.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
e2b0f6fec5 cmake: moved tests into test/cls_statelog dir
Added a CMakeLists.txt into test/cls_statelog.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
8da608de38 cmake: moved tests into test/cls_rgw dir
Added a CMakeLists.txt into test/cls_rgw.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
521b07b46e cmake: moved tests into test/cls_replica_log dir
Added a CMakeLists.txt into test/cls_replica_log.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
2636c16783 cmake: moved tests into test/cls_refcount dir
Added a CMakeLists.txt into test/cls_refcount.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
fe673ea86b cmake: moved tests into test/cls_rbd dir
Added a CMakeLists.txt into test/cls_rbd.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
7271c96d27 cmake: moved tests into test/cls_numops dir
Added a CMakeLists.txt into test/cls_numops.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
de64f829c3 cmake: moved tests into test/cls_log dir
Added a CMakeLists.txt into test/cls_log.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
0e851dec9f cmake: moved tests into test/cls_lock dir
Added a CMakeLists.txt into test/cls_lock.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
6a791fadc1 cmake: moved tests into test/cls_hello dir
Added a CMakeLists.txt into test/cls_hello.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
c1f94dff4d cmake: moved tests into test/bench dir
Added a CMakeLists.txt into test/bench.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
025f5524ed cmake: moved tests into test/os dir
Added a CMakeLists.txt into test/os.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
ef8b113d07 cmake: moved tests into test/pybind dir
Added a CMakeLists.txt into test/pybind. Added
CEPH_BIN in front of relative path in
test_ceph_argparse.py.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:20 -04:00
Ali Maredia
74ea1f9fae cmake: moved tests into test/objectstore dir
Added a CMakeLists.txt into test/objectstore.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:19 -04:00
Ali Maredia
852276d889 cmake: moved tests into test/mds dir
Added a CMakeLists.txt into test/mds.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:19 -04:00
Ali Maredia
3fffaa6e3e cmake: moved tests into test/libradosstriper dir
Added a CMakeLists.txt into test/libradosstriper.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:19 -04:00
Ali Maredia
83ff75091f cmake: moved tests into test/librados dir
Added a CMakeLists.txt into test/librados.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:19 -04:00
Ali Maredia
84c999a570 cmake: moved tests into test/fs dir
Added a CMakeLists.txt into test/fs.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:19 -04:00
Ali Maredia
3a10843552 cmake: moved tests into test/crush dir
Added a CMakeLists.txt into test/crush.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:19 -04:00
Ali Maredia
f65c87acad cmake: moved tests into test/common dir
Added a CMakeLists.txt into test/common.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:19 -04:00
Ali Maredia
9be90605b9 cmake: shell scripts in test/encoding passing in cmake
Replaced relative paths in scripts in test/encoding
to work with CEPH_FOO environment variables set in
cmake, CMakeLists.txt added.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:19 -04:00
Ali Maredia
5d4d3ff704 cmake: shell scripts in test/mon passing in cmake
Replaced relative paths in shell scripts in test/mon
to work with CEPH_FOO environment variables set in
cmake, added CMakelists.txt to test/mon

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:19 -04:00
Ali Maredia
3186c00814 cmake: moved tests into test/osd dir
Replaced relative paths in shell scripts in test/osd
directory with CEPH_VAR environment variables set in cmake,
added a CMakeLists.txt in test/osd.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:19 -04:00
Ali Maredia
59568e59ed cmake: encode-decode-non-regression.sh passing in cmake
Replaced relative paths in encode-decode-non-regression.sh
to work with CEPH_FOO environment variables set in
cmake.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:19 -04:00
Ali Maredia
e0f400fdef cmake: test-ceph-helpers working
Moved all the libraries in CMAKE_BINARY_DIR/lib
and all the binaries in CMAKE_BINARY_DIR/bin. Set
various environment variables for test-ceph-helpers.
Put those variables throughout
qa/workunits/ceph-helpers.sh.

NOTE: This is a very rough draft of these fixes.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:19 -04:00
Ali Maredia
a7bd5e4bdc cmake: Reorganized test dir, added cmake functions
make check targets now use add_ceph_test, or
add_ceph_unittest to be added to CTest. Renamed and
reordered targets in tests/CMakeLists.txt

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-04-14 20:48:19 -04:00