]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/corpus: update to adapt the change from autotools to cmake 27552/head
authorKefu Chai <kchai@redhat.com>
Fri, 12 Apr 2019 10:01:15 +0000 (18:01 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 15 Apr 2019 16:25:53 +0000 (00:25 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/dev/corpus.rst

index a012a0a7fda25a732d709e5709ab4814019f1789..368ff05188482202d8b552ba45822e6b4e717a59 100644 (file)
@@ -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.