Load plugins when running extra tests ##r2r

Co-authored-by: Sylvain Pelissier <sylvain.pelissier@kudelskisecurity.com>
This commit is contained in:
Sylvain Pelissier 2023-10-04 08:34:11 +00:00 committed by GitHub
parent f5c444ba67
commit 55e292681e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 9 deletions

View File

@ -894,7 +894,10 @@ static R2RProcessOutput *run_r2_test(R2RRunConfig *config, ut64 timeout_ms, int
// r_pvector_push (&args, "-ebin.types=false");
r_pvector_push (&args, "-escr.color=0");
r_pvector_push (&args, "-escr.interactive=0");
r_pvector_push (&args, "-NN");
if (!load_plugins) {
r_pvector_push (&args, "-NN");
}
RListIter *it;
void *extra_arg, *file_arg;
if (extra_args) {
@ -917,9 +920,11 @@ static R2RProcessOutput *run_r2_test(R2RRunConfig *config, ut64 timeout_ms, int
r_pvector_push (&envvars, "ANSICON");
r_pvector_push (&envvals, "1");
#endif
r_pvector_push (&envvars, "R2_NOPLUGINS");
r_pvector_push (&envvals, "1");
if (!load_plugins) {
r_pvector_push (&envvars, "R2_NOPLUGINS");
r_pvector_push (&envvals, "1");
}
if (extra_env)
{
RListIter * eit;

View File

@ -1,7 +1,7 @@
NAME=yara: scan
NAME=yara scan
FILE=bins/elf/vim
CMDS=<<EOF
yara scan
yrs
f
EOF
EXPECT=<<EOF
@ -20,11 +20,11 @@ SHA256_Constants
EOF
RUN
NAME=yara: scanS
NAME=yara: scan with strings
FILE=malloc://1024
CMDS=<<EOF
wx cffbc0b5e9b5dba5a5dbb5e9d728ae2222ae28d7
yara scanS
yrs S
EOF
EXPECT=<<EOF
SHA512_Constants
@ -34,4 +34,4 @@ SHA512_Constants
0x0000000c: yara0_SHA512_Constants_3 : d728ae22
0x00000010: yara0_SHA512_Constants_4 : 22ae28d7
EOF
RUN
RUN