From: Kefu Chai Date: Fri, 12 Apr 2019 10:01:15 +0000 (+0800) Subject: doc/corpus: update to adapt the change from autotools to cmake X-Git-Tag: v15.1.0~2930^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F27552%2Fhead;p=ceph.git doc/corpus: update to adapt the change from autotools to cmake Signed-off-by: Kefu Chai --- diff --git a/doc/dev/corpus.rst b/doc/dev/corpus.rst index a012a0a7fda2..368ff0518848 100644 --- a/doc/dev/corpus.rst +++ b/doc/dev/corpus.rst @@ -29,7 +29,8 @@ We can generate an object corpus for a particular version of ceph like so. #. Build with flag to dump objects to /tmp/foo:: rm -rf /tmp/foo ; mkdir /tmp/foo - ./do_autogen.sh -e /tmp/foo + do_cmake.sh -DCMAKE_CXX_FLAGS="-DENCODE_DUMP_PATH=/tmp/foo" + cd build make #. Start via vstart:: @@ -57,8 +58,8 @@ Do some more stuff with rgw if you know how. #. Import the corpus (this will take a few minutes):: - test/encoding/import.sh /tmp/foo `./ceph-dencoder version` ../ceph-object-corpus/archive - test/encoding/import-generated.sh ../ceph-object-corpus/archive + ../src/test/encoding/import.sh /tmp/foo `bin/ceph-dencoder version` ../ceph-object-corpus/archive + ../src/test/encoding/import-generated.sh ../ceph-object-corpus/archive #. Prune it! There will be a bazillion copies of various objects, and we only want a representative sample.:: @@ -68,7 +69,7 @@ Do some more stuff with rgw if you know how. #. Verify the tests pass:: - make check-local + ctest -R readable.sh #. Commit it to the corpus repo and push:: @@ -86,8 +87,8 @@ Do some more stuff with rgw if you know how. cd ceph-object-corpus git fetch origin git checkout wip-new - cd ../src - make check-local + cd ../build + ctest -R readable.sh #. If everything looks good, update the submodule master branch, and commit the submodule in ceph.git.