mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-17 12:48:41 +00:00
![Khairul Azhar Kasmiran](/assets/img/avatar_default.png)
* 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>
37 lines
793 B
Plaintext
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 |