File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
ckb-bin/src/tests/bats_tests Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,18 @@ function ckb_import { #@test
2222 [ " $status " -eq 0 ]
2323}
2424
25+ function _export_range() { # @test
26+ bash -c " ckb init -C ${TMP_DIR} /import_range"
27+ bash -c " ckb export -C ${TMP_DIR} /import -t ${TMP_DIR} /import_range --from 1 --to 200"
28+ bash -c " ckb export -C ${TMP_DIR} /import -t ${TMP_DIR} /import_range --from 200 --to 300"
29+ bash -c " ckb export -C ${TMP_DIR} /import -t ${TMP_DIR} /import_range --from 300 --to 400"
30+ bash -c " ckb export -C ${TMP_DIR} /import -t ${TMP_DIR} /import_range --from 400 --to 500"
31+ bash -c " ckb import -C ${TMP_DIR} /import_range ${TMP_DIR} /import_range/ckb-1-200.jsonl"
32+ bash -c " ckb import -C ${TMP_DIR} /import_range ${TMP_DIR} /import_range/ckb-200-300.jsonl"
33+ bash -c " ckb import -C ${TMP_DIR} /import_range ${TMP_DIR} /import_range/ckb-300-400.jsonl --skip-script-verify"
34+ bash -c " ckb import -C ${TMP_DIR} /import_range ${TMP_DIR} /import_range/ckb-400-500.jsonl --skip-all-verify"
35+ }
36+
2537setup_file () {
2638 rm -f ${TMP_DIR} /ckb* .jsonl
2739}
You can’t perform that action at this time.
0 commit comments