7 "github.com/tendermint/abci/types"
13 abciType = os.Getenv("ABCI")
24 abciApp := os.Getenv("ABCI_APP")
26 panic("No ABCI_APP specified")
29 fmt.Printf("Running %s test with abci=%s\n", abciApp, abciType)
30 appProc := startApp(abciApp)
31 defer appProc.StopProcess(true)
32 client := startClient(abciType)
35 setOption(client, "serial", "on")
37 deliverTx(client, []byte("abc"), types.CodeType_BadNonce, nil)
39 deliverTx(client, []byte{0x00}, types.CodeType_OK, nil)
40 commit(client, []byte{0, 0, 0, 0, 0, 0, 0, 1})
41 deliverTx(client, []byte{0x00}, types.CodeType_BadNonce, nil)
42 deliverTx(client, []byte{0x01}, types.CodeType_OK, nil)
43 deliverTx(client, []byte{0x00, 0x02}, types.CodeType_OK, nil)
44 deliverTx(client, []byte{0x00, 0x03}, types.CodeType_OK, nil)
45 deliverTx(client, []byte{0x00, 0x00, 0x04}, types.CodeType_OK, nil)
46 deliverTx(client, []byte{0x00, 0x00, 0x06}, types.CodeType_BadNonce, nil)
47 commit(client, []byte{0, 0, 0, 0, 0, 0, 0, 5})