Skip to content

Commit

Permalink
Add new yara test
Browse files Browse the repository at this point in the history
  • Loading branch information
jody-frankowski authored and radare committed Aug 10, 2014
1 parent a9aa825 commit a09887e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions t/cmd_yara
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ BROKEN=1
CMDS='
yara tags
yara add ../files/test_yara.rules
yara tags
'
EXPECT='crypto
packer
Expand All @@ -56,3 +57,14 @@ packer
test_rule
'
run_test

NAME='yara add duplicate then original'
FILE=../bins/elf/hello-linux-x86_64
CMDS='
yara add ../files/test_yara.rules
yara add ../files/test_yara.rules
yara add ../files/test_yara_2.rules
'
EXPECT_ERR='Error: duplicate rule identifier "elf" : ../files/test_yara.rules
'
run_test

0 comments on commit a09887e

Please sign in to comment.