2015-12-16 04:59:30 +03:00
|
|
|
|
|
|
|
CFLAGS += -I../../include
|
|
|
|
|
|
|
|
ifeq (MING,$(findstring MING,$(shell uname -s)))
|
|
|
|
LDFLAGS += ../../unicorn.lib $(shell pkg-config --libs glib-2.0) -lpthread -lm
|
|
|
|
else
|
2015-09-24 09:18:02 +03:00
|
|
|
LDFLAGS += ../../libunicorn.a $(shell pkg-config --libs glib-2.0) -lpthread -lm
|
2015-12-16 04:59:30 +03:00
|
|
|
endif
|
2015-08-24 14:00:54 +03:00
|
|
|
|
2015-08-27 01:19:12 +03:00
|
|
|
TESTS = map_crash map_write
|
|
|
|
TESTS += sigill sigill2
|
|
|
|
TESTS += block_test
|
2015-08-28 17:23:26 +03:00
|
|
|
TESTS += ro_mem_test nr_mem_test
|
2015-08-29 22:51:35 +03:00
|
|
|
TESTS += timeout_segfault
|
2015-09-01 15:05:33 +03:00
|
|
|
TESTS += rep_movsb
|
2015-09-04 10:48:24 +03:00
|
|
|
TESTS += mem_unmap
|
2015-10-21 23:25:49 +03:00
|
|
|
TESTS += mem_double_unmap
|
2015-09-04 10:48:24 +03:00
|
|
|
TESTS += mem_protect
|
|
|
|
TESTS += mem_exec
|
2015-10-27 06:25:34 +03:00
|
|
|
TESTS += mips_kseg0_1
|
2015-11-04 10:38:57 +03:00
|
|
|
TESTS += eflags_nosync
|
2015-11-05 15:41:15 +03:00
|
|
|
TESTS += 00opcode_uc_crash
|
2015-11-10 01:49:01 +03:00
|
|
|
TESTS += eflags_noset
|
2015-11-12 09:05:52 +03:00
|
|
|
TESTS += mem_map_large
|
2015-11-15 19:31:06 +03:00
|
|
|
TESTS += invalid_read_in_cpu_tb_exec
|
2015-11-17 10:44:38 +03:00
|
|
|
TESTS += invalid_write_in_cpu_tb_exec_x86_64
|
2015-11-30 01:00:34 +03:00
|
|
|
TESTS += x86_16_segfault
|
2015-12-01 01:44:49 +03:00
|
|
|
TESTS += mips_invalid_read_of_size_4_when_tracing
|
2015-12-02 09:15:44 +03:00
|
|
|
TESTS += invalid_read_in_tb_flush_x86_64
|
2015-12-02 23:55:13 +03:00
|
|
|
TESTS += sparc_jump_to_zero
|
2015-12-09 10:06:53 +03:00
|
|
|
TESTS += mips_delay_slot_code_hook
|
2015-12-10 01:08:07 +03:00
|
|
|
TESTS += mem_nofree
|
2015-12-12 01:48:46 +03:00
|
|
|
TESTS += rw_hookstack
|
2015-12-16 05:08:33 +03:00
|
|
|
TESTS += threaded_emu_start
|
2015-12-20 06:59:29 +03:00
|
|
|
TESTS += emu_stop_in_hook_overrun
|
2015-12-20 08:07:54 +03:00
|
|
|
TESTS += mips_branch_likely_issue
|
2015-12-22 13:33:36 +03:00
|
|
|
TESTS += hook_extrainvoke
|
2015-12-24 20:25:35 +03:00
|
|
|
TESTS += sysenter_hook_x86
|
2016-01-11 20:02:45 +03:00
|
|
|
TESTS += emu_clear_errors
|
2016-02-04 21:57:20 +03:00
|
|
|
TESTS += mem_fuzz
|
2016-04-09 22:27:20 +03:00
|
|
|
TESTS += 001-bad_condition_code_0xe
|
|
|
|
TESTS += 002-qemu__fatal__unimplemented_control_register_write_0xffb___0x0
|
|
|
|
TESTS += 003-qemu__fatal__wdebug_not_implemented
|
|
|
|
TESTS += 004-segmentation_fault_1
|
|
|
|
TESTS += 005-qemu__fatal__illegal_instruction__0000___00000404
|
|
|
|
TESTS += 006-qemu__fatal__illegal_instruction__0421___00040026
|
2016-04-24 17:53:30 +03:00
|
|
|
TESTS += mem_64_c
|
2016-08-20 00:32:19 +03:00
|
|
|
TESTS += mem_map_0x100000000
|
2015-08-24 14:00:54 +03:00
|
|
|
|
2016-01-10 18:56:14 +03:00
|
|
|
TESTS += memleak_x86
|
|
|
|
TESTS += memleak_arm
|
|
|
|
TESTS += memleak_arm64
|
|
|
|
TESTS += memleak_mips
|
|
|
|
TESTS += memleak_m68k
|
|
|
|
TESTS += memleak_sparc
|
|
|
|
|
2015-08-24 14:00:54 +03:00
|
|
|
all: $(TESTS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(TESTS)
|
|
|
|
|
2015-09-04 14:56:35 +03:00
|
|
|
%: %.c
|
|
|
|
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@
|
|
|
|
|
2015-08-24 14:00:54 +03:00
|
|
|
.PHONY: all clean
|