]> andersk Git - udis86.git/blame - tests/Makefile.am
Initial commit
[udis86.git] / tests / Makefile.am
CommitLineData
bbe45369 1#
2# Automake definitions for ud/tests
3#
4check_PROGRAMS = gen ovrrun
5
6gen_SOURCES = gen.c
7gen_LDADD = ../libudis86/libudis86.la
8gen_CFLAGS = -I$(top_srcdir)/libudis86 -I$(top_srcdir)
9ovrrun_SOURCES = bufovrrun.c
10ovrrun_LDADD = ../libudis86/libudis86.la
11ovrrun_CFLAGS = -I$(top_srcdir)/libudis86 -I$(top_srcdir)
12
13YASM = yasm
14
15dist_check_DATA = test16.asm test32.asm test64.asm testjmp.asm testobscure.asm \
16 testjmp.ref testobscure.ref randtest.raw randtest16.ref \
17 randtest32.ref randtest64.ref
18
19check-local: tests
20
21tests: test16 test32 test64 testjmp bufovrrun randraw
22
23test16: gen
24 $(YASM) -f bin -o test16.bin $(top_srcdir)/tests/test16.asm
25 echo "[bits 16]" > test16.out
26 ./gen -16 < test16.bin >> test16.out
27 diff $(top_srcdir)/tests/test16.asm test16.out
28
29test32: gen
30 $(YASM) -f bin -o test32.bin $(top_srcdir)/tests/test32.asm
31 echo "[bits 32]" > test32.out
32 ./gen -32 < test32.bin >> test32.out
33 diff $(top_srcdir)/tests/test32.asm test32.out
34
35test64: gen
36 $(YASM) -f bin -o test64.bin $(top_srcdir)/tests/test64.asm
37 echo "[bits 64]" > test64.out
38 ./gen -64 < test64.bin >> test64.out
39 diff $(top_srcdir)/tests/test64.asm test64.out
40
41testjmp: gen
42 $(YASM) -f bin -o testjmp.bin $(top_srcdir)/tests/testjmp.asm
43 ../udcli/udcli -64 < testjmp.bin > testjmp.out
44 diff $(top_srcdir)/tests/testjmp.ref testjmp.out
45
46testobscure: gen
47 $(YASM) -f bin -o testobscure.bin $(top_srcdir)/tests/testobscure.asm
48 ./gen -32 < testobscure.bin > testobscure.out
49 diff $(top_srcdir)/tests/testobscure.ref testobscure.out
50
51bufovrrun: ovrrun
52 ./ovrrun
53
54randraw:
55 ./gen -16 < $(top_srcdir)/tests/randtest.raw > randtest16.out
56 diff randtest16.out $(top_srcdir)/tests/randtest16.ref
57 ./gen -32 < $(top_srcdir)/tests/randtest.raw > randtest32.out
58 diff randtest32.out $(top_srcdir)/tests/randtest32.ref
59 ./gen -64 < $(top_srcdir)/tests/randtest.raw > randtest64.out
60 diff randtest64.out $(top_srcdir)/tests/randtest64.ref
61
62installcheck-local:
63 $(CC) $(srcdir)/gen.c -o gen_installcheck.bin -I$(includedir) -L$(libdir) -ludis86
64
65clean-local:
66 rm -f *.bin *.out
This page took 0.065509 seconds and 5 git commands to generate.