mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
781fcccf55
* Move CMDS= before EXPECT= in tests * Revert "Move CMDS= before EXPECT= in tests" This reverts commit13a9085a36
. * Move CMDS= before EXPECT= in tests, take 2 * Revert "Move CMDS= before EXPECT= in tests, take 2" This reverts commit7c0bf6d8e3
. * Move CMDS= before EXPECT= in tests, take 3 Co-authored-by: pancake <pancake@nopcode.org>
60 lines
478 B
Plaintext
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
|