#. 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::
#. 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.::
#. Verify the tests pass::
- make check-local
+ ctest -R readable.sh
#. Commit it to the corpus repo and push::
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.