github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/cli/interactive_tests/test_workload.tcl (about)

     1  #! /usr/bin/env expect -f
     2  
     3  source [file join [file dirname $argv0] common.tcl]
     4  
     5  spawn /bin/bash
     6  send "PS1=':''/# '\r"
     7  eexpect ":/# "
     8  
     9  start_test "Check that the tpcc workload is registered."
    10  send "$argv workload run --help\r"
    11  eexpect "tpcc"
    12  end_test
    13  
    14  start_test "Sanity check workload fixtures url."
    15  send "$argv workload fixtures url tpcc\r"
    16  eexpect "gs://cockroach-fixtures/workload/tpcc"
    17  end_test
    18  
    19  # Clean up.
    20  send "exit 0\r"
    21  eexpect eof