radare2/test/new/db/cmd/cmd_env
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 13a9085a36.

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

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

This reverts commit 7c0bf6d8e3.

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

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

56 lines
547 B
Plaintext

NAME=env FOO
FILE=-
CMDS=<<EOF
env FOO=BAR
env FOO
EOF
EXPECT=<<EOF
BAR
EOF
RUN
NAME=int/str values
FILE=-
CMDS=<<EOF
e log.level=1
e log.level
e log.level=0
e log.level
e log.level=4
e log.level
e asm.cmt.off=nodup
e asm.cmt.off
e asm.cmt.off=false
e asm.cmt.off
e asm.cmt.off=true
e asm.cmt.off
e asm.cmt.off=0
e asm.cmt.off
e asm.cmt.off=1
e asm.cmt.off
e asm.cmt.off=
e asm.cmt.off
EOF
EXPECT=<<EOF
1
0
4
nodup
false
true
false
true
false
EOF
RUN
NAME=env with spaces
FILE=-
CMDS=<<EOF
env AAA = BBB
env AAA
EOF
EXPECT=<<EOF
BBB
EOF
RUN