radare2/test/new/db/cmd/cmd_pFb
Khairul Azhar Kasmiran 781fcccf55
Move CMDS= before EXPECT= in tests (#16417)
* Move CMDS= before EXPECT= in tests

* Revert "Move CMDS= before EXPECT= in tests"

This reverts commit 13a9085a36939ca5aab8515a1dce48f7862cbe05.

* Move CMDS= before EXPECT= in tests, take 2

* Revert "Move CMDS= before EXPECT= in tests, take 2"

This reverts commit 7c0bf6d8e3e3eae88e31c6dd41415743b348de29.

* Move CMDS= before EXPECT= in tests, take 3

Co-authored-by: pancake <pancake@nopcode.org>
2020-04-05 20:56:06 +08:00

37 lines
793 B
Plaintext

NAME=pFb.test simple protobuf
FILE=-
CMDS=<<EOF
wx 0a 2e 0a 07 56 69 6e 63 65 6e 74 10 09 1a 10 56 69 6e 63 65 6e 74 40 74 65 73 74 2e 63 6f 6d 22 0f 0a 0b 31 35 30 31 31 31 31 31 31 31 31 10 02
pFb
EOF
EXPECT=<<EOF
1 {
1: "Vincent"
2: 9 | 9
3: "Vincent@test.com"
4 {
1: "15011111111"
2: 2 | 2
}
}
EOF
RUN
NAME=pFb.test simple protobuf (verbose)
FILE=-
CMDS=<<EOF
wx 0a 2e 0a 07 56 69 6e 63 65 6e 74 10 09 1a 10 56 69 6e 63 65 6e 74 40 74 65 73 74 2e 63 6f 6d 22 0f 0a 0b 31 35 30 31 31 31 31 31 31 31 31 10 02
pFbv
EOF
EXPECT=<<EOF
1 [LEN_DELIM] {
1 [LEN_DELIM] : "Vincent"
2 [VARINT] : 9 | 9
3 [LEN_DELIM] : "Vincent@test.com"
4 [LEN_DELIM] {
1 [LEN_DELIM] : "15011111111"
2 [VARINT] : 2 | 2
}
}
EOF
RUN