add_ceph_unittest(unittest_bdev)
target_link_libraries(unittest_bdev os global)
- # unittest_deferred
- add_executable(unittest_deferred
+ # test_corrupt_deferred
+ add_executable(test_corrupt_deferred
test_deferred.cc
)
- add_ceph_unittest(unittest_deferred)
- target_link_libraries(unittest_deferred os global)
+ target_link_libraries(test_corrupt_deferred os global)
endif(WITH_BLUESTORE)
#!/bin/bash
-if [[ ! (-x ./bin/unittest_deferred) || ! (-x ./bin/ceph-kvstore-tool) || ! (-x ./bin/ceph-bluestore-tool)]]
+if [[ ! (-x ./bin/test_corrupt_deferred) || ! (-x ./bin/ceph-kvstore-tool) || ! (-x ./bin/ceph-bluestore-tool)]]
then
echo Test must be run from ceph build directory
- echo with unittest_deferred, ceph-kvstore-tool and ceph-bluestore-tool compiled
+ echo with test_corrupt_deferred, ceph-kvstore-tool and ceph-bluestore-tool compiled
exit 1
fi
# Repeat for Object-0 to Object-8.
# Right after getting notification on_complete for all 9 transactions, immediately exit(1).
-./bin/unittest_deferred --log-to-stderr=false
+./bin/test_corrupt_deferred --log-to-stderr=false
# Now we should have a considerable amount of pending deferred writes.
# They do refer disk regions that do not belong to any object.