aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tests/Makefile
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-12 17:16:45 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-12 17:16:45 +0000
commitc69ab9d4310bfe374aa6354bd9afcf412c3dec8f (patch)
tree54028d761162ede4abc4538523772f1d98d0d690 /tools/tests/Makefile
parentc59635dc0f2f1201fa56231143959a03587c9890 (diff)
downloadxen-c69ab9d4310bfe374aa6354bd9afcf412c3dec8f.tar.gz
xen-c69ab9d4310bfe374aa6354bd9afcf412c3dec8f.tar.bz2
xen-c69ab9d4310bfe374aa6354bd9afcf412c3dec8f.zip
Extend emulator testing.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/tests/Makefile')
-rw-r--r--tools/tests/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/tests/Makefile b/tools/tests/Makefile
index 263caffb46..197abc5b3f 100644
--- a/tools/tests/Makefile
+++ b/tools/tests/Makefile
@@ -7,12 +7,20 @@ TARGET := test_x86_emulator
.PHONY: all
all: $(TARGET)
+blowfish.bin:
+ make -f blowfish.mk all
+
+blowfish.h: blowfish.bin
+ (echo "static unsigned int blowfish_code[] = {"; \
+ od -v -t x $< | sed 's/^[0-9]* /0x/' | sed 's/ /, 0x/g' | sed 's/$$/,/';\
+ echo "};") >$@
+
$(TARGET): x86_emulate.o test_x86_emulator.o
$(HOSTCC) -o $@ $^
.PHONY: clean
clean:
- rm -rf $(TARGET) *.o *~ core
+ rm -rf $(TARGET) *.o *~ core blowfish.h blowfish.bin
.PHONY: install
install:
@@ -20,5 +28,5 @@ install:
x86_emulate.o: $(XEN_ROOT)/xen/arch/x86/x86_emulate.c
$(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<
-%.o: %.c
+test_x86_emulator.o: test_x86_emulator.c blowfish.h
$(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<