aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tests/Makefile
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2011-01-08 10:59:13 +0000
committerKeir Fraser <keir@xen.org>2011-01-08 10:59:13 +0000
commite7803f184a6170727b7f52ff67bc6265a3591da7 (patch)
treee4ffc25b0b2fdb44858f3e3c07353ba4ca2e3f6f /tools/tests/Makefile
parent120138ec11e4f688c5409c432851361aafc9e301 (diff)
downloadxen-e7803f184a6170727b7f52ff67bc6265a3591da7.tar.gz
xen-e7803f184a6170727b7f52ff67bc6265a3591da7.tar.bz2
xen-e7803f184a6170727b7f52ff67bc6265a3591da7.zip
tools/tests: Move x86 emulator tests into a subdir
Signed-off-by: Keir Fraser <keir@xen.org> --HG-- rename : tools/tests/Makefile => tools/tests/x86_emulator/Makefile rename : tools/tests/blowfish.c => tools/tests/x86_emulator/blowfish.c rename : tools/tests/blowfish.mk => tools/tests/x86_emulator/blowfish.mk rename : tools/tests/test_x86_emulator.c => tools/tests/x86_emulator/test_x86_emulator.c rename : tools/tests/x86_emulate.c => tools/tests/x86_emulator/x86_emulate.c
Diffstat (limited to 'tools/tests/Makefile')
-rw-r--r--tools/tests/Makefile44
1 files changed, 0 insertions, 44 deletions
diff --git a/tools/tests/Makefile b/tools/tests/Makefile
deleted file mode 100644
index afd3476277..0000000000
--- a/tools/tests/Makefile
+++ /dev/null
@@ -1,44 +0,0 @@
-
-XEN_ROOT=../..
-include $(XEN_ROOT)/tools/Rules.mk
-
-TARGET := test_x86_emulator
-
-.PHONY: all
-all: $(TARGET)
-
-.PHONY: blowfish.h
-blowfish.h:
- rm -f blowfish.bin
- XEN_TARGET_ARCH=x86_32 make -f blowfish.mk all
- (echo "static unsigned int blowfish32_code[] = {"; \
- od -v -t x blowfish.bin | sed 's/^[0-9]* /0x/' | sed 's/ /, 0x/g' | sed 's/$$/,/';\
- echo "};") >$@
- rm -f blowfish.bin
-ifeq ($(XEN_COMPILE_ARCH),x86_64)
- XEN_TARGET_ARCH=x86_64 make -f blowfish.mk all
- (echo "static unsigned int blowfish64_code[] = {"; \
- od -v -t x blowfish.bin | sed 's/^[0-9]* /0x/' | sed 's/ /, 0x/g' | sed 's/$$/,/';\
- echo "};") >>$@
- rm -f blowfish.bin
-endif
-
-$(TARGET): x86_emulate.o test_x86_emulator.o
- $(HOSTCC) -o $@ $^
-
-.PHONY: clean
-clean:
- rm -rf $(TARGET) *.o *~ core blowfish.h blowfish.bin x86_emulate
-
-.PHONY: install
-install:
-
-.PHONY: x86_emulate
-x86_emulate:
- [ -L x86_emulate ] || ln -sf $(XEN_ROOT)/xen/arch/x86/x86_emulate .
-
-x86_emulate.o: x86_emulate.c x86_emulate
- $(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<
-
-test_x86_emulator.o: test_x86_emulator.c blowfish.h x86_emulate
- $(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<