]> andersk Git - udis86.git/blob - tests/Makefile.am
Use the public http URI to docbook.xsl.
[udis86.git] / tests / Makefile.am
1 #
2 # Automake definitions for ud/tests
3 #
4 check_PROGRAMS = gen ovrrun
5
6 gen_SOURCES    = gen.c
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)
12
13 YASM = yasm
14
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
18
19 check-local: tests
20
21 tests: test16 test32 test64 testjmp bufovrrun randraw
22
23 test16: 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
29 test32: 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
35 test64: 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
41 testjmp: 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
46 testobscure: 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
51 bufovrrun: ovrrun
52         ./ovrrun
53
54 randraw: 
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
62 installcheck-local:
63         $(CC) $(srcdir)/gen.c -o gen_installcheck.bin -I$(includedir) -L$(libdir) -ludis86
64
65 clean-local:
66         rm -f *.bin *.out
This page took 0.091976 seconds and 5 git commands to generate.