radare2/test/Makefile

63 lines
1015 B
Makefile

R2R=$(shell cd new ; npm bin)/r2r
RUNTEST=cd new && npm install ; $(R2R)
all: r2r-tests unit_tests
bins:
git clone --depth 1 https://github.com/radareorg/radare2-testbins bins
fuzz/targets:
git clone --depth 1 https://github.com/radareorg/radare2-fuzztargets fuzz/targets
R2R_JS=$(shell cd new ; npm bin)/r2r
js-tests: bins
cd new && npm install ; $(R2R_JS)
RUNTEST=cd new && r2r -L
r2r-tests: bins
${RUNTEST}
keystone: bins
${RUNTEST} db/extras/asm/x86.ks_
swf: bins
${RUNTEST} db/extras/asm/swf
m68k-extras: bins
${RUNTEST} db/extras/asm/m68k
mc6809: bins
${RUNTEST} db/extras/asm/x86.udis
microblaze: bins
${RUNTEST} db/extras/asm/microblaze.gnu
udis86: bins
${RUNTEST} db/extras/asm/mc6809
olly-extras: bins
${RUNTEST} db/extras/asm/x86.olly
dwarf: bins
${RUNTEST} db/extras/asm/dwarf
yara: bins
${RUNTEST} db/extras/cmd/yara
clean:
rm -rf tmp
symstall:
install:
uninstall:
unit unit_tests: bins
$(MAKE) -C unit
$(MAKE) -C unit run
.PHONY: all clean unit install uninstall