radare2/test/new/db/cmd/cmd_alias
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

60 lines
478 B
Plaintext

NAME=test $alias
FILE=-
CMDS=<<EOF
$foo=?e hello
$foo
EOF
EXPECT=<<EOF
hello
EOF
RUN
NAME=test $alias quotes
FILE=-
CMDS=<<EOF
"$foo=?e hello;?e world"
$foo
EOF
EXPECT=<<EOF
hello
world
EOF
RUN
NAME=test $alias args
FILE=-
CMDS=<<EOF
$foo=!echo hello
$foo world
EOF
EXPECT=<<EOF
hello world
EOF
RUN
NAME=list $alias
FILE=-
CMDS=<<EOF
$foo=a
$bar=b
$
EOF
EXPECT=<<EOF
$foo
$bar
EOF
RUN
NAME=delete $alias
FILE=-
CMDS=<<EOF
$foo=a
$bar=b
$bar=
$
EOF
EXPECT=<<EOF
$foo
EOF
RUN