aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Makefile5
-rw-r--r--test/test_all.bat6
-rw-r--r--test/test_misc.bat4
3 files changed, 12 insertions, 3 deletions
diff --git a/test/Makefile b/test/Makefile
index 28d8e6f..fc6cf47 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,4 +1,4 @@
-TARGET = make_nm normalize_prefix bad_address misc cvt_test cvt_test32 noexception misc32 detect_x32
+TARGET = make_nm normalize_prefix bad_address misc cvt_test cvt_test32 noexception misc32 detect_x32 apx
XBYAK_INC=../xbyak/xbyak.h
UNAME_S=$(shell uname -s)
ifeq ($(shell ./detect_x32),x32)
@@ -55,6 +55,8 @@ cvt_test32: cvt_test.cpp ../xbyak/xbyak.h
$(CXX) $(CFLAGS) $< -o $@ -DXBYAK32
noexception: noexception.cpp ../xbyak/xbyak.h
$(CXX) $(CFLAGS) $< -o $@ -fno-exceptions
+apx: apx.cpp ../xbyak/xbyak.h
+ $(CXX) $(CFLAGS) apx.cpp -o $@
test_nm: normalize_prefix $(TARGET)
$(MAKE) -C ../gen
@@ -71,6 +73,7 @@ endif
./misc
./misc32
./cvt_test
+ ./apx
ifeq ($(BIT),64)
CXX=$(CXX) ./test_address.sh 64
ifneq ($(X32),1)
diff --git a/test/test_all.bat b/test/test_all.bat
index d6c244d..0bcb787 100644
--- a/test/test_all.bat
+++ b/test/test_all.bat
@@ -5,4 +5,10 @@ call test_address
call test_address 64
echo *** test jmp address ***
call test_jmp
+echo *** test misc ***
+set FILE=misc
+call test_misc
+echo *** test APX ***
+set FILE=apx
+call test_misc
echo *** all test end ***
diff --git a/test/test_misc.bat b/test/test_misc.bat
index cdb81d3..38cc97b 100644
--- a/test/test_misc.bat
+++ b/test/test_misc.bat
@@ -1,4 +1,4 @@
call set_opt
bmake -f Makefile.win all
-cl -I../ -I./ -DXBYAK_TEST misc.cpp %OPT% /Od /Zi
-misc
+cl -I../ -I./ -DXBYAK_TEST %FILE%.cpp %OPT% /Od /Zi
+%FILE%