2 # Automake definitions for ud/tests
4 check_PROGRAMS = gen ovrrun
7 gen_LDADD = ../libudis86/libudis86.la
8 gen_CFLAGS = -I$(top_srcdir)/libudis86 -I$(top_srcdir)
9 ovrrun_SOURCES = bufovrrun.c
10 ovrrun_LDADD = ../libudis86/libudis86.la
11 ovrrun_CFLAGS = -I$(top_srcdir)/libudis86 -I$(top_srcdir)
15 dist_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
21 tests: test16 test32 test64 testjmp bufovrrun randraw
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
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
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
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
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
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
63 $(CC) $(srcdir)/gen.c -o gen_installcheck.bin -I$(includedir) -L$(libdir) -ludis86