From 1778a89a6769973a4796885fe63b7a7dc0696895 Mon Sep 17 00:00:00 2001 From: weixin_93 Date: Sat, 1 Jul 2023 17:25:19 +0800 Subject: [PATCH 1/2] update llvm_15 --- CMakeLists.txt | 12 ++++++++---- Makefile | 8 ++++---- build/envsetup.sh | 2 +- build/third_party/patch.sh | 4 ++++ 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3219cfd3cd..b359967c3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,7 @@ set(COV_CHECK "1") # env args set(MAPLE_ROOT $ENV{MAPLE_ROOT}) set(ANDROID_ROOT ${MAPLE_ROOT}/android) +set(ENHANCED_CLANG_PATH $ENV{ENHANCED_CLANG_PATH}) set(AOSP_ROOT ${MAPLE_ROOT}/third_party/aosp_modified) set(MAPLE_BUILD_TYPE $ENV{MAPLE_BUILD_TYPE}) set(MAPLE_BUILD_OUTPUT $ENV{MAPLE_BUILD_OUTPUT}) @@ -65,7 +66,8 @@ set(PROJECT_BINARY_DIR ${MAPLE_BUILD_OUTPUT}/lib) #--------------------------------- toolchain ------------------------------------- -set(CLANG_PATH $ENV{ENHANCED_CLANG_PATH}) +# ENHANCED_CLANG_PATH +set(CLANG_PATH ${ENHANCED_CLANG_PATH}) set(LLVMINC ${CLANG_PATH}/include) set(LLVMLIBDIR ${CLANG_PATH}/lib) set(CFE_SRC_DIR ${MAPLE_ROOT}/../third_party/clang-10.0.0.src) @@ -100,10 +102,12 @@ if(${CMAKE_BUILD_TYPE} STREQUAL "RELEASE") "${CMAKE_C_FLAGS} -O2 -fno-strict-aliasing -D_FORTIFY_SOURCE=2") elseif(${CMAKE_BUILD_TYPE} STREQUAL "DEBUG") add_definitions("-DDEBUG") + set(CMAKE_CXX_FLAGS_DEBUG "-g3 -gdwarf-4") + set(CMAKE_C_FLAGS_DEBUG "-g3 -gdwarf-4") set(CMAKE_CXX_FLAGS - "${CMAKE_CXX_FLAGS} -O0 -g3 -ftrapv -fstack-check") + "${CMAKE_CXX_FLAGS} -O0 -ftrapv -fstack-check") set(CMAKE_C_FLAGS - "${CMAKE_C_FLAGS} -O0 -g3 -ftrapv -fstack-check") + "${CMAKE_C_FLAGS} -O0 -ftrapv -fstack-check") if(${target_toolchain} STREQUAL "//build/toolchain:clang") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-limit-debug-info") @@ -160,7 +164,7 @@ endif() if(${ASAN} STREQUAL 1) add_definitions(" -fsanitize=address ") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -ldl ${LLVMLIBDIR}/libclang_rt.asan-x86_64.a") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -ldl ${LLVMLIBDIR}/clang/15.0.4/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a") endif() if(${COV} STREQUAL 1) diff --git a/Makefile b/Makefile index 7cc2a2860e..4e7c22e01e 100644 --- a/Makefile +++ b/Makefile @@ -184,12 +184,12 @@ java-core-def: install install: maple dex2mpl_install irbuild hir2mpl mplverf $(shell mkdir -p $(INSTALL_DIR)/ops/linker/; \ mkdir -p $(INSTALL_DIR)/lib/libc_enhanced/include/; \ + mkdir -p $(INSTALL_DIR)/lib/include/; \ + rsync -a -L $(MAPLE_ROOT)/src/hir2mpl/ast_input/clang/lib/sys/ $(INSTALL_DIR)/lib/include/; \ + rsync -a -L $(MAPLE_ROOT)/libc_enhanced/include/ $(INSTALL_DIR)/lib/libc_enhanced/include/; \ rsync -a -L $(MRT_ROOT)/maplert/linker/maplelld.so.lds $(INSTALL_DIR)/ops/linker/; \ rsync -a -L $(MAPLE_ROOT)/build/java2d8 $(INSTALL_DIR)/bin; \ - rsync -a -L $(MAPLE_BIN_DIR)/java2jar $(INSTALL_DIR)/bin/; \ - cp -rf $(MAPLE_ROOT)/tools $(INSTALL_DIR)/../; \ - rsync -a -L $(MAPLE_ROOT)/libc_enhanced/include/ $(INSTALL_DIR)/lib/libc_enhanced/include/; \ - rsync -a -L $(MAPLE_ROOT)/src/hir2mpl/ast_input/clang/lib/sys/ $(INSTALL_DIR)/lib/include/;) + rsync -a -L $(MAPLE_BIN_DIR)/java2jar $(INSTALL_DIR)/bin/;) .PHONY: all all: install libcore diff --git a/build/envsetup.sh b/build/envsetup.sh index 75846ca12b..529f3388ed 100644 --- a/build/envsetup.sh +++ b/build/envsetup.sh @@ -33,7 +33,7 @@ export MAPLE_ROOT=${curdir} export SPEC=${MAPLE_ROOT}/testsuite/c_test/spec_test # enhanced clang patch, LD_LIBRARY_PATH export ENHANCED_CLANG_PATH=${MAPLE_ROOT}/tools/clang+llvm-15.0.4-x86_64-linux-gnu-ubuntu-18.04-enhanced -export PURE_CLANG_PATH=${MAPLE_ROOT}/tools/clang+llvm-15.0.4-x86_64-linux-gnu-ubuntu-18.04-enhanced +export PURE_CLANG_PATH=${MAPLE_ROOT}/tools/clang+llvm-15.0.4-x86_64-linux-gnu-ubuntu-18.04-pure export LLVM_PATH=${MAPLE_ROOT}/third_party/llvm-15.0.4.src export LD_LIBRARY_PATH=${MAPLE_ROOT}/tools/gcc-linaro-7.5.0/aarch64-linux-gnu/libc/lib:${ENHANCED_CLANG_PATH}/lib:${LD_LIBRARY_PATH} diff --git a/build/third_party/patch.sh b/build/third_party/patch.sh index d0b6d541da..62c0310d11 100644 --- a/build/third_party/patch.sh +++ b/build/third_party/patch.sh @@ -42,6 +42,10 @@ function install_patch { mkdir -p include/ cp -r ${MAPLE_ROOT}/src/hir2mpl/bytecode_input/dex/include/string_view_format.h include/ + cd $MODIFIED_LLVM_PATH + # llvm_enhancedc_001.patch 重新生成llvm 15的 C增强特性 的patch + patch -p1 < $TOOLS_PATH/llvm_enhancec_001.patch + #add third_party gn cp -f $AOSP_GN_PATH/art/libdexfile/BUILD.gn $MODIFIED_AOSP_PATH/art/libdexfile/ cp -f $AOSP_GN_PATH/system/core/libziparchive/BUILD.gn $MODIFIED_AOSP_PATH/system/core/libziparchive/ -- Gitee From 1bf77487d80b64af81bd4dbe87603ddea728ec8f Mon Sep 17 00:00:00 2001 From: weixin_93 Date: Sat, 1 Jul 2023 17:38:23 +0800 Subject: [PATCH 2/2] update llvm_15 : update testsuite --- .../aarch64-clang-debug.conf | 0 .../aarch64-clang-release.conf | 0 .../x86_64-clang-debug.conf | 0 .../x86_64-clang-release.conf | 0 testsuite/driver/config | 1 + .../driver/src/{api => }/.api/__init__.py | 0 testsuite/driver/src/{api => }/.api/c2ast.py | 0 .../driver/src/{api => }/.api/c_linker.py | 0 .../driver/src/{api => }/.api/c_linker_all.py | 0 .../src/{api => }/.api/check_file_equal.py | 0 .../src/{api => }/.api/check_reg_contain.py | 0 .../driver/src/{api => }/.api/clang_linker.py | 0 testsuite/driver/src/{api => }/.api/driver.py | 0 .../driver/src/{api => }/.api/gen_bin.py | 0 .../driver/src/{api => }/.api/hir2mpl.py | 0 .../driver/src/{api => }/.api/irbuild.py | 0 .../driver/src/{api => }/.api/java2dex.py | 0 testsuite/driver/src/{api => }/.api/linker.py | 0 testsuite/driver/src/{api => }/.api/maple.py | 0 .../driver/src/{api => }/.api/maple_cg.py | 0 .../driver/src/{api => }/.api/maple_driver.py | 0 testsuite/driver/src/{api => }/.api/mplsh.py | 0 testsuite/driver/src/{api => }/.api/qemu.py | 0 testsuite/driver/src/{api => }/.api/shell.py | 0 .../src/{api => }/.api/shell_operator.py | 0 .../driver/src/{api => }/.api/simple_maple.py | 0 .../driver/src/{mode => }/.mode/AAPCS64_O0.py | 0 .../driver/src/{mode => }/.mode/AAPCS64_O2.py | 0 .../driver/src/{mode => }/.mode/ASAN_O0.py | 0 .../driver/src/{mode => }/.mode/AST2MPL.py | 0 .../driver/src/{mode => }/.mode/ASTMBC.py | 0 .../driver/src/{mode => }/.mode/ASTO0.py | 0 .../driver/src/{mode => }/.mode/ASTO0_OLD.py | 0 .../driver/src/{mode => }/.mode/ASTO2.py | 0 .../driver/src/{mode => }/.mode/ASTO2_OLD.py | 0 .../driver/src/{mode => }/.mode/CMBCO2.py | 0 testsuite/driver/src/{mode => }/.mode/CO0.py | 0 .../src/{mode => }/.mode/CO0_MPL_C2M.py | 0 .../driver/src/{mode => }/.mode/CO0_OLD.py | 0 .../driver/src/{mode => }/.mode/CO0_PIE.py | 0 .../driver/src/{mode => }/.mode/CO0_SHARED.py | 0 .../src/{mode => }/.mode/CO0_SHARED_OLD.py | 0 testsuite/driver/src/{mode => }/.mode/CO2.py | 0 .../src/{mode => }/.mode/CO2_BPL_C2M.py | 0 .../src/{mode => }/.mode/CO2_MPL_C2M.py | 0 .../{mode => }/.mode/CO2_MPL_NOINLINE_C2M.py | 0 .../driver/src/{mode => }/.mode/CO2_MUXED.py | 0 .../driver/src/{mode => }/.mode/CO2_OLD.py | 0 .../driver/src/{mode => }/.mode/CO2_PIE.py | 0 .../driver/src/{mode => }/.mode/CO2_SHARED.py | 0 .../src/{mode => }/.mode/CO2_SHARED_OLD.py | 0 testsuite/driver/src/{mode => }/.mode/CO3.py | 0 .../src/{mode => }/.mode/CO3_BPL_C2M.py | 0 .../{mode => }/.mode/CO3_BPL_NOINLINE_C2M.py | 0 .../src/{mode => }/.mode/CO3_MPL_C2M.py | 0 .../{mode => }/.mode/CO3_MPL_NOINLINE_C2M.py | 0 .../src/{mode => }/.mode/CO3_NOINLINE.py | 0 .../src/{mode => }/.mode/CO3_NOINLINE_OLD.py | 0 .../driver/src/{mode => }/.mode/CO3_OLD.py | 0 testsuite/driver/src/{mode => }/.mode/COS.py | 0 .../driver/src/{mode => }/.mode/COS_OLD.py | 0 .../driver/src/{mode => }/.mode/DEJAO0.py | 0 .../driver/src/{mode => }/.mode/DEJAO0_OLD.py | 0 .../driver/src/{mode => }/.mode/DRIVER.py | 0 .../driver/src/{mode => }/.mode/ENCO2_B_D.py | 0 .../src/{mode => }/.mode/ENCO2_B_D_A_C.py | 0 .../src/{mode => }/.mode/ENCO2_B_D_A_C_OLD.py | 0 .../src/{mode => }/.mode/ENCO2_B_D_OLD.py | 0 .../driver/src/{mode => }/.mode/ENCO2_N_D.py | 0 .../src/{mode => }/.mode/ENCO2_N_D_ALL.py | 0 .../src/{mode => }/.mode/ENCO2_N_D_ALL_OLD.py | 0 .../src/{mode => }/.mode/ENCO2_N_D_NO_LINK.py | 0 .../{mode => }/.mode/ENCO2_N_D_NO_LINK_OLD.py | 0 .../src/{mode => }/.mode/ENCO2_N_D_OLD.py | 0 .../driver/src/{mode => }/.mode/ENCO2_S_D.py | 0 .../src/{mode => }/.mode/ENCO2_S_D_OLD.py | 0 .../driver/src/{mode => }/.mode/FORTIFY_O1.py | 0 .../src/{mode => }/.mode/FORTIFY_O1_OLD.py | 0 .../driver/src/{mode => }/.mode/FORTIFY_O2.py | 0 .../src/{mode => }/.mode/FORTIFY_O2_OLD.py | 0 .../driver/src/{mode => }/.mode/GC_O0.py | 0 .../driver/src/{mode => }/.mode/GC_O2.py | 0 testsuite/driver/src/{mode => }/.mode/IR.py | 0 .../driver/src/{mode => }/.mode/LTOASTO0.py | 0 .../driver/src/{mode => }/.mode/LTO_ENC.py | 0 .../driver/src/{mode => }/.mode/LTO_TEST.py | 0 .../driver/src/{mode => }/.mode/LVMMBCO2.py | 0 .../src/{mode => }/.mode/LVMO0_DEBUG.py | 0 .../src/{mode => }/.mode/LVMO0_DEBUG_OLD.py | 0 .../driver/src/{mode => }/.mode/LVMO2.py | 0 .../driver/src/{mode => }/.mode/LVMO2_OLD.py | 0 .../driver/src/{mode => }/.mode/LVMO2_SAFE.py | 0 .../src/{mode => }/.mode/LVMO2_SAFE_OLD.py | 0 .../driver/src/{mode => }/.mode/MPLIR.py | 0 .../driver/src/{mode => }/.mode/NEONO0.py | 0 .../driver/src/{mode => }/.mode/NEONO0_OLD.py | 0 .../driver/src/{mode => }/.mode/NEONO2.py | 0 .../driver/src/{mode => }/.mode/NEONO2_OLD.py | 0 testsuite/driver/src/{mode => }/.mode/O0.py | 0 testsuite/driver/src/{mode => }/.mode/O2.py | 0 .../driver/src/{mode => }/.mode/OPTMBCO2.py | 0 .../driver/src/{mode => }/.mode/OPTO2.py | 0 .../driver/src/{mode => }/.mode/OPTO2_OLD.py | 0 .../driver/src/{mode => }/.mode/OPTO2_SAFE.py | 0 .../src/{mode => }/.mode/OPTO2_SAFE_OLD.py | 0 .../src/{mode => }/.mode/SAFEO2_TEST.py | 0 .../src/{mode => }/.mode/SAFEO2_TRAIN.py | 0 .../src/{mode => }/.mode/SCMBCO2_TEST.py | 0 .../src/{mode => }/.mode/SCMBCO2_TRAIN.py | 0 .../driver/src/{mode => }/.mode/SCO0_TEST.py | 0 .../src/{mode => }/.mode/SCO0_TEST_MERGE.py | 0 .../driver/src/{mode => }/.mode/SCO0_TRAIN.py | 0 .../src/{mode => }/.mode/SCO0_TRAIN_MERGE.py | 0 .../driver/src/{mode => }/.mode/SCO2_TEST.py | 0 .../src/{mode => }/.mode/SCO2_TEST_MERGE.py | 0 .../driver/src/{mode => }/.mode/SCO2_TRAIN.py | 0 .../src/{mode => }/.mode/SCO2_TRAIN_MERGE.py | 0 .../driver/src/{mode => }/.mode/SCOS_TRAIN.py | 0 .../src/{mode => }/.mode/SCOS_TRAIN_MERGE.py | 0 .../driver/src/{mode => }/.mode/SP_ALL.py | 0 .../driver/src/{mode => }/.mode/SP_ALL_OLD.py | 0 .../driver/src/{mode => }/.mode/SP_STRONG.py | 0 .../src/{mode => }/.mode/SP_STRONG_OLD.py | 0 .../driver/src/{mode => }/.mode/SUPMBCO2.py | 0 .../driver/src/{mode => }/.mode/SUPO0.py | 0 .../driver/src/{mode => }/.mode/SUPO0_OLD.py | 0 .../driver/src/{mode => }/.mode/SUPO2.py | 0 .../driver/src/{mode => }/.mode/SUPO2_OLD.py | 0 .../driver/src/{mode => }/.mode/SUPO2_SAFE.py | 0 .../src/{mode => }/.mode/SUPO2_SAFE_OLD.py | 0 .../driver/src/{mode => }/.mode/TEST_O2.py | 0 .../driver/src/{mode => }/.mode/TEST_OS.py | 0 .../driver/src/{mode => }/.mode/TSVO2.py | 0 .../driver/src/{mode => }/.mode/TSVO2_OLD.py | 0 .../driver/src/{mode => }/.mode/X64_LITECG.py | 0 .../src/{mode => }/.mode/X64_LITECG_ME_O2.py | 0 .../{mode => }/.mode/X64_LITECG_MPL2MPL_O2.py | 0 .../driver/src/{mode => }/.mode/X64_O0.py | 0 .../driver/src/{mode => }/.mode/X64_O2.py | 0 .../driver/src/{mode => }/.mode/__init__.py | 0 testsuite/driver/src/api | 1 + testsuite/driver/src/api/__init__.py | 32 -- testsuite/driver/src/api/benchmark_native.py | 34 -- testsuite/driver/src/api/benchmark_vogar.py | 18 - testsuite/driver/src/api/check_file_equal.py | 27 -- testsuite/driver/src/api/check_reg_contain.py | 31 -- testsuite/driver/src/api/class2panda.py | 28 -- testsuite/driver/src/api/dex2mpl.py | 28 -- testsuite/driver/src/api/gendeps.py | 34 -- testsuite/driver/src/api/irbuild.py | 27 -- testsuite/driver/src/api/jar2dex.py | 27 -- testsuite/driver/src/api/jasm2jar.py | 26 -- testsuite/driver/src/api/java2dex.py | 39 -- testsuite/driver/src/api/jcod2jar.py | 26 -- testsuite/driver/src/api/linker.py | 32 -- testsuite/driver/src/api/maple.py | 36 -- testsuite/driver/src/api/mplme.py | 28 -- testsuite/driver/src/api/mplsh.py | 47 --- testsuite/driver/src/api/mplverf.py | 27 -- testsuite/driver/src/api/native_compile.py | 75 ---- testsuite/driver/src/api/qemu_linker_arm32.py | 38 -- testsuite/driver/src/api/qemu_linker_arm64.py | 30 -- .../driver/src/api/qemu_native_linker.py | 25 -- testsuite/driver/src/api/shell.py | 25 -- testsuite/driver/src/api/shell_operator.py | 53 --- testsuite/driver/src/api/smali2dex.py | 27 -- testsuite/driver/src/api/unzip.py | 27 -- testsuite/driver/src/mode | 1 + testsuite/driver/src/mode/AOT.py | 116 ------ testsuite/driver/src/mode/ARM32O0HD.py | 120 ------ testsuite/driver/src/mode/ARM32O0NATIVEHD.py | 131 ------- testsuite/driver/src/mode/ARM32O0NATIVESFP.py | 131 ------- testsuite/driver/src/mode/ARM32O0RCHD.py | 79 ---- testsuite/driver/src/mode/ARM32O0RCSFP.py | 79 ---- testsuite/driver/src/mode/ARM32O0SFP.py | 120 ------ testsuite/driver/src/mode/ARM32O2HD.py | 116 ------ testsuite/driver/src/mode/ARM32O2NATIVEHD.py | 129 ------- testsuite/driver/src/mode/ARM32O2NATIVESFP.py | 129 ------- testsuite/driver/src/mode/ARM32O2RCHD.py | 79 ---- testsuite/driver/src/mode/ARM32O2RCSFP.py | 79 ---- testsuite/driver/src/mode/ARM32O2SFP.py | 116 ------ .../src/mode/ARM32ZTERPCLASSLOADERHD.py | 299 -------------- .../src/mode/ARM32ZTERPCLASSLOADERSFP.py | 299 -------------- .../driver/src/mode/ARM32ZTERPDEXSOHD.py | 144 ------- .../driver/src/mode/ARM32ZTERPDEXSOSFP.py | 144 ------- testsuite/driver/src/mode/ARM32ZTERPHD.py | 106 ----- testsuite/driver/src/mode/ARM32ZTERPRCHD.py | 63 --- testsuite/driver/src/mode/ARM32ZTERPRCSFP.py | 63 --- testsuite/driver/src/mode/ARM32ZTERPSFP.py | 106 ----- testsuite/driver/src/mode/COMPACT.py | 123 ------ testsuite/driver/src/mode/CORT.py | 30 -- testsuite/driver/src/mode/DEOPT.py | 60 --- testsuite/driver/src/mode/DEPENDENCE.py | 27 -- testsuite/driver/src/mode/DEX.py | 39 -- testsuite/driver/src/mode/GCO0.py | 65 ---- testsuite/driver/src/mode/GCO0NATIVE.py | 76 ---- testsuite/driver/src/mode/GCO2.py | 66 ---- testsuite/driver/src/mode/GCO2NATIVE.py | 77 ---- testsuite/driver/src/mode/GCONLY.py | 79 ---- testsuite/driver/src/mode/GC_IFILE.py | 61 --- testsuite/driver/src/mode/GC_IFILE_NATIVE.py | 72 ---- .../src/mode/HIR2MPL_COMMON_RC_IFILE.py | 110 ------ .../src/mode/HIR2MPL_COMMON_RC_IFILE_O0.py | 109 ------ testsuite/driver/src/mode/HIR2MPL_CSTO0.py | 68 ---- testsuite/driver/src/mode/HIR2MPL_CSTO2.py | 68 ---- testsuite/driver/src/mode/HIR2MPL_DEXO0.py | 65 ---- .../driver/src/mode/HIR2MPL_DEXO0_NATIVE.py | 76 ---- testsuite/driver/src/mode/HIR2MPL_DEXO2.py | 66 ---- .../driver/src/mode/HIR2MPL_DEXO2_JCK.py | 67 ---- .../driver/src/mode/HIR2MPL_DEXO2_JTREG.py | 65 ---- .../driver/src/mode/HIR2MPL_DEXO2_NATIVE.py | 77 ---- testsuite/driver/src/mode/HIR2MPL_DEXO2_RC.py | 79 ---- .../src/mode/HIR2MPL_DEXO2_RC_COMMON.py | 116 ------ .../src/mode/HIR2MPL_DEXO2_RC_NATIVE.py | 129 ------- testsuite/driver/src/mode/HIR2MPL_IFILE.py | 60 --- .../driver/src/mode/HIR2MPL_IFILE_NATIVE.py | 71 ---- testsuite/driver/src/mode/HIR2MPL_IFILE_O0.py | 60 --- .../src/mode/HIR2MPL_NATIVE_RC_IFILE.py | 123 ------ .../src/mode/HIR2MPL_NATIVE_RC_IFILEEH.py | 71 ---- testsuite/driver/src/mode/HIR2MPL_PANDAO0.py | 70 ---- .../driver/src/mode/HIR2MPL_PANDAO0_NATIVE.py | 81 ---- testsuite/driver/src/mode/HIR2MPL_PANDAO2.py | 71 ---- .../driver/src/mode/HIR2MPL_PANDAO2_JCK.py | 56 --- .../driver/src/mode/HIR2MPL_PANDAO2_JTREG.py | 68 ---- .../driver/src/mode/HIR2MPL_PANDAO2_NATIVE.py | 82 ---- testsuite/driver/src/mode/HIR2MPL_RC_IFILE.py | 73 ---- .../driver/src/mode/HIR2MPL_RC_IFILE_O0.py | 72 ---- testsuite/driver/src/mode/IFILE.py | 111 ------ testsuite/driver/src/mode/IFILENATIVE.py | 124 ------ testsuite/driver/src/mode/IFILENATIVEEH.py | 72 ---- testsuite/driver/src/mode/IR.py | 32 -- .../driver/src/mode/JASMJBC2MPL_LIBCORE.py | 130 ------- testsuite/driver/src/mode/JASMO0.py | 135 ------- testsuite/driver/src/mode/JASMO2.py | 131 ------- testsuite/driver/src/mode/JASM_O0.py | 115 ------ testsuite/driver/src/mode/JASM_O2.py | 110 ------ testsuite/driver/src/mode/JBC2MPL_LIBCORE.py | 120 ------ .../driver/src/mode/JBC2MPL_LIBCORENATIVE.py | 132 ------- .../driver/src/mode/JBC2MPL_LIBCORERC.py | 79 ---- testsuite/driver/src/mode/JBC_O0.py | 120 ------ testsuite/driver/src/mode/JBC_O2.py | 115 ------ testsuite/driver/src/mode/JCK_AOT.py | 66 ---- testsuite/driver/src/mode/JCK_DEOPT.py | 60 --- testsuite/driver/src/mode/JCK_GCO2.py | 66 ---- testsuite/driver/src/mode/JCK_GC_IFILE.py | 61 --- .../driver/src/mode/JCK_HIR2MPL_IFILE.py | 60 --- .../driver/src/mode/JCK_HIR2MPL_IFILE_O0.py | 60 --- .../driver/src/mode/JCK_HIR2MPL_RC_IFILE.py | 61 --- .../src/mode/JCK_HIR2MPL_RC_IFILE_O0.py | 61 --- testsuite/driver/src/mode/JCK_IFILE.py | 61 --- testsuite/driver/src/mode/JCK_MOVO2.py | 64 --- testsuite/driver/src/mode/JCK_O2.py | 66 ---- testsuite/driver/src/mode/JCK_TGCO2.py | 58 --- testsuite/driver/src/mode/JCK_ZTERP.py | 48 --- testsuite/driver/src/mode/JCOD_O0.py | 115 ------ testsuite/driver/src/mode/JCOD_O2.py | 110 ------ testsuite/driver/src/mode/JTREG_GCO2.py | 65 ---- testsuite/driver/src/mode/JTREG_MOVO2.py | 63 --- testsuite/driver/src/mode/JTREG_O2.py | 65 ---- testsuite/driver/src/mode/JTREG_TGCO2.py | 58 --- testsuite/driver/src/mode/JTREG_ZTERP.py | 47 --- testsuite/driver/src/mode/MAPLETI_ZTERP.py | 130 ------- .../driver/src/mode/MAPLETI_ZTERP_PANDA.py | 135 ------- testsuite/driver/src/mode/MEMORY_CHECK.py | 55 --- testsuite/driver/src/mode/MOVO2.py | 66 ---- testsuite/driver/src/mode/MOVO2NATIVE.py | 77 ---- testsuite/driver/src/mode/O0.py | 120 ------ testsuite/driver/src/mode/O0NATIVE.py | 131 ------- testsuite/driver/src/mode/O0NATIVEEH.py | 77 ---- testsuite/driver/src/mode/O0RC.py | 79 ---- testsuite/driver/src/mode/O0SMALI.py | 155 -------- testsuite/driver/src/mode/O2.py | 116 ------ testsuite/driver/src/mode/O2NATIVE.py | 129 ------- testsuite/driver/src/mode/O2NATIVEEH.py | 77 ---- testsuite/driver/src/mode/O2RC.py | 79 ---- testsuite/driver/src/mode/O2SMALI.py | 151 -------- testsuite/driver/src/mode/O2STMTPRE.py | 121 ------ testsuite/driver/src/mode/O2SUBSUMERC.py | 121 ------ testsuite/driver/src/mode/OPSIR.py | 32 -- testsuite/driver/src/mode/OPS_NATIVE_O0.py | 136 ------- testsuite/driver/src/mode/OPS_NATIVE_O2.py | 133 ------- testsuite/driver/src/mode/OPS_O0.py | 124 ------ testsuite/driver/src/mode/OPS_O2.py | 119 ------ testsuite/driver/src/mode/PANDA_ZTERP.py | 103 ----- testsuite/driver/src/mode/RC.py | 79 ---- testsuite/driver/src/mode/REFINECATCH.py | 29 -- testsuite/driver/src/mode/SELF.py | 17 - testsuite/driver/src/mode/STATICSTRING.py | 34 -- .../driver/src/mode/STATICSTRINGWRONG.py | 40 -- testsuite/driver/src/mode/TGCO0.py | 61 --- testsuite/driver/src/mode/TGCO2.py | 61 --- testsuite/driver/src/mode/TIME.py | 107 ----- testsuite/driver/src/mode/ZRT.py | 115 ------ testsuite/driver/src/mode/ZRTNATIVE.py | 131 ------- testsuite/driver/src/mode/ZRTNATIVEEH.py | 77 ---- testsuite/driver/src/mode/ZRTRC.py | 78 ---- testsuite/driver/src/mode/ZTERP.py | 98 ----- testsuite/driver/src/mode/ZTERPCLASSLOADER.py | 365 ------------------ testsuite/driver/src/mode/ZTERPDEXSO.py | 142 ------- testsuite/driver/src/mode/ZTERPRC.py | 61 --- testsuite/driver/src/mode/__init__.py | 26 -- 301 files changed, 3 insertions(+), 13151 deletions(-) rename testsuite/driver/{config => .config}/aarch64-clang-debug.conf (100%) rename testsuite/driver/{config => .config}/aarch64-clang-release.conf (100%) rename testsuite/driver/{config => .config}/x86_64-clang-debug.conf (100%) rename testsuite/driver/{config => .config}/x86_64-clang-release.conf (100%) create mode 120000 testsuite/driver/config rename testsuite/driver/src/{api => }/.api/__init__.py (100%) rename testsuite/driver/src/{api => }/.api/c2ast.py (100%) rename testsuite/driver/src/{api => }/.api/c_linker.py (100%) rename testsuite/driver/src/{api => }/.api/c_linker_all.py (100%) rename testsuite/driver/src/{api => }/.api/check_file_equal.py (100%) rename testsuite/driver/src/{api => }/.api/check_reg_contain.py (100%) rename testsuite/driver/src/{api => }/.api/clang_linker.py (100%) rename testsuite/driver/src/{api => }/.api/driver.py (100%) rename testsuite/driver/src/{api => }/.api/gen_bin.py (100%) rename testsuite/driver/src/{api => }/.api/hir2mpl.py (100%) rename testsuite/driver/src/{api => }/.api/irbuild.py (100%) rename testsuite/driver/src/{api => }/.api/java2dex.py (100%) rename testsuite/driver/src/{api => }/.api/linker.py (100%) rename testsuite/driver/src/{api => }/.api/maple.py (100%) rename testsuite/driver/src/{api => }/.api/maple_cg.py (100%) rename testsuite/driver/src/{api => }/.api/maple_driver.py (100%) rename testsuite/driver/src/{api => }/.api/mplsh.py (100%) rename testsuite/driver/src/{api => }/.api/qemu.py (100%) rename testsuite/driver/src/{api => }/.api/shell.py (100%) rename testsuite/driver/src/{api => }/.api/shell_operator.py (100%) rename testsuite/driver/src/{api => }/.api/simple_maple.py (100%) rename testsuite/driver/src/{mode => }/.mode/AAPCS64_O0.py (100%) rename testsuite/driver/src/{mode => }/.mode/AAPCS64_O2.py (100%) rename testsuite/driver/src/{mode => }/.mode/ASAN_O0.py (100%) rename testsuite/driver/src/{mode => }/.mode/AST2MPL.py (100%) rename testsuite/driver/src/{mode => }/.mode/ASTMBC.py (100%) rename testsuite/driver/src/{mode => }/.mode/ASTO0.py (100%) rename testsuite/driver/src/{mode => }/.mode/ASTO0_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/ASTO2.py (100%) rename testsuite/driver/src/{mode => }/.mode/ASTO2_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/CMBCO2.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO0.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO0_MPL_C2M.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO0_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO0_PIE.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO0_SHARED.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO0_SHARED_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO2.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO2_BPL_C2M.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO2_MPL_C2M.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO2_MPL_NOINLINE_C2M.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO2_MUXED.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO2_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO2_PIE.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO2_SHARED.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO2_SHARED_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO3.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO3_BPL_C2M.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO3_BPL_NOINLINE_C2M.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO3_MPL_C2M.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO3_MPL_NOINLINE_C2M.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO3_NOINLINE.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO3_NOINLINE_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/CO3_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/COS.py (100%) rename testsuite/driver/src/{mode => }/.mode/COS_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/DEJAO0.py (100%) rename testsuite/driver/src/{mode => }/.mode/DEJAO0_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/DRIVER.py (100%) rename testsuite/driver/src/{mode => }/.mode/ENCO2_B_D.py (100%) rename testsuite/driver/src/{mode => }/.mode/ENCO2_B_D_A_C.py (100%) rename testsuite/driver/src/{mode => }/.mode/ENCO2_B_D_A_C_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/ENCO2_B_D_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/ENCO2_N_D.py (100%) rename testsuite/driver/src/{mode => }/.mode/ENCO2_N_D_ALL.py (100%) rename testsuite/driver/src/{mode => }/.mode/ENCO2_N_D_ALL_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/ENCO2_N_D_NO_LINK.py (100%) rename testsuite/driver/src/{mode => }/.mode/ENCO2_N_D_NO_LINK_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/ENCO2_N_D_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/ENCO2_S_D.py (100%) rename testsuite/driver/src/{mode => }/.mode/ENCO2_S_D_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/FORTIFY_O1.py (100%) rename testsuite/driver/src/{mode => }/.mode/FORTIFY_O1_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/FORTIFY_O2.py (100%) rename testsuite/driver/src/{mode => }/.mode/FORTIFY_O2_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/GC_O0.py (100%) rename testsuite/driver/src/{mode => }/.mode/GC_O2.py (100%) rename testsuite/driver/src/{mode => }/.mode/IR.py (100%) rename testsuite/driver/src/{mode => }/.mode/LTOASTO0.py (100%) rename testsuite/driver/src/{mode => }/.mode/LTO_ENC.py (100%) rename testsuite/driver/src/{mode => }/.mode/LTO_TEST.py (100%) rename testsuite/driver/src/{mode => }/.mode/LVMMBCO2.py (100%) rename testsuite/driver/src/{mode => }/.mode/LVMO0_DEBUG.py (100%) rename testsuite/driver/src/{mode => }/.mode/LVMO0_DEBUG_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/LVMO2.py (100%) rename testsuite/driver/src/{mode => }/.mode/LVMO2_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/LVMO2_SAFE.py (100%) rename testsuite/driver/src/{mode => }/.mode/LVMO2_SAFE_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/MPLIR.py (100%) rename testsuite/driver/src/{mode => }/.mode/NEONO0.py (100%) rename testsuite/driver/src/{mode => }/.mode/NEONO0_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/NEONO2.py (100%) rename testsuite/driver/src/{mode => }/.mode/NEONO2_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/O0.py (100%) rename testsuite/driver/src/{mode => }/.mode/O2.py (100%) rename testsuite/driver/src/{mode => }/.mode/OPTMBCO2.py (100%) rename testsuite/driver/src/{mode => }/.mode/OPTO2.py (100%) rename testsuite/driver/src/{mode => }/.mode/OPTO2_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/OPTO2_SAFE.py (100%) rename testsuite/driver/src/{mode => }/.mode/OPTO2_SAFE_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/SAFEO2_TEST.py (100%) rename testsuite/driver/src/{mode => }/.mode/SAFEO2_TRAIN.py (100%) rename testsuite/driver/src/{mode => }/.mode/SCMBCO2_TEST.py (100%) rename testsuite/driver/src/{mode => }/.mode/SCMBCO2_TRAIN.py (100%) rename testsuite/driver/src/{mode => }/.mode/SCO0_TEST.py (100%) rename testsuite/driver/src/{mode => }/.mode/SCO0_TEST_MERGE.py (100%) rename testsuite/driver/src/{mode => }/.mode/SCO0_TRAIN.py (100%) rename testsuite/driver/src/{mode => }/.mode/SCO0_TRAIN_MERGE.py (100%) rename testsuite/driver/src/{mode => }/.mode/SCO2_TEST.py (100%) rename testsuite/driver/src/{mode => }/.mode/SCO2_TEST_MERGE.py (100%) rename testsuite/driver/src/{mode => }/.mode/SCO2_TRAIN.py (100%) rename testsuite/driver/src/{mode => }/.mode/SCO2_TRAIN_MERGE.py (100%) rename testsuite/driver/src/{mode => }/.mode/SCOS_TRAIN.py (100%) rename testsuite/driver/src/{mode => }/.mode/SCOS_TRAIN_MERGE.py (100%) rename testsuite/driver/src/{mode => }/.mode/SP_ALL.py (100%) rename testsuite/driver/src/{mode => }/.mode/SP_ALL_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/SP_STRONG.py (100%) rename testsuite/driver/src/{mode => }/.mode/SP_STRONG_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/SUPMBCO2.py (100%) rename testsuite/driver/src/{mode => }/.mode/SUPO0.py (100%) rename testsuite/driver/src/{mode => }/.mode/SUPO0_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/SUPO2.py (100%) rename testsuite/driver/src/{mode => }/.mode/SUPO2_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/SUPO2_SAFE.py (100%) rename testsuite/driver/src/{mode => }/.mode/SUPO2_SAFE_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/TEST_O2.py (100%) rename testsuite/driver/src/{mode => }/.mode/TEST_OS.py (100%) rename testsuite/driver/src/{mode => }/.mode/TSVO2.py (100%) rename testsuite/driver/src/{mode => }/.mode/TSVO2_OLD.py (100%) rename testsuite/driver/src/{mode => }/.mode/X64_LITECG.py (100%) rename testsuite/driver/src/{mode => }/.mode/X64_LITECG_ME_O2.py (100%) rename testsuite/driver/src/{mode => }/.mode/X64_LITECG_MPL2MPL_O2.py (100%) rename testsuite/driver/src/{mode => }/.mode/X64_O0.py (100%) rename testsuite/driver/src/{mode => }/.mode/X64_O2.py (100%) rename testsuite/driver/src/{mode => }/.mode/__init__.py (100%) create mode 120000 testsuite/driver/src/api delete mode 100644 testsuite/driver/src/api/__init__.py delete mode 100644 testsuite/driver/src/api/benchmark_native.py delete mode 100644 testsuite/driver/src/api/benchmark_vogar.py delete mode 100644 testsuite/driver/src/api/check_file_equal.py delete mode 100644 testsuite/driver/src/api/check_reg_contain.py delete mode 100644 testsuite/driver/src/api/class2panda.py delete mode 100644 testsuite/driver/src/api/dex2mpl.py delete mode 100644 testsuite/driver/src/api/gendeps.py delete mode 100644 testsuite/driver/src/api/irbuild.py delete mode 100644 testsuite/driver/src/api/jar2dex.py delete mode 100644 testsuite/driver/src/api/jasm2jar.py delete mode 100644 testsuite/driver/src/api/java2dex.py delete mode 100644 testsuite/driver/src/api/jcod2jar.py delete mode 100644 testsuite/driver/src/api/linker.py delete mode 100644 testsuite/driver/src/api/maple.py delete mode 100644 testsuite/driver/src/api/mplme.py delete mode 100644 testsuite/driver/src/api/mplsh.py delete mode 100644 testsuite/driver/src/api/mplverf.py delete mode 100644 testsuite/driver/src/api/native_compile.py delete mode 100644 testsuite/driver/src/api/qemu_linker_arm32.py delete mode 100644 testsuite/driver/src/api/qemu_linker_arm64.py delete mode 100644 testsuite/driver/src/api/qemu_native_linker.py delete mode 100644 testsuite/driver/src/api/shell.py delete mode 100644 testsuite/driver/src/api/shell_operator.py delete mode 100644 testsuite/driver/src/api/smali2dex.py delete mode 100644 testsuite/driver/src/api/unzip.py create mode 120000 testsuite/driver/src/mode delete mode 100644 testsuite/driver/src/mode/AOT.py delete mode 100644 testsuite/driver/src/mode/ARM32O0HD.py delete mode 100644 testsuite/driver/src/mode/ARM32O0NATIVEHD.py delete mode 100644 testsuite/driver/src/mode/ARM32O0NATIVESFP.py delete mode 100644 testsuite/driver/src/mode/ARM32O0RCHD.py delete mode 100644 testsuite/driver/src/mode/ARM32O0RCSFP.py delete mode 100644 testsuite/driver/src/mode/ARM32O0SFP.py delete mode 100644 testsuite/driver/src/mode/ARM32O2HD.py delete mode 100644 testsuite/driver/src/mode/ARM32O2NATIVEHD.py delete mode 100644 testsuite/driver/src/mode/ARM32O2NATIVESFP.py delete mode 100644 testsuite/driver/src/mode/ARM32O2RCHD.py delete mode 100644 testsuite/driver/src/mode/ARM32O2RCSFP.py delete mode 100644 testsuite/driver/src/mode/ARM32O2SFP.py delete mode 100644 testsuite/driver/src/mode/ARM32ZTERPCLASSLOADERHD.py delete mode 100644 testsuite/driver/src/mode/ARM32ZTERPCLASSLOADERSFP.py delete mode 100644 testsuite/driver/src/mode/ARM32ZTERPDEXSOHD.py delete mode 100644 testsuite/driver/src/mode/ARM32ZTERPDEXSOSFP.py delete mode 100644 testsuite/driver/src/mode/ARM32ZTERPHD.py delete mode 100644 testsuite/driver/src/mode/ARM32ZTERPRCHD.py delete mode 100644 testsuite/driver/src/mode/ARM32ZTERPRCSFP.py delete mode 100644 testsuite/driver/src/mode/ARM32ZTERPSFP.py delete mode 100644 testsuite/driver/src/mode/COMPACT.py delete mode 100644 testsuite/driver/src/mode/CORT.py delete mode 100644 testsuite/driver/src/mode/DEOPT.py delete mode 100644 testsuite/driver/src/mode/DEPENDENCE.py delete mode 100644 testsuite/driver/src/mode/DEX.py delete mode 100644 testsuite/driver/src/mode/GCO0.py delete mode 100644 testsuite/driver/src/mode/GCO0NATIVE.py delete mode 100644 testsuite/driver/src/mode/GCO2.py delete mode 100644 testsuite/driver/src/mode/GCO2NATIVE.py delete mode 100644 testsuite/driver/src/mode/GCONLY.py delete mode 100644 testsuite/driver/src/mode/GC_IFILE.py delete mode 100644 testsuite/driver/src/mode/GC_IFILE_NATIVE.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_COMMON_RC_IFILE.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_COMMON_RC_IFILE_O0.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_CSTO0.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_CSTO2.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_DEXO0.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_DEXO0_NATIVE.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_DEXO2.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_DEXO2_JCK.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_DEXO2_JTREG.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_DEXO2_NATIVE.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_DEXO2_RC.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_DEXO2_RC_COMMON.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_DEXO2_RC_NATIVE.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_IFILE.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_IFILE_NATIVE.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_IFILE_O0.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_NATIVE_RC_IFILE.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_NATIVE_RC_IFILEEH.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_PANDAO0.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_PANDAO0_NATIVE.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_PANDAO2.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_PANDAO2_JCK.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_PANDAO2_JTREG.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_PANDAO2_NATIVE.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_RC_IFILE.py delete mode 100644 testsuite/driver/src/mode/HIR2MPL_RC_IFILE_O0.py delete mode 100644 testsuite/driver/src/mode/IFILE.py delete mode 100644 testsuite/driver/src/mode/IFILENATIVE.py delete mode 100644 testsuite/driver/src/mode/IFILENATIVEEH.py delete mode 100644 testsuite/driver/src/mode/IR.py delete mode 100644 testsuite/driver/src/mode/JASMJBC2MPL_LIBCORE.py delete mode 100644 testsuite/driver/src/mode/JASMO0.py delete mode 100644 testsuite/driver/src/mode/JASMO2.py delete mode 100644 testsuite/driver/src/mode/JASM_O0.py delete mode 100644 testsuite/driver/src/mode/JASM_O2.py delete mode 100644 testsuite/driver/src/mode/JBC2MPL_LIBCORE.py delete mode 100644 testsuite/driver/src/mode/JBC2MPL_LIBCORENATIVE.py delete mode 100644 testsuite/driver/src/mode/JBC2MPL_LIBCORERC.py delete mode 100644 testsuite/driver/src/mode/JBC_O0.py delete mode 100644 testsuite/driver/src/mode/JBC_O2.py delete mode 100644 testsuite/driver/src/mode/JCK_AOT.py delete mode 100644 testsuite/driver/src/mode/JCK_DEOPT.py delete mode 100644 testsuite/driver/src/mode/JCK_GCO2.py delete mode 100644 testsuite/driver/src/mode/JCK_GC_IFILE.py delete mode 100644 testsuite/driver/src/mode/JCK_HIR2MPL_IFILE.py delete mode 100644 testsuite/driver/src/mode/JCK_HIR2MPL_IFILE_O0.py delete mode 100644 testsuite/driver/src/mode/JCK_HIR2MPL_RC_IFILE.py delete mode 100644 testsuite/driver/src/mode/JCK_HIR2MPL_RC_IFILE_O0.py delete mode 100644 testsuite/driver/src/mode/JCK_IFILE.py delete mode 100644 testsuite/driver/src/mode/JCK_MOVO2.py delete mode 100644 testsuite/driver/src/mode/JCK_O2.py delete mode 100644 testsuite/driver/src/mode/JCK_TGCO2.py delete mode 100644 testsuite/driver/src/mode/JCK_ZTERP.py delete mode 100644 testsuite/driver/src/mode/JCOD_O0.py delete mode 100644 testsuite/driver/src/mode/JCOD_O2.py delete mode 100644 testsuite/driver/src/mode/JTREG_GCO2.py delete mode 100644 testsuite/driver/src/mode/JTREG_MOVO2.py delete mode 100644 testsuite/driver/src/mode/JTREG_O2.py delete mode 100644 testsuite/driver/src/mode/JTREG_TGCO2.py delete mode 100644 testsuite/driver/src/mode/JTREG_ZTERP.py delete mode 100644 testsuite/driver/src/mode/MAPLETI_ZTERP.py delete mode 100644 testsuite/driver/src/mode/MAPLETI_ZTERP_PANDA.py delete mode 100644 testsuite/driver/src/mode/MEMORY_CHECK.py delete mode 100644 testsuite/driver/src/mode/MOVO2.py delete mode 100644 testsuite/driver/src/mode/MOVO2NATIVE.py delete mode 100644 testsuite/driver/src/mode/O0.py delete mode 100644 testsuite/driver/src/mode/O0NATIVE.py delete mode 100644 testsuite/driver/src/mode/O0NATIVEEH.py delete mode 100644 testsuite/driver/src/mode/O0RC.py delete mode 100644 testsuite/driver/src/mode/O0SMALI.py delete mode 100644 testsuite/driver/src/mode/O2.py delete mode 100644 testsuite/driver/src/mode/O2NATIVE.py delete mode 100644 testsuite/driver/src/mode/O2NATIVEEH.py delete mode 100644 testsuite/driver/src/mode/O2RC.py delete mode 100644 testsuite/driver/src/mode/O2SMALI.py delete mode 100644 testsuite/driver/src/mode/O2STMTPRE.py delete mode 100644 testsuite/driver/src/mode/O2SUBSUMERC.py delete mode 100644 testsuite/driver/src/mode/OPSIR.py delete mode 100644 testsuite/driver/src/mode/OPS_NATIVE_O0.py delete mode 100644 testsuite/driver/src/mode/OPS_NATIVE_O2.py delete mode 100644 testsuite/driver/src/mode/OPS_O0.py delete mode 100644 testsuite/driver/src/mode/OPS_O2.py delete mode 100644 testsuite/driver/src/mode/PANDA_ZTERP.py delete mode 100644 testsuite/driver/src/mode/RC.py delete mode 100644 testsuite/driver/src/mode/REFINECATCH.py delete mode 100644 testsuite/driver/src/mode/SELF.py delete mode 100644 testsuite/driver/src/mode/STATICSTRING.py delete mode 100644 testsuite/driver/src/mode/STATICSTRINGWRONG.py delete mode 100644 testsuite/driver/src/mode/TGCO0.py delete mode 100644 testsuite/driver/src/mode/TGCO2.py delete mode 100644 testsuite/driver/src/mode/TIME.py delete mode 100644 testsuite/driver/src/mode/ZRT.py delete mode 100644 testsuite/driver/src/mode/ZRTNATIVE.py delete mode 100644 testsuite/driver/src/mode/ZRTNATIVEEH.py delete mode 100644 testsuite/driver/src/mode/ZRTRC.py delete mode 100644 testsuite/driver/src/mode/ZTERP.py delete mode 100644 testsuite/driver/src/mode/ZTERPCLASSLOADER.py delete mode 100644 testsuite/driver/src/mode/ZTERPDEXSO.py delete mode 100644 testsuite/driver/src/mode/ZTERPRC.py delete mode 100644 testsuite/driver/src/mode/__init__.py diff --git a/testsuite/driver/config/aarch64-clang-debug.conf b/testsuite/driver/.config/aarch64-clang-debug.conf similarity index 100% rename from testsuite/driver/config/aarch64-clang-debug.conf rename to testsuite/driver/.config/aarch64-clang-debug.conf diff --git a/testsuite/driver/config/aarch64-clang-release.conf b/testsuite/driver/.config/aarch64-clang-release.conf similarity index 100% rename from testsuite/driver/config/aarch64-clang-release.conf rename to testsuite/driver/.config/aarch64-clang-release.conf diff --git a/testsuite/driver/config/x86_64-clang-debug.conf b/testsuite/driver/.config/x86_64-clang-debug.conf similarity index 100% rename from testsuite/driver/config/x86_64-clang-debug.conf rename to testsuite/driver/.config/x86_64-clang-debug.conf diff --git a/testsuite/driver/config/x86_64-clang-release.conf b/testsuite/driver/.config/x86_64-clang-release.conf similarity index 100% rename from testsuite/driver/config/x86_64-clang-release.conf rename to testsuite/driver/.config/x86_64-clang-release.conf diff --git a/testsuite/driver/config b/testsuite/driver/config new file mode 120000 index 0000000000..2ec2572c7e --- /dev/null +++ b/testsuite/driver/config @@ -0,0 +1 @@ +.config \ No newline at end of file diff --git a/testsuite/driver/src/api/.api/__init__.py b/testsuite/driver/src/.api/__init__.py similarity index 100% rename from testsuite/driver/src/api/.api/__init__.py rename to testsuite/driver/src/.api/__init__.py diff --git a/testsuite/driver/src/api/.api/c2ast.py b/testsuite/driver/src/.api/c2ast.py similarity index 100% rename from testsuite/driver/src/api/.api/c2ast.py rename to testsuite/driver/src/.api/c2ast.py diff --git a/testsuite/driver/src/api/.api/c_linker.py b/testsuite/driver/src/.api/c_linker.py similarity index 100% rename from testsuite/driver/src/api/.api/c_linker.py rename to testsuite/driver/src/.api/c_linker.py diff --git a/testsuite/driver/src/api/.api/c_linker_all.py b/testsuite/driver/src/.api/c_linker_all.py similarity index 100% rename from testsuite/driver/src/api/.api/c_linker_all.py rename to testsuite/driver/src/.api/c_linker_all.py diff --git a/testsuite/driver/src/api/.api/check_file_equal.py b/testsuite/driver/src/.api/check_file_equal.py similarity index 100% rename from testsuite/driver/src/api/.api/check_file_equal.py rename to testsuite/driver/src/.api/check_file_equal.py diff --git a/testsuite/driver/src/api/.api/check_reg_contain.py b/testsuite/driver/src/.api/check_reg_contain.py similarity index 100% rename from testsuite/driver/src/api/.api/check_reg_contain.py rename to testsuite/driver/src/.api/check_reg_contain.py diff --git a/testsuite/driver/src/api/.api/clang_linker.py b/testsuite/driver/src/.api/clang_linker.py similarity index 100% rename from testsuite/driver/src/api/.api/clang_linker.py rename to testsuite/driver/src/.api/clang_linker.py diff --git a/testsuite/driver/src/api/.api/driver.py b/testsuite/driver/src/.api/driver.py similarity index 100% rename from testsuite/driver/src/api/.api/driver.py rename to testsuite/driver/src/.api/driver.py diff --git a/testsuite/driver/src/api/.api/gen_bin.py b/testsuite/driver/src/.api/gen_bin.py similarity index 100% rename from testsuite/driver/src/api/.api/gen_bin.py rename to testsuite/driver/src/.api/gen_bin.py diff --git a/testsuite/driver/src/api/.api/hir2mpl.py b/testsuite/driver/src/.api/hir2mpl.py similarity index 100% rename from testsuite/driver/src/api/.api/hir2mpl.py rename to testsuite/driver/src/.api/hir2mpl.py diff --git a/testsuite/driver/src/api/.api/irbuild.py b/testsuite/driver/src/.api/irbuild.py similarity index 100% rename from testsuite/driver/src/api/.api/irbuild.py rename to testsuite/driver/src/.api/irbuild.py diff --git a/testsuite/driver/src/api/.api/java2dex.py b/testsuite/driver/src/.api/java2dex.py similarity index 100% rename from testsuite/driver/src/api/.api/java2dex.py rename to testsuite/driver/src/.api/java2dex.py diff --git a/testsuite/driver/src/api/.api/linker.py b/testsuite/driver/src/.api/linker.py similarity index 100% rename from testsuite/driver/src/api/.api/linker.py rename to testsuite/driver/src/.api/linker.py diff --git a/testsuite/driver/src/api/.api/maple.py b/testsuite/driver/src/.api/maple.py similarity index 100% rename from testsuite/driver/src/api/.api/maple.py rename to testsuite/driver/src/.api/maple.py diff --git a/testsuite/driver/src/api/.api/maple_cg.py b/testsuite/driver/src/.api/maple_cg.py similarity index 100% rename from testsuite/driver/src/api/.api/maple_cg.py rename to testsuite/driver/src/.api/maple_cg.py diff --git a/testsuite/driver/src/api/.api/maple_driver.py b/testsuite/driver/src/.api/maple_driver.py similarity index 100% rename from testsuite/driver/src/api/.api/maple_driver.py rename to testsuite/driver/src/.api/maple_driver.py diff --git a/testsuite/driver/src/api/.api/mplsh.py b/testsuite/driver/src/.api/mplsh.py similarity index 100% rename from testsuite/driver/src/api/.api/mplsh.py rename to testsuite/driver/src/.api/mplsh.py diff --git a/testsuite/driver/src/api/.api/qemu.py b/testsuite/driver/src/.api/qemu.py similarity index 100% rename from testsuite/driver/src/api/.api/qemu.py rename to testsuite/driver/src/.api/qemu.py diff --git a/testsuite/driver/src/api/.api/shell.py b/testsuite/driver/src/.api/shell.py similarity index 100% rename from testsuite/driver/src/api/.api/shell.py rename to testsuite/driver/src/.api/shell.py diff --git a/testsuite/driver/src/api/.api/shell_operator.py b/testsuite/driver/src/.api/shell_operator.py similarity index 100% rename from testsuite/driver/src/api/.api/shell_operator.py rename to testsuite/driver/src/.api/shell_operator.py diff --git a/testsuite/driver/src/api/.api/simple_maple.py b/testsuite/driver/src/.api/simple_maple.py similarity index 100% rename from testsuite/driver/src/api/.api/simple_maple.py rename to testsuite/driver/src/.api/simple_maple.py diff --git a/testsuite/driver/src/mode/.mode/AAPCS64_O0.py b/testsuite/driver/src/.mode/AAPCS64_O0.py similarity index 100% rename from testsuite/driver/src/mode/.mode/AAPCS64_O0.py rename to testsuite/driver/src/.mode/AAPCS64_O0.py diff --git a/testsuite/driver/src/mode/.mode/AAPCS64_O2.py b/testsuite/driver/src/.mode/AAPCS64_O2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/AAPCS64_O2.py rename to testsuite/driver/src/.mode/AAPCS64_O2.py diff --git a/testsuite/driver/src/mode/.mode/ASAN_O0.py b/testsuite/driver/src/.mode/ASAN_O0.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ASAN_O0.py rename to testsuite/driver/src/.mode/ASAN_O0.py diff --git a/testsuite/driver/src/mode/.mode/AST2MPL.py b/testsuite/driver/src/.mode/AST2MPL.py similarity index 100% rename from testsuite/driver/src/mode/.mode/AST2MPL.py rename to testsuite/driver/src/.mode/AST2MPL.py diff --git a/testsuite/driver/src/mode/.mode/ASTMBC.py b/testsuite/driver/src/.mode/ASTMBC.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ASTMBC.py rename to testsuite/driver/src/.mode/ASTMBC.py diff --git a/testsuite/driver/src/mode/.mode/ASTO0.py b/testsuite/driver/src/.mode/ASTO0.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ASTO0.py rename to testsuite/driver/src/.mode/ASTO0.py diff --git a/testsuite/driver/src/mode/.mode/ASTO0_OLD.py b/testsuite/driver/src/.mode/ASTO0_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ASTO0_OLD.py rename to testsuite/driver/src/.mode/ASTO0_OLD.py diff --git a/testsuite/driver/src/mode/.mode/ASTO2.py b/testsuite/driver/src/.mode/ASTO2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ASTO2.py rename to testsuite/driver/src/.mode/ASTO2.py diff --git a/testsuite/driver/src/mode/.mode/ASTO2_OLD.py b/testsuite/driver/src/.mode/ASTO2_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ASTO2_OLD.py rename to testsuite/driver/src/.mode/ASTO2_OLD.py diff --git a/testsuite/driver/src/mode/.mode/CMBCO2.py b/testsuite/driver/src/.mode/CMBCO2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CMBCO2.py rename to testsuite/driver/src/.mode/CMBCO2.py diff --git a/testsuite/driver/src/mode/.mode/CO0.py b/testsuite/driver/src/.mode/CO0.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO0.py rename to testsuite/driver/src/.mode/CO0.py diff --git a/testsuite/driver/src/mode/.mode/CO0_MPL_C2M.py b/testsuite/driver/src/.mode/CO0_MPL_C2M.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO0_MPL_C2M.py rename to testsuite/driver/src/.mode/CO0_MPL_C2M.py diff --git a/testsuite/driver/src/mode/.mode/CO0_OLD.py b/testsuite/driver/src/.mode/CO0_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO0_OLD.py rename to testsuite/driver/src/.mode/CO0_OLD.py diff --git a/testsuite/driver/src/mode/.mode/CO0_PIE.py b/testsuite/driver/src/.mode/CO0_PIE.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO0_PIE.py rename to testsuite/driver/src/.mode/CO0_PIE.py diff --git a/testsuite/driver/src/mode/.mode/CO0_SHARED.py b/testsuite/driver/src/.mode/CO0_SHARED.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO0_SHARED.py rename to testsuite/driver/src/.mode/CO0_SHARED.py diff --git a/testsuite/driver/src/mode/.mode/CO0_SHARED_OLD.py b/testsuite/driver/src/.mode/CO0_SHARED_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO0_SHARED_OLD.py rename to testsuite/driver/src/.mode/CO0_SHARED_OLD.py diff --git a/testsuite/driver/src/mode/.mode/CO2.py b/testsuite/driver/src/.mode/CO2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO2.py rename to testsuite/driver/src/.mode/CO2.py diff --git a/testsuite/driver/src/mode/.mode/CO2_BPL_C2M.py b/testsuite/driver/src/.mode/CO2_BPL_C2M.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO2_BPL_C2M.py rename to testsuite/driver/src/.mode/CO2_BPL_C2M.py diff --git a/testsuite/driver/src/mode/.mode/CO2_MPL_C2M.py b/testsuite/driver/src/.mode/CO2_MPL_C2M.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO2_MPL_C2M.py rename to testsuite/driver/src/.mode/CO2_MPL_C2M.py diff --git a/testsuite/driver/src/mode/.mode/CO2_MPL_NOINLINE_C2M.py b/testsuite/driver/src/.mode/CO2_MPL_NOINLINE_C2M.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO2_MPL_NOINLINE_C2M.py rename to testsuite/driver/src/.mode/CO2_MPL_NOINLINE_C2M.py diff --git a/testsuite/driver/src/mode/.mode/CO2_MUXED.py b/testsuite/driver/src/.mode/CO2_MUXED.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO2_MUXED.py rename to testsuite/driver/src/.mode/CO2_MUXED.py diff --git a/testsuite/driver/src/mode/.mode/CO2_OLD.py b/testsuite/driver/src/.mode/CO2_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO2_OLD.py rename to testsuite/driver/src/.mode/CO2_OLD.py diff --git a/testsuite/driver/src/mode/.mode/CO2_PIE.py b/testsuite/driver/src/.mode/CO2_PIE.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO2_PIE.py rename to testsuite/driver/src/.mode/CO2_PIE.py diff --git a/testsuite/driver/src/mode/.mode/CO2_SHARED.py b/testsuite/driver/src/.mode/CO2_SHARED.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO2_SHARED.py rename to testsuite/driver/src/.mode/CO2_SHARED.py diff --git a/testsuite/driver/src/mode/.mode/CO2_SHARED_OLD.py b/testsuite/driver/src/.mode/CO2_SHARED_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO2_SHARED_OLD.py rename to testsuite/driver/src/.mode/CO2_SHARED_OLD.py diff --git a/testsuite/driver/src/mode/.mode/CO3.py b/testsuite/driver/src/.mode/CO3.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO3.py rename to testsuite/driver/src/.mode/CO3.py diff --git a/testsuite/driver/src/mode/.mode/CO3_BPL_C2M.py b/testsuite/driver/src/.mode/CO3_BPL_C2M.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO3_BPL_C2M.py rename to testsuite/driver/src/.mode/CO3_BPL_C2M.py diff --git a/testsuite/driver/src/mode/.mode/CO3_BPL_NOINLINE_C2M.py b/testsuite/driver/src/.mode/CO3_BPL_NOINLINE_C2M.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO3_BPL_NOINLINE_C2M.py rename to testsuite/driver/src/.mode/CO3_BPL_NOINLINE_C2M.py diff --git a/testsuite/driver/src/mode/.mode/CO3_MPL_C2M.py b/testsuite/driver/src/.mode/CO3_MPL_C2M.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO3_MPL_C2M.py rename to testsuite/driver/src/.mode/CO3_MPL_C2M.py diff --git a/testsuite/driver/src/mode/.mode/CO3_MPL_NOINLINE_C2M.py b/testsuite/driver/src/.mode/CO3_MPL_NOINLINE_C2M.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO3_MPL_NOINLINE_C2M.py rename to testsuite/driver/src/.mode/CO3_MPL_NOINLINE_C2M.py diff --git a/testsuite/driver/src/mode/.mode/CO3_NOINLINE.py b/testsuite/driver/src/.mode/CO3_NOINLINE.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO3_NOINLINE.py rename to testsuite/driver/src/.mode/CO3_NOINLINE.py diff --git a/testsuite/driver/src/mode/.mode/CO3_NOINLINE_OLD.py b/testsuite/driver/src/.mode/CO3_NOINLINE_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO3_NOINLINE_OLD.py rename to testsuite/driver/src/.mode/CO3_NOINLINE_OLD.py diff --git a/testsuite/driver/src/mode/.mode/CO3_OLD.py b/testsuite/driver/src/.mode/CO3_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/CO3_OLD.py rename to testsuite/driver/src/.mode/CO3_OLD.py diff --git a/testsuite/driver/src/mode/.mode/COS.py b/testsuite/driver/src/.mode/COS.py similarity index 100% rename from testsuite/driver/src/mode/.mode/COS.py rename to testsuite/driver/src/.mode/COS.py diff --git a/testsuite/driver/src/mode/.mode/COS_OLD.py b/testsuite/driver/src/.mode/COS_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/COS_OLD.py rename to testsuite/driver/src/.mode/COS_OLD.py diff --git a/testsuite/driver/src/mode/.mode/DEJAO0.py b/testsuite/driver/src/.mode/DEJAO0.py similarity index 100% rename from testsuite/driver/src/mode/.mode/DEJAO0.py rename to testsuite/driver/src/.mode/DEJAO0.py diff --git a/testsuite/driver/src/mode/.mode/DEJAO0_OLD.py b/testsuite/driver/src/.mode/DEJAO0_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/DEJAO0_OLD.py rename to testsuite/driver/src/.mode/DEJAO0_OLD.py diff --git a/testsuite/driver/src/mode/.mode/DRIVER.py b/testsuite/driver/src/.mode/DRIVER.py similarity index 100% rename from testsuite/driver/src/mode/.mode/DRIVER.py rename to testsuite/driver/src/.mode/DRIVER.py diff --git a/testsuite/driver/src/mode/.mode/ENCO2_B_D.py b/testsuite/driver/src/.mode/ENCO2_B_D.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ENCO2_B_D.py rename to testsuite/driver/src/.mode/ENCO2_B_D.py diff --git a/testsuite/driver/src/mode/.mode/ENCO2_B_D_A_C.py b/testsuite/driver/src/.mode/ENCO2_B_D_A_C.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ENCO2_B_D_A_C.py rename to testsuite/driver/src/.mode/ENCO2_B_D_A_C.py diff --git a/testsuite/driver/src/mode/.mode/ENCO2_B_D_A_C_OLD.py b/testsuite/driver/src/.mode/ENCO2_B_D_A_C_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ENCO2_B_D_A_C_OLD.py rename to testsuite/driver/src/.mode/ENCO2_B_D_A_C_OLD.py diff --git a/testsuite/driver/src/mode/.mode/ENCO2_B_D_OLD.py b/testsuite/driver/src/.mode/ENCO2_B_D_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ENCO2_B_D_OLD.py rename to testsuite/driver/src/.mode/ENCO2_B_D_OLD.py diff --git a/testsuite/driver/src/mode/.mode/ENCO2_N_D.py b/testsuite/driver/src/.mode/ENCO2_N_D.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ENCO2_N_D.py rename to testsuite/driver/src/.mode/ENCO2_N_D.py diff --git a/testsuite/driver/src/mode/.mode/ENCO2_N_D_ALL.py b/testsuite/driver/src/.mode/ENCO2_N_D_ALL.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ENCO2_N_D_ALL.py rename to testsuite/driver/src/.mode/ENCO2_N_D_ALL.py diff --git a/testsuite/driver/src/mode/.mode/ENCO2_N_D_ALL_OLD.py b/testsuite/driver/src/.mode/ENCO2_N_D_ALL_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ENCO2_N_D_ALL_OLD.py rename to testsuite/driver/src/.mode/ENCO2_N_D_ALL_OLD.py diff --git a/testsuite/driver/src/mode/.mode/ENCO2_N_D_NO_LINK.py b/testsuite/driver/src/.mode/ENCO2_N_D_NO_LINK.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ENCO2_N_D_NO_LINK.py rename to testsuite/driver/src/.mode/ENCO2_N_D_NO_LINK.py diff --git a/testsuite/driver/src/mode/.mode/ENCO2_N_D_NO_LINK_OLD.py b/testsuite/driver/src/.mode/ENCO2_N_D_NO_LINK_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ENCO2_N_D_NO_LINK_OLD.py rename to testsuite/driver/src/.mode/ENCO2_N_D_NO_LINK_OLD.py diff --git a/testsuite/driver/src/mode/.mode/ENCO2_N_D_OLD.py b/testsuite/driver/src/.mode/ENCO2_N_D_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ENCO2_N_D_OLD.py rename to testsuite/driver/src/.mode/ENCO2_N_D_OLD.py diff --git a/testsuite/driver/src/mode/.mode/ENCO2_S_D.py b/testsuite/driver/src/.mode/ENCO2_S_D.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ENCO2_S_D.py rename to testsuite/driver/src/.mode/ENCO2_S_D.py diff --git a/testsuite/driver/src/mode/.mode/ENCO2_S_D_OLD.py b/testsuite/driver/src/.mode/ENCO2_S_D_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/ENCO2_S_D_OLD.py rename to testsuite/driver/src/.mode/ENCO2_S_D_OLD.py diff --git a/testsuite/driver/src/mode/.mode/FORTIFY_O1.py b/testsuite/driver/src/.mode/FORTIFY_O1.py similarity index 100% rename from testsuite/driver/src/mode/.mode/FORTIFY_O1.py rename to testsuite/driver/src/.mode/FORTIFY_O1.py diff --git a/testsuite/driver/src/mode/.mode/FORTIFY_O1_OLD.py b/testsuite/driver/src/.mode/FORTIFY_O1_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/FORTIFY_O1_OLD.py rename to testsuite/driver/src/.mode/FORTIFY_O1_OLD.py diff --git a/testsuite/driver/src/mode/.mode/FORTIFY_O2.py b/testsuite/driver/src/.mode/FORTIFY_O2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/FORTIFY_O2.py rename to testsuite/driver/src/.mode/FORTIFY_O2.py diff --git a/testsuite/driver/src/mode/.mode/FORTIFY_O2_OLD.py b/testsuite/driver/src/.mode/FORTIFY_O2_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/FORTIFY_O2_OLD.py rename to testsuite/driver/src/.mode/FORTIFY_O2_OLD.py diff --git a/testsuite/driver/src/mode/.mode/GC_O0.py b/testsuite/driver/src/.mode/GC_O0.py similarity index 100% rename from testsuite/driver/src/mode/.mode/GC_O0.py rename to testsuite/driver/src/.mode/GC_O0.py diff --git a/testsuite/driver/src/mode/.mode/GC_O2.py b/testsuite/driver/src/.mode/GC_O2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/GC_O2.py rename to testsuite/driver/src/.mode/GC_O2.py diff --git a/testsuite/driver/src/mode/.mode/IR.py b/testsuite/driver/src/.mode/IR.py similarity index 100% rename from testsuite/driver/src/mode/.mode/IR.py rename to testsuite/driver/src/.mode/IR.py diff --git a/testsuite/driver/src/mode/.mode/LTOASTO0.py b/testsuite/driver/src/.mode/LTOASTO0.py similarity index 100% rename from testsuite/driver/src/mode/.mode/LTOASTO0.py rename to testsuite/driver/src/.mode/LTOASTO0.py diff --git a/testsuite/driver/src/mode/.mode/LTO_ENC.py b/testsuite/driver/src/.mode/LTO_ENC.py similarity index 100% rename from testsuite/driver/src/mode/.mode/LTO_ENC.py rename to testsuite/driver/src/.mode/LTO_ENC.py diff --git a/testsuite/driver/src/mode/.mode/LTO_TEST.py b/testsuite/driver/src/.mode/LTO_TEST.py similarity index 100% rename from testsuite/driver/src/mode/.mode/LTO_TEST.py rename to testsuite/driver/src/.mode/LTO_TEST.py diff --git a/testsuite/driver/src/mode/.mode/LVMMBCO2.py b/testsuite/driver/src/.mode/LVMMBCO2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/LVMMBCO2.py rename to testsuite/driver/src/.mode/LVMMBCO2.py diff --git a/testsuite/driver/src/mode/.mode/LVMO0_DEBUG.py b/testsuite/driver/src/.mode/LVMO0_DEBUG.py similarity index 100% rename from testsuite/driver/src/mode/.mode/LVMO0_DEBUG.py rename to testsuite/driver/src/.mode/LVMO0_DEBUG.py diff --git a/testsuite/driver/src/mode/.mode/LVMO0_DEBUG_OLD.py b/testsuite/driver/src/.mode/LVMO0_DEBUG_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/LVMO0_DEBUG_OLD.py rename to testsuite/driver/src/.mode/LVMO0_DEBUG_OLD.py diff --git a/testsuite/driver/src/mode/.mode/LVMO2.py b/testsuite/driver/src/.mode/LVMO2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/LVMO2.py rename to testsuite/driver/src/.mode/LVMO2.py diff --git a/testsuite/driver/src/mode/.mode/LVMO2_OLD.py b/testsuite/driver/src/.mode/LVMO2_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/LVMO2_OLD.py rename to testsuite/driver/src/.mode/LVMO2_OLD.py diff --git a/testsuite/driver/src/mode/.mode/LVMO2_SAFE.py b/testsuite/driver/src/.mode/LVMO2_SAFE.py similarity index 100% rename from testsuite/driver/src/mode/.mode/LVMO2_SAFE.py rename to testsuite/driver/src/.mode/LVMO2_SAFE.py diff --git a/testsuite/driver/src/mode/.mode/LVMO2_SAFE_OLD.py b/testsuite/driver/src/.mode/LVMO2_SAFE_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/LVMO2_SAFE_OLD.py rename to testsuite/driver/src/.mode/LVMO2_SAFE_OLD.py diff --git a/testsuite/driver/src/mode/.mode/MPLIR.py b/testsuite/driver/src/.mode/MPLIR.py similarity index 100% rename from testsuite/driver/src/mode/.mode/MPLIR.py rename to testsuite/driver/src/.mode/MPLIR.py diff --git a/testsuite/driver/src/mode/.mode/NEONO0.py b/testsuite/driver/src/.mode/NEONO0.py similarity index 100% rename from testsuite/driver/src/mode/.mode/NEONO0.py rename to testsuite/driver/src/.mode/NEONO0.py diff --git a/testsuite/driver/src/mode/.mode/NEONO0_OLD.py b/testsuite/driver/src/.mode/NEONO0_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/NEONO0_OLD.py rename to testsuite/driver/src/.mode/NEONO0_OLD.py diff --git a/testsuite/driver/src/mode/.mode/NEONO2.py b/testsuite/driver/src/.mode/NEONO2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/NEONO2.py rename to testsuite/driver/src/.mode/NEONO2.py diff --git a/testsuite/driver/src/mode/.mode/NEONO2_OLD.py b/testsuite/driver/src/.mode/NEONO2_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/NEONO2_OLD.py rename to testsuite/driver/src/.mode/NEONO2_OLD.py diff --git a/testsuite/driver/src/mode/.mode/O0.py b/testsuite/driver/src/.mode/O0.py similarity index 100% rename from testsuite/driver/src/mode/.mode/O0.py rename to testsuite/driver/src/.mode/O0.py diff --git a/testsuite/driver/src/mode/.mode/O2.py b/testsuite/driver/src/.mode/O2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/O2.py rename to testsuite/driver/src/.mode/O2.py diff --git a/testsuite/driver/src/mode/.mode/OPTMBCO2.py b/testsuite/driver/src/.mode/OPTMBCO2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/OPTMBCO2.py rename to testsuite/driver/src/.mode/OPTMBCO2.py diff --git a/testsuite/driver/src/mode/.mode/OPTO2.py b/testsuite/driver/src/.mode/OPTO2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/OPTO2.py rename to testsuite/driver/src/.mode/OPTO2.py diff --git a/testsuite/driver/src/mode/.mode/OPTO2_OLD.py b/testsuite/driver/src/.mode/OPTO2_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/OPTO2_OLD.py rename to testsuite/driver/src/.mode/OPTO2_OLD.py diff --git a/testsuite/driver/src/mode/.mode/OPTO2_SAFE.py b/testsuite/driver/src/.mode/OPTO2_SAFE.py similarity index 100% rename from testsuite/driver/src/mode/.mode/OPTO2_SAFE.py rename to testsuite/driver/src/.mode/OPTO2_SAFE.py diff --git a/testsuite/driver/src/mode/.mode/OPTO2_SAFE_OLD.py b/testsuite/driver/src/.mode/OPTO2_SAFE_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/OPTO2_SAFE_OLD.py rename to testsuite/driver/src/.mode/OPTO2_SAFE_OLD.py diff --git a/testsuite/driver/src/mode/.mode/SAFEO2_TEST.py b/testsuite/driver/src/.mode/SAFEO2_TEST.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SAFEO2_TEST.py rename to testsuite/driver/src/.mode/SAFEO2_TEST.py diff --git a/testsuite/driver/src/mode/.mode/SAFEO2_TRAIN.py b/testsuite/driver/src/.mode/SAFEO2_TRAIN.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SAFEO2_TRAIN.py rename to testsuite/driver/src/.mode/SAFEO2_TRAIN.py diff --git a/testsuite/driver/src/mode/.mode/SCMBCO2_TEST.py b/testsuite/driver/src/.mode/SCMBCO2_TEST.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SCMBCO2_TEST.py rename to testsuite/driver/src/.mode/SCMBCO2_TEST.py diff --git a/testsuite/driver/src/mode/.mode/SCMBCO2_TRAIN.py b/testsuite/driver/src/.mode/SCMBCO2_TRAIN.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SCMBCO2_TRAIN.py rename to testsuite/driver/src/.mode/SCMBCO2_TRAIN.py diff --git a/testsuite/driver/src/mode/.mode/SCO0_TEST.py b/testsuite/driver/src/.mode/SCO0_TEST.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SCO0_TEST.py rename to testsuite/driver/src/.mode/SCO0_TEST.py diff --git a/testsuite/driver/src/mode/.mode/SCO0_TEST_MERGE.py b/testsuite/driver/src/.mode/SCO0_TEST_MERGE.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SCO0_TEST_MERGE.py rename to testsuite/driver/src/.mode/SCO0_TEST_MERGE.py diff --git a/testsuite/driver/src/mode/.mode/SCO0_TRAIN.py b/testsuite/driver/src/.mode/SCO0_TRAIN.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SCO0_TRAIN.py rename to testsuite/driver/src/.mode/SCO0_TRAIN.py diff --git a/testsuite/driver/src/mode/.mode/SCO0_TRAIN_MERGE.py b/testsuite/driver/src/.mode/SCO0_TRAIN_MERGE.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SCO0_TRAIN_MERGE.py rename to testsuite/driver/src/.mode/SCO0_TRAIN_MERGE.py diff --git a/testsuite/driver/src/mode/.mode/SCO2_TEST.py b/testsuite/driver/src/.mode/SCO2_TEST.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SCO2_TEST.py rename to testsuite/driver/src/.mode/SCO2_TEST.py diff --git a/testsuite/driver/src/mode/.mode/SCO2_TEST_MERGE.py b/testsuite/driver/src/.mode/SCO2_TEST_MERGE.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SCO2_TEST_MERGE.py rename to testsuite/driver/src/.mode/SCO2_TEST_MERGE.py diff --git a/testsuite/driver/src/mode/.mode/SCO2_TRAIN.py b/testsuite/driver/src/.mode/SCO2_TRAIN.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SCO2_TRAIN.py rename to testsuite/driver/src/.mode/SCO2_TRAIN.py diff --git a/testsuite/driver/src/mode/.mode/SCO2_TRAIN_MERGE.py b/testsuite/driver/src/.mode/SCO2_TRAIN_MERGE.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SCO2_TRAIN_MERGE.py rename to testsuite/driver/src/.mode/SCO2_TRAIN_MERGE.py diff --git a/testsuite/driver/src/mode/.mode/SCOS_TRAIN.py b/testsuite/driver/src/.mode/SCOS_TRAIN.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SCOS_TRAIN.py rename to testsuite/driver/src/.mode/SCOS_TRAIN.py diff --git a/testsuite/driver/src/mode/.mode/SCOS_TRAIN_MERGE.py b/testsuite/driver/src/.mode/SCOS_TRAIN_MERGE.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SCOS_TRAIN_MERGE.py rename to testsuite/driver/src/.mode/SCOS_TRAIN_MERGE.py diff --git a/testsuite/driver/src/mode/.mode/SP_ALL.py b/testsuite/driver/src/.mode/SP_ALL.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SP_ALL.py rename to testsuite/driver/src/.mode/SP_ALL.py diff --git a/testsuite/driver/src/mode/.mode/SP_ALL_OLD.py b/testsuite/driver/src/.mode/SP_ALL_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SP_ALL_OLD.py rename to testsuite/driver/src/.mode/SP_ALL_OLD.py diff --git a/testsuite/driver/src/mode/.mode/SP_STRONG.py b/testsuite/driver/src/.mode/SP_STRONG.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SP_STRONG.py rename to testsuite/driver/src/.mode/SP_STRONG.py diff --git a/testsuite/driver/src/mode/.mode/SP_STRONG_OLD.py b/testsuite/driver/src/.mode/SP_STRONG_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SP_STRONG_OLD.py rename to testsuite/driver/src/.mode/SP_STRONG_OLD.py diff --git a/testsuite/driver/src/mode/.mode/SUPMBCO2.py b/testsuite/driver/src/.mode/SUPMBCO2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SUPMBCO2.py rename to testsuite/driver/src/.mode/SUPMBCO2.py diff --git a/testsuite/driver/src/mode/.mode/SUPO0.py b/testsuite/driver/src/.mode/SUPO0.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SUPO0.py rename to testsuite/driver/src/.mode/SUPO0.py diff --git a/testsuite/driver/src/mode/.mode/SUPO0_OLD.py b/testsuite/driver/src/.mode/SUPO0_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SUPO0_OLD.py rename to testsuite/driver/src/.mode/SUPO0_OLD.py diff --git a/testsuite/driver/src/mode/.mode/SUPO2.py b/testsuite/driver/src/.mode/SUPO2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SUPO2.py rename to testsuite/driver/src/.mode/SUPO2.py diff --git a/testsuite/driver/src/mode/.mode/SUPO2_OLD.py b/testsuite/driver/src/.mode/SUPO2_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SUPO2_OLD.py rename to testsuite/driver/src/.mode/SUPO2_OLD.py diff --git a/testsuite/driver/src/mode/.mode/SUPO2_SAFE.py b/testsuite/driver/src/.mode/SUPO2_SAFE.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SUPO2_SAFE.py rename to testsuite/driver/src/.mode/SUPO2_SAFE.py diff --git a/testsuite/driver/src/mode/.mode/SUPO2_SAFE_OLD.py b/testsuite/driver/src/.mode/SUPO2_SAFE_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/SUPO2_SAFE_OLD.py rename to testsuite/driver/src/.mode/SUPO2_SAFE_OLD.py diff --git a/testsuite/driver/src/mode/.mode/TEST_O2.py b/testsuite/driver/src/.mode/TEST_O2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/TEST_O2.py rename to testsuite/driver/src/.mode/TEST_O2.py diff --git a/testsuite/driver/src/mode/.mode/TEST_OS.py b/testsuite/driver/src/.mode/TEST_OS.py similarity index 100% rename from testsuite/driver/src/mode/.mode/TEST_OS.py rename to testsuite/driver/src/.mode/TEST_OS.py diff --git a/testsuite/driver/src/mode/.mode/TSVO2.py b/testsuite/driver/src/.mode/TSVO2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/TSVO2.py rename to testsuite/driver/src/.mode/TSVO2.py diff --git a/testsuite/driver/src/mode/.mode/TSVO2_OLD.py b/testsuite/driver/src/.mode/TSVO2_OLD.py similarity index 100% rename from testsuite/driver/src/mode/.mode/TSVO2_OLD.py rename to testsuite/driver/src/.mode/TSVO2_OLD.py diff --git a/testsuite/driver/src/mode/.mode/X64_LITECG.py b/testsuite/driver/src/.mode/X64_LITECG.py similarity index 100% rename from testsuite/driver/src/mode/.mode/X64_LITECG.py rename to testsuite/driver/src/.mode/X64_LITECG.py diff --git a/testsuite/driver/src/mode/.mode/X64_LITECG_ME_O2.py b/testsuite/driver/src/.mode/X64_LITECG_ME_O2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/X64_LITECG_ME_O2.py rename to testsuite/driver/src/.mode/X64_LITECG_ME_O2.py diff --git a/testsuite/driver/src/mode/.mode/X64_LITECG_MPL2MPL_O2.py b/testsuite/driver/src/.mode/X64_LITECG_MPL2MPL_O2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/X64_LITECG_MPL2MPL_O2.py rename to testsuite/driver/src/.mode/X64_LITECG_MPL2MPL_O2.py diff --git a/testsuite/driver/src/mode/.mode/X64_O0.py b/testsuite/driver/src/.mode/X64_O0.py similarity index 100% rename from testsuite/driver/src/mode/.mode/X64_O0.py rename to testsuite/driver/src/.mode/X64_O0.py diff --git a/testsuite/driver/src/mode/.mode/X64_O2.py b/testsuite/driver/src/.mode/X64_O2.py similarity index 100% rename from testsuite/driver/src/mode/.mode/X64_O2.py rename to testsuite/driver/src/.mode/X64_O2.py diff --git a/testsuite/driver/src/mode/.mode/__init__.py b/testsuite/driver/src/.mode/__init__.py similarity index 100% rename from testsuite/driver/src/mode/.mode/__init__.py rename to testsuite/driver/src/.mode/__init__.py diff --git a/testsuite/driver/src/api b/testsuite/driver/src/api new file mode 120000 index 0000000000..0e2167fe5a --- /dev/null +++ b/testsuite/driver/src/api @@ -0,0 +1 @@ +.api \ No newline at end of file diff --git a/testsuite/driver/src/api/__init__.py b/testsuite/driver/src/api/__init__.py deleted file mode 100644 index 3a055c3126..0000000000 --- a/testsuite/driver/src/api/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -import os - -names = locals() - -my_dir = os.path.dirname(__file__) -for py in os.listdir(my_dir): - if py == '__init__.py': - continue - - if py.endswith('.py'): - name = py[:-3] - - clsn = name.capitalize() - while clsn.find('_') > 0: - h = clsn.index('_') - clsn = clsn[0:h] + clsn[h + 1:].capitalize() - api = __import__("api." + name, fromlist=[clsn]) - names[clsn] = getattr(api, clsn) diff --git a/testsuite/driver/src/api/benchmark_native.py b/testsuite/driver/src/api/benchmark_native.py deleted file mode 100644 index c2c970cd97..0000000000 --- a/testsuite/driver/src/api/benchmark_native.py +++ /dev/null @@ -1,34 +0,0 @@ -import os -import re -from api.shell_operator import ShellOperator - - -class BenchmarkNative(ShellOperator): - - def __init__(self, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.command = "" - self.native_lib_name = "" - self.native_src = "" - self.native_include = "-I${MAPLE_ROOT}/../libnativehelper/include_jni" - self.native_linker = "" - - def get_command(self, variables): - if "NATIVE_LIB_NAME" in variables: - self.native_lib_name = variables["NATIVE_LIB_NAME"] - if "NATIVE_SRC" in variables: - srcs = variables["NATIVE_SRC"].split(":") - for src in srcs: - self.native_src += " " + src - if "NATIVE_INCLUDE" in variables: - includes = variables["NATIVE_INCLUDE"].split(":") - for include in includes: - if include != "": - self.native_include += " -I${MAPLE_ROOT}/../" + include - if "NATIVE_LINKE" in variables: - links = variables["NATIVE_LINKE"].split(":") - for link in links: - if link != "": - self.native_linker += " ${MAPLE_ROOT}/../" + link - self.command = "${MAPLE_ROOT}/../prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang++ " + self.native_include + " " + self.native_src + " ${MAPLE_ROOT}/../out/soong/.intermediates/bionic/libc/crtbegin_so/android_arm64_armv8-a_core/crtbegin_so.o ${MAPLE_ROOT}/../prebuilts/clang/host/linux-x86/clang-r353983c/lib64/clang/9.0.3/lib/linux/libclang_rt.builtins-aarch64-android.a ${MAPLE_ROOT}/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/lib64/libatomic.a ${MAPLE_ROOT}/../out/soong/.intermediates/build/soong/libgcc_stripped/android_arm64_armv8-a_core_static/libgcc_stripped.a " + self.native_linker + " ${MAPLE_ROOT}/../out/soong/.intermediates/external/libcxx/libc++/android_arm64_armv8-a_core_shared/libc++.so ${MAPLE_ROOT}/../out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_core_shared_10000/libc.so ${MAPLE_ROOT}/../out/soong/.intermediates/bionic/libm/libm/android_arm64_armv8-a_core_shared_10000/libm.so ${MAPLE_ROOT}/../out/soong/.intermediates/bionic/libdl/libdl/android_arm64_armv8-a_core_shared_10000/libdl.so ${MAPLE_ROOT}/../out/soong/.intermediates/bionic/libc/crtend_so/android_arm64_armv8-a_core/obj/bionic/libc/arch-common/bionic/crtend_so.o -o ${BENCHMARK_ACTION}/lib" + self.native_lib_name + ".so -nostdlib -Wl,--gc-sections -shared -Wl,-soname,lib" + self.native_lib_name + ".so -target aarch64-linux-android -B${MAPLE_ROOT}/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined-version -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_stripped.a -fuse-ld=lld -Wl,--pack-dyn-relocs=android+relr -Wl,--use-android-relr-tags -Wl,--no-undefined -Wl,--hash-style=gnu -Wl,--icf=safe -Wl,-z,max-page-size=4096 ${MAPLE_ROOT}/../prebuilts/clang/host/linux-x86/clang-r353983c/lib64/clang/9.0.3/lib/linux/libclang_rt.ubsan_minimal-aarch64-android.a -Wl,--exclude-libs,libclang_rt.ubsan_minimal-aarch64-android.a -Wl,-execute-only -fPIC" - return super().get_final_command(variables) \ No newline at end of file diff --git a/testsuite/driver/src/api/benchmark_vogar.py b/testsuite/driver/src/api/benchmark_vogar.py deleted file mode 100644 index 67e55bccc4..0000000000 --- a/testsuite/driver/src/api/benchmark_vogar.py +++ /dev/null @@ -1,18 +0,0 @@ -import os -import re -from api.shell_operator import ShellOperator - - -class BenchmarkVogar(ShellOperator): - - def __init__(self, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.command = "" - self.vogar_deps_dir = "${MAPLE_ROOT}/zeiss/prebuilt/tools/mygote_script/benchmark_scripts" - self.sourcepath = "" - - def get_command(self, variables): - if "SOURCEPATH" in variables: - self.sourcepath = "--sourcepath " + variables["SOURCEPATH"] - self.command = "PATH=${MAPLE_ROOT}/../out/soong/host/linux-x86/bin:/$PATH ANDROID_BUILD_TOP=${MAPLE_ROOT}/.. VOGAR_DEPS_DIR=" + self.vogar_deps_dir + " java -classpath " + self.vogar_deps_dir + "/vogar.jar vogar.Vogar --results-dir . --toolchain D8 --mode DEVICE --variant X64 " + self.sourcepath + " --benchmark " + variables["BENCHMARK_CASE"] - return super().get_final_command(variables) \ No newline at end of file diff --git a/testsuite/driver/src/api/check_file_equal.py b/testsuite/driver/src/api/check_file_equal.py deleted file mode 100644 index d4472a1981..0000000000 --- a/testsuite/driver/src/api/check_file_equal.py +++ /dev/null @@ -1,27 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class CheckFileEqual(ShellOperator): - - def __init__(self, file1, file2, return_value_list=None): - super().__init__(return_value_list) - self.file1 = file1 - self.file2 = file2 - - def get_command(self, variables): - self.command = "diff " + self.file1 + " " + self.file2 - return super().get_final_command(variables) \ No newline at end of file diff --git a/testsuite/driver/src/api/check_reg_contain.py b/testsuite/driver/src/api/check_reg_contain.py deleted file mode 100644 index 49007a19c3..0000000000 --- a/testsuite/driver/src/api/check_reg_contain.py +++ /dev/null @@ -1,31 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class CheckRegContain(ShellOperator): - - def __init__(self, reg, file, choice=None, return_value_list=None): - super().__init__(return_value_list) - self.reg = reg - self.file = file - self.choice = choice - - def get_command(self, variables): - if self.choice is None: - self.command = "python3 ${OUT_ROOT}/target/product/public/bin/check.py --check=contain --str=\"" + self.reg + "\" --result=" + self.file - elif self.choice == "num": - self.command = "python3 ${OUT_ROOT}/target/product/public/bin/check.py --check=num --result=" + self.file + " --str=" + self.reg + " --num=${EXPECTNUM}" - return super().get_final_command(variables) diff --git a/testsuite/driver/src/api/class2panda.py b/testsuite/driver/src/api/class2panda.py deleted file mode 100644 index bdc94ccfb6..0000000000 --- a/testsuite/driver/src/api/class2panda.py +++ /dev/null @@ -1,28 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Class2panda(ShellOperator): - - def __init__(self, class2panda, infile, outfile, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.class2panda = class2panda - self.infile = infile - self.outfile = outfile - - def get_command(self, variables): - self.command = "LD_LIBRARY_PATH=${OUT_ROOT}/target/product/public/lib:$LD_LIBRARY_PATH " + self.class2panda + " " + self.infile + " " + self.outfile - return super().get_final_command(variables) \ No newline at end of file diff --git a/testsuite/driver/src/api/dex2mpl.py b/testsuite/driver/src/api/dex2mpl.py deleted file mode 100644 index cc5715b92c..0000000000 --- a/testsuite/driver/src/api/dex2mpl.py +++ /dev/null @@ -1,28 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Dex2mpl(ShellOperator): - - def __init__(self, dex2mpl, option, infile, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.dex2mpl = dex2mpl - self.option = option - self.infile = infile - - def get_command(self, variables): - self.command = self.dex2mpl + " " + self.option + " " + self.infile - return super().get_final_command(variables) \ No newline at end of file diff --git a/testsuite/driver/src/api/gendeps.py b/testsuite/driver/src/api/gendeps.py deleted file mode 100644 index 44dc09c503..0000000000 --- a/testsuite/driver/src/api/gendeps.py +++ /dev/null @@ -1,34 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Gendeps(ShellOperator): - - def __init__(self, gendeps, apk, emui, infile, return_value_list=None, redirection=None, extra_option=""): - super().__init__(return_value_list, redirection) - self.gendeps = gendeps - self.apk = apk - self.emui = emui - self.infile = infile - self.extra_option = extra_option - - def get_command(self, variables): - self.command = self.gendeps + " -emui-map ${OUT_ROOT}/target/product/public/lib/dex_module_map_sdk.list -classpath libmaplecore-all -verbose -out-module-name " - self.command += "-apk " + self.apk + " " - self.command += "-emui " + self.emui + " " - self.command += self.extra_option + " " - self.command +="-in-dex " + self.infile - return super().get_final_command(variables) \ No newline at end of file diff --git a/testsuite/driver/src/api/irbuild.py b/testsuite/driver/src/api/irbuild.py deleted file mode 100644 index 3688c00e93..0000000000 --- a/testsuite/driver/src/api/irbuild.py +++ /dev/null @@ -1,27 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Irbuild(ShellOperator): - - def __init__(self, irbuild, infile, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.irbuild = irbuild - self.infile = infile - - def get_command(self, variables): - self.command = self.irbuild + " " + self.infile - return super().get_final_command(variables) \ No newline at end of file diff --git a/testsuite/driver/src/api/jar2dex.py b/testsuite/driver/src/api/jar2dex.py deleted file mode 100644 index 327a2dbd55..0000000000 --- a/testsuite/driver/src/api/jar2dex.py +++ /dev/null @@ -1,27 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Jar2dex(ShellOperator): - - def __init__(self, jar_file, infile, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.jar_file = jar_file - self.infile = infile - - def get_command(self, variables): - self.command = "${OUT_ROOT}/target/product/public/bin/jar2dex " + " -p " + ":".join(self.jar_file) + " -i " + self.infile - return super().get_final_command(variables) diff --git a/testsuite/driver/src/api/jasm2jar.py b/testsuite/driver/src/api/jasm2jar.py deleted file mode 100644 index 252119e227..0000000000 --- a/testsuite/driver/src/api/jasm2jar.py +++ /dev/null @@ -1,26 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Jasm2jar(ShellOperator): - - def __init__(self, file, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.file = file - - def get_command(self, variables): - self.command = "java -jar ${OUT_ROOT}/target/product/public/bin/asmtools.jar jasm " + " ".join(self.file) + ";jar -cvf ${APP}.jar *.class" - return super().get_final_command(variables) \ No newline at end of file diff --git a/testsuite/driver/src/api/java2dex.py b/testsuite/driver/src/api/java2dex.py deleted file mode 100644 index fcc25c966e..0000000000 --- a/testsuite/driver/src/api/java2dex.py +++ /dev/null @@ -1,39 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Java2dex(ShellOperator): - - def __init__(self, jar_file, outfile, infile, usesimplejava=False, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.jar_file = jar_file - self.outfile = outfile - self.infile = infile - self.usesimplejava = usesimplejava - - def java2dex_i_output(self, variables): - if 'EXTRA_JAVA_FILE' in variables.keys(): - variables['EXTRA_JAVA_FILE'] = variables['EXTRA_JAVA_FILE'].replace('[','').replace(']','').replace(',',':') - return ':'.join(self.infile) - return self.infile[0] - - def get_command(self, variables): - if not self.usesimplejava: - self.command = "${OUT_ROOT}/target/product/public/bin/java2dex -o " + self.outfile + " -p " + ":".join(self.jar_file) + " -i " + self.java2dex_i_output(variables) - else: - self.command = "${OUT_ROOT}/target/product/public/bin/java2dex -o " + self.outfile + " -p " + ":".join(self.jar_file) + " -i " + self.java2dex_i_output(variables) + " -s useSimpleJava" - # print(super().get_final_command(variables)) - return super().get_final_command(variables) diff --git a/testsuite/driver/src/api/jcod2jar.py b/testsuite/driver/src/api/jcod2jar.py deleted file mode 100644 index bd066a69ca..0000000000 --- a/testsuite/driver/src/api/jcod2jar.py +++ /dev/null @@ -1,26 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Jcod2jar(ShellOperator): - - def __init__(self, file, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.file = file - - def get_command(self, variables): - self.command = "java -jar ${OUT_ROOT}/target/product/public/bin/asmtools.jar jcoder " + " ".join(self.file) + ";jar -cvf ${APP}.jar *.class" - return super().get_final_command(variables) \ No newline at end of file diff --git a/testsuite/driver/src/api/linker.py b/testsuite/driver/src/api/linker.py deleted file mode 100644 index f912c36ba9..0000000000 --- a/testsuite/driver/src/api/linker.py +++ /dev/null @@ -1,32 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Linker(ShellOperator): - - def __init__(self, infile, lib, model, native_src=None, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.model = model - self.lib = lib - self.native_src = native_src - self.infile = infile - - def get_command(self, variables): - if self.native_src: - self.command = "${OUT_ROOT}/target/product/public/bin/linker -m " + self.model + " -l " + self.lib + " -i " + self.infile + " -n " + self.native_src - else: - self.command = "${OUT_ROOT}/target/product/public/bin/linker -m " + self.model + " -l " + self.lib + " -i " + self.infile - return super().get_final_command(variables) \ No newline at end of file diff --git a/testsuite/driver/src/api/maple.py b/testsuite/driver/src/api/maple.py deleted file mode 100644 index 6417addd2d..0000000000 --- a/testsuite/driver/src/api/maple.py +++ /dev/null @@ -1,36 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Maple(ShellOperator): - - def __init__(self, maple, run, option, global_option, infile, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.maple = maple - self.run = run - self.option_dict = option - self.global_option = global_option - self.infile = infile - - def get_command(self, variables): - self.command = self.maple + " --run=" + ":".join(self.run) + " " - option = [] - for cmd in self.run: - option.append(self.option_dict[cmd]) - self.command += "--option=\"" + ":".join(option) + "\" " - self.command += self.global_option + " " - self.command += "--infile " + self.infile - return super().get_final_command(variables) diff --git a/testsuite/driver/src/api/mplme.py b/testsuite/driver/src/api/mplme.py deleted file mode 100644 index 627343c0ca..0000000000 --- a/testsuite/driver/src/api/mplme.py +++ /dev/null @@ -1,28 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Mplme(ShellOperator): - - def __init__(self, mplme, option, infile, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.mplme = mplme - self.option = option - self.infile = infile - - def get_command(self, variables): - self.command = self.mplme + " " + self.option + " " + self.infile - return super().get_final_command(variables) \ No newline at end of file diff --git a/testsuite/driver/src/api/mplsh.py b/testsuite/driver/src/api/mplsh.py deleted file mode 100644 index ec379177b9..0000000000 --- a/testsuite/driver/src/api/mplsh.py +++ /dev/null @@ -1,47 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Mplsh(ShellOperator): - - def __init__(self, mplsh, xbootclasspath, infile, garbage_collection_kind, return_value_list=None, env=None, qemu=None, qemu_libc=None, qemu_ld_lib=None, main="${APP}", args=None, redirection=None): - super().__init__(return_value_list, redirection) - self.env = env - self.qemu = qemu - self.qemu_libc = qemu_libc - self.qemu_ld_lib = qemu_ld_lib - self.mplsh = mplsh - self.garbage_collection_kind = garbage_collection_kind - self.xbootclasspath = xbootclasspath - self.infile = infile - self.main = main - self.args = args - - def get_command(self, variables): - self.command = "" - if self.env is not None: - for env_var in self.env.keys(): - self.command += env_var + "=" + self.env[env_var] + " " - if self.qemu is not None: - self.command += self.qemu + " -L " + self.qemu_libc + " -E LD_LIBRARY_PATH=" + ":".join(self.qemu_ld_lib) + " " - self.command += self.mplsh + " " - if self.garbage_collection_kind == "GC": - self.command += "-Xgconly " - if self.args is not None: - self.command +="-Xbootclasspath:" + self.xbootclasspath + " -cp " + self.infile + " " + self.main + " " + self.args - else: - self.command += "-Xbootclasspath:" + self.xbootclasspath + " -cp " + self.infile + " " + self.main - return super().get_final_command(variables) diff --git a/testsuite/driver/src/api/mplverf.py b/testsuite/driver/src/api/mplverf.py deleted file mode 100644 index 00297886b8..0000000000 --- a/testsuite/driver/src/api/mplverf.py +++ /dev/null @@ -1,27 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Mplverf(ShellOperator): - - def __init__(self, mplverf, infile, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.mplverf = mplverf - self.infile = infile - - def get_command(self, variables): - self.command = self.mplverf + " " + self.infile - return super().get_final_command(variables) \ No newline at end of file diff --git a/testsuite/driver/src/api/native_compile.py b/testsuite/driver/src/api/native_compile.py deleted file mode 100644 index 68cc06b815..0000000000 --- a/testsuite/driver/src/api/native_compile.py +++ /dev/null @@ -1,75 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class NativeCompile(ShellOperator): - - def __init__(self, mpldep, infile, model, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.mpldep = mpldep - self.infile = infile - self.model =model - - def get_command(self, variables): - if self.model == "arm32_hard": - self.command = "/usr/bin/clang++-9 -O2 -g3 -c -fPIC -march=armv7-a -mfpu=vfpv4 -mfloat-abi=hard -target armv7a-linux-gnueabihf -c " - for file in self.mpldep: - self.command += "-I" + file + " " - self.command += " -isystem /usr/arm-linux-gnueabihf/include/c++/5 -isystem /usr/arm-linux-gnueabihf/include/c++/5/arm-linux-gnueabihf -isystem /usr/arm-linux-gnueabihf/include/c++/5/backward -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/5/include -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/5/include-fixed -isystem /usr/arm-linux-gnueabihf/include" - self.command += " " + self.infile + ".cpp; " - self.command += " /usr/bin/clang++-9 " - self.command += " " + self.infile + ".o" - self.command += " -O2 -Wall -Werror -Wno-unused-command-line-argument -fstack-protector-strong -std=c++14 -nostdlibinc -march=armv7-a -mfpu=vfpv4 -mfloat-abi=hard -target armv7a-linux-gnueabihf -fPIC -shared -fuse-ld=lld -rdynamic" - self.command += " -L" + self.mpldep[0] + " -lcore-all -lcommon-bridge" - self.command += " -Wl,-z,notext -o" - self.command += " lib" + self.infile + ".so;" - if self.model == "arm32_softfp": - self.command = "/usr/bin/clang++-9 -O2 -g3 -c -fPIC -march=armv7-a -mfpu=vfpv4 -mfloat-abi=softfp -target armv7a-linux-gnueabi -c " - for file in self.mpldep: - self.command += "-I" + file + " " - self.command += " -isystem /usr/arm-linux-gnueabi/include/c++/5 -isystem /usr/arm-linux-gnueabi/include/c++/5/arm-linux-gnueabi -isystem /usr/arm-linux-gnueabi/include/c++/5/backward -isystem /usr/lib/gcc-cross/arm-linux-gnueabi/5/include -isystem /usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed -isystem /usr/arm-linux-gnueabi/include" - self.command += " " + self.infile + ".cpp; " - self.command += " /usr/bin/clang++-9 " - self.command += " " + self.infile + ".o" - self.command += " -O2 -Wall -Werror -Wno-unused-command-line-argument -fstack-protector-strong -std=c++14 -nostdlibinc -march=armv7-a -mfpu=vfpv4 -mfloat-abi=softfp -target armv7a-linux-gnueabi -fPIC -shared -fuse-ld=lld -rdynamic" - self.command += " -L" + self.mpldep[0] + " -lcore-all -lcommon-bridge" - self.command += " -Wl,-z,notext -o" - self.command += " lib" + self.infile + ".so;" - if self.model == "arm64": - self.command = " /usr/bin/clang++-9 -O2 -g3 -c -fPIC -march=armv8-a -target aarch64-linux-gnu " - for file in self.mpldep: - self.command += "-I" + file + " " - self.command += " -isystem /usr/aarch64-linux-gnu/include/c++/5 -isystem /usr/aarch64-linux-gnu/include/c++/5/aarch64-linux-gnu -isystem /usr/aarch64-linux-gnu/include/c++/5/backward -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include-fixed -isystem /usr/aarch64-linux-gnu/include" - self.command += " " + self.infile + ".cpp; " - self.command += " /usr/bin/clang++-9 " - self.command += " " + self.infile + ".o" - self.command += " -O2 -Wall -Werror -Wno-unused-command-line-argument -fstack-protector-strong -std=c++14 -nostdlibinc -march=armv8-a -target aarch64-linux-gnu -fPIC -shared -fuse-ld=lld -rdynamic" - self.command += " -L" + self.mpldep[0] + " -lcore-all -lcommon-bridge" - self.command += " -Wl,-z,notext -o" - self.command += " lib" + self.infile + ".so;" - if self.model == "arm64_ifile": - self.command = " /usr/bin/clang++-9 -O2 -g3 -c -fPIC -march=armv8-a -target aarch64-linux-gnu " - for file in self.mpldep: - self.command += "-I" + file + " " - self.command += " -isystem /usr/aarch64-linux-gnu/include/c++/5 -isystem /usr/aarch64-linux-gnu/include/c++/5/aarch64-linux-gnu -isystem /usr/aarch64-linux-gnu/include/c++/5/backward -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include-fixed -isystem /usr/aarch64-linux-gnu/include" - self.command += " " + self.infile + ".cpp; " - self.command += " /usr/bin/clang++-9 " - self.command += " " + self.infile + ".o" - self.command += " -O2 -Wall -Werror -Wno-unused-command-line-argument -fstack-protector-strong -std=c++14 -nostdlibinc -march=armv8-a -target aarch64-linux-gnu -fPIC -shared -fuse-ld=lld -rdynamic" - self.command += " -L" + self.mpldep[0] + " -lmrt -lcommon-bridge" - self.command += " -Wl,-z,notext -o" - self.command += " lib" + self.infile + ".so;" - return super().get_final_command(variables) diff --git a/testsuite/driver/src/api/qemu_linker_arm32.py b/testsuite/driver/src/api/qemu_linker_arm32.py deleted file mode 100644 index 429fe3b2be..0000000000 --- a/testsuite/driver/src/api/qemu_linker_arm32.py +++ /dev/null @@ -1,38 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class QemuLinkerArm32(ShellOperator): - - def __init__(self, lib, model, parse=None, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.lib = lib - self.model = model - if parse is None: - self.parse = '${APP}' - else: - self.parse = parse - - def get_command(self, variables): - if self.model == "hard": - self.command = "/usr/bin/clang++-9 -march=armv7-a -mfpu=vfpv4 -mfloat-abi=hard -g3 -O2 -x assembler-with-cpp -target armv7a-linux-gnueabihf -c " + self.parse + ".VtableImpl.s -o " + self.parse + ".VtableImpl.qemu.o;/usr/bin/clang++-9 -g3 -O2 -march=armv7-a -mfpu=vfpv4 -mfloat-abi=hard -target armv7a-linux-gnueabihf -fPIC -shared -o " + self.parse + ".so ${OUT_ROOT}/target/product/maple_arm32/lib/hard/mrt_module_init.o -I${OUT_ROOT}/target/product/maple_arm32/lib/nativehelper " + self.parse + ".VtableImpl.qemu.o -fuse-ld=lld -rdynamic -L${OUT_ROOT}/target/product/maple_arm32/lib/" + self.lib + "/ -lcore-all -lcommon-bridge -Wl\,-z\,notext -Wl\,-T ${OUT_ROOT}/target/product/public/lib/linker/mapleArm32lld.so.lds" - if self.model == "native_hard": - self.command = "/usr/bin/clang++-9 -march=armv7-a -mfpu=vfpv4 -mfloat-abi=hard -g3 -O2 -x assembler-with-cpp -target armv7a-linux-gnueabihf -c " + self.parse + ".VtableImpl.s -o " + self.parse + ".VtableImpl.qemu.o;/usr/bin/clang++-9 -march=armv7-a -mfpu=vfpv4 -mfloat-abi=hard -g3 -O2 -Wall -Werror -Wno-unused-command-line-argument -fstack-protector-strong -fPIC -std=c++14 -nostdlibinc -isystem /usr/arm-linux-gnueabihf/include/c++/5 -isystem /usr/arm-linux-gnueabihf/include/c++/5/arm-linux-gnueabihf -isystem /usr/arm-linux-gnueabihf/include/c++/5/backward -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/5/include -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/5/include-fixed -isystem /usr/arm-linux-gnueabihf/include -target armv7a-linux-gnueabihf -fPIC -shared -o " + self.parse + ".so ${OUT_ROOT}/target/product/maple_arm32/lib/hard/mrt_module_init.o ${NATIVE_SRC} -I${OUT_ROOT}/target/product/public/lib " + self.parse + ".VtableImpl.qemu.o -fuse-ld=lld -rdynamic -L${OUT_ROOT}/target/product/maple_arm32/lib/" + self.lib + "/ -lcore-all -lcommon-bridge -Wl\,-z\,notext -Wl\,-T ${OUT_ROOT}/target/product/public/lib/linker/mapleArm32lld.so.lds" - if self.model == "native_softfp": - self.command = "/usr/bin/clang++-9 -march=armv7-a -mfpu=vfpv4 -mfloat-abi=softfp -g3 -O2 -x assembler-with-cpp -target armv7a-linux-gnueabi -c " + self.parse + ".VtableImpl.s -o " + self.parse + ".VtableImpl.qemu.o;/usr/bin/clang++-9 -march=armv7-a -mfpu=vfpv4 -mfloat-abi=softfp -g3 -O2 -Wall -Werror -Wno-unused-command-line-argument -fstack-protector-strong -fPIC -std=c++14 -nostdlibinc -isystem /usr/arm-linux-gnueabi/include/c++/5 -isystem /usr/arm-linux-gnueabi/include/c++/5/arm-linux-gnueabi -isystem /usr/arm-linux-gnueabi/include/c++/5/backward -isystem /usr/lib/gcc-cross/arm-linux-gnueabi/5/include -isystem /usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed -isystem /usr/arm-linux-gnueabi/include -target armv7a-linux-gnueabi -fPIC -shared -o " + self.parse + ".so ${OUT_ROOT}/target/product/maple_arm32/lib/softfp/mrt_module_init.o ${NATIVE_SRC} -I${OUT_ROOT}/target/product/public/lib " + self.parse + ".VtableImpl.qemu.o -fuse-ld=lld -rdynamic -L${OUT_ROOT}/target/product/maple_arm32/lib/" + self.lib + "/ -lcore-all -lcommon-bridge -Wl\,-z\,notext -Wl\,-T ${OUT_ROOT}/target/product/public/lib/linker/mapleArm32lld.so.lds" - if self.model == "softfp": - self.command = "/usr/bin/clang++-9 -march=armv7-a -mfpu=vfpv4 -mfloat-abi=softfp -g3 -O2 -x assembler-with-cpp -target armv7a-linux-gnueabi -c " + self.parse + ".VtableImpl.s -o " + self.parse + ".VtableImpl.qemu.o;/usr/bin/clang++-9 -g3 -O2 -march=armv7-a -mfpu=vfpv4 -mfloat-abi=softfp -target armv7a-linux-gnueabi -fPIC -shared -o " + self.parse + ".so ${OUT_ROOT}/target/product/maple_arm32/lib/softfp/mrt_module_init.o -I${OUT_ROOT}/target/product/maple_arm32/lib/nativehelper " + self.parse + ".VtableImpl.qemu.o -fuse-ld=lld -rdynamic -L${OUT_ROOT}/target/product/maple_arm32/lib/" + self.lib + "/ -lcore-all -lcommon-bridge -Wl\,-z\,notext -Wl\,-T ${OUT_ROOT}/target/product/public/lib/linker/mapleArm32lld.so.lds" - return super().get_final_command(variables) diff --git a/testsuite/driver/src/api/qemu_linker_arm64.py b/testsuite/driver/src/api/qemu_linker_arm64.py deleted file mode 100644 index ddc7549c24..0000000000 --- a/testsuite/driver/src/api/qemu_linker_arm64.py +++ /dev/null @@ -1,30 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class QemuLinkerArm64(ShellOperator): - - def __init__(self, lib, parse=None, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.lib = lib - if parse is None: - self.parse = '${APP}' - else: - self.parse = parse - - def get_command(self, variables): - self.command = "/usr/bin/clang++-9 -march=armv8-a -g3 -O2 -x assembler-with-cpp -target aarch64-linux-gnu -c " + self.parse + ".VtableImpl.s -o " + self.parse + ".VtableImpl.qemu.o;/usr/bin/clang++-9 -g3 -O2 -march=armv8-a -target aarch64-linux-gnu -fPIC -shared -o " + self.parse + ".so ${OUT_ROOT}/target/product/maple_arm64/lib/mrt_module_init.o -I${OUT_ROOT}/target/product/maple_arm64/lib/nativehelper " + self.parse + ".VtableImpl.qemu.o -fuse-ld=lld -rdynamic -L${OUT_ROOT}/target/product/maple_arm64/lib/" + self.lib + "/ -lcore-all -lcommon-bridge -Wl,-z,notext -Wl,-T ${OUT_ROOT}/target/product/public/lib/linker/maplelld.so.lds" - return super().get_final_command(variables) diff --git a/testsuite/driver/src/api/qemu_native_linker.py b/testsuite/driver/src/api/qemu_native_linker.py deleted file mode 100644 index 7007bff9a2..0000000000 --- a/testsuite/driver/src/api/qemu_native_linker.py +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class QemuNativeLinker(ShellOperator): - def __init__(self, lib, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.lib = lib - - def get_command(self, variables): - self.command = "/usr/bin/clang++-9 -march=armv8-a -g3 -O2 -x assembler-with-cpp -target aarch64-linux-gnu -c ${APP}.VtableImpl.s -o ${APP}.VtableImpl.qemu.o;/usr/bin/clang++-9 -g3 -O2 -Wall -Werror -Wno-unused-command-line-argument -fstack-protector-strong -fPIC -std=c++14 -nostdlibinc -march=armv8-a -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/include/c++/5 -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/include/c++/5/aarch64-linux-gnu -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/include/c++/5/backward -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include-fixed -isystem /usr/aarch64-linux-gnu/include -target aarch64-linux-gnu -fPIC -shared -o ${APP}.so ${OUT_ROOT}/target/product/maple_arm64/lib/mrt_module_init.o ${NATIVE_SRC} -I${OUT_ROOT}/target/product/public/lib ${APP}.VtableImpl.qemu.o -fuse-ld=lld -rdynamic -L${OUT_ROOT}/target/product/maple_arm64/lib/" + self.lib + "/ -lcore-all -lcommon-bridge -Wl\,-z\,notext -Wl\,-T ${OUT_ROOT}/target/product/public/lib/linker/maplelld.so.lds" - return super().get_final_command(variables) diff --git a/testsuite/driver/src/api/shell.py b/testsuite/driver/src/api/shell.py deleted file mode 100644 index 04d6a77610..0000000000 --- a/testsuite/driver/src/api/shell.py +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Shell(ShellOperator): - - def __init__(self, command, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.command = command - - def get_command(self, variables): - return super().get_final_command(variables) \ No newline at end of file diff --git a/testsuite/driver/src/api/shell_operator.py b/testsuite/driver/src/api/shell_operator.py deleted file mode 100644 index a33412022d..0000000000 --- a/testsuite/driver/src/api/shell_operator.py +++ /dev/null @@ -1,53 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -class ShellOperator(object): - - def __init__(self, return_value_list, redirection=None): - self.command = "" - if return_value_list is None: - self.return_value_list = [0] - else: - self.return_value_list = return_value_list - self.redirection = redirection - - def get_redirection(self): - if self.redirection is not None: - return " > " + self.redirection + " 2>&1" - else: - return "" - - def get_check_command(self): - if len(self.return_value_list) == 1: - if 0 in self.return_value_list: - return "" - else: - return " || [ $? -eq " + str(self.return_value_list[0]) + " ]" - elif len(self.return_value_list) == 0: - return " || true" - else: - return_value_check_str_list = [] - for return_value in self.return_value_list: - return_value_check_str_list.append("[ ${return_value} -eq " + str(return_value) + " ]") - return " || (return_value=$? && (" + " || ".join(return_value_check_str_list) + "))" - - def get_final_command(self, variables): - final_command = self.command - if variables is not None: - for variable in variables.keys(): - if "${" + variable + "}" in final_command: - final_command = final_command.replace("${" + variable + "}", variables[variable]) - final_command += self.get_redirection() - final_command += self.get_check_command() - return final_command \ No newline at end of file diff --git a/testsuite/driver/src/api/smali2dex.py b/testsuite/driver/src/api/smali2dex.py deleted file mode 100644 index 3e8050ebfd..0000000000 --- a/testsuite/driver/src/api/smali2dex.py +++ /dev/null @@ -1,27 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Smali2dex(ShellOperator): - - def __init__(self, file, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.file = file - - def get_command(self, variables): - self.command = "java -jar ${OUT_ROOT}/target/product/public/bin/smali-2.2.4.jar ass " + " ".join(self.file) + "; mv out.dex ${APP}.dex" - self.command += super().get_redirection() - return super().get_final_command(variables) diff --git a/testsuite/driver/src/api/unzip.py b/testsuite/driver/src/api/unzip.py deleted file mode 100644 index 11faffe74b..0000000000 --- a/testsuite/driver/src/api/unzip.py +++ /dev/null @@ -1,27 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api.shell_operator import ShellOperator - - -class Unzip(ShellOperator): - - def __init__(self, file, target_path, return_value_list=None, redirection=None): - super().__init__(return_value_list, redirection) - self.file = file - self.target_path = target_path - - def get_command(self, variables): - self.command = "unzip -o " + self.file + " -d " + self.target_path - return super().get_final_command(variables) diff --git a/testsuite/driver/src/mode b/testsuite/driver/src/mode new file mode 120000 index 0000000000..09d75d3996 --- /dev/null +++ b/testsuite/driver/src/mode @@ -0,0 +1 @@ +.mode \ No newline at end of file diff --git a/testsuite/driver/src/mode/AOT.py b/testsuite/driver/src/mode/AOT.py deleted file mode 100644 index 9a33481bf5..0000000000 --- a/testsuite/driver/src/mode/AOT.py +++ /dev/null @@ -1,116 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -AOT = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_AOT/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-AOT/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps --aot", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-AOT", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-AOT", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-AOT", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-AOT", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.so", - xbootclasspath="libcore-all.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32O0HD.py b/testsuite/driver/src/mode/ARM32O0HD.py deleted file mode 100644 index c60923aba8..0000000000 --- a/testsuite/driver/src/mode/ARM32O0HD.py +++ /dev/null @@ -1,120 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32O0HD = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list ", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-hard_O0", - model="arm32_hard", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32O0NATIVEHD.py b/testsuite/driver/src/mode/ARM32O0NATIVEHD.py deleted file mode 100644 index 031639fa11..0000000000 --- a/testsuite/driver/src/mode/ARM32O0NATIVEHD.py +++ /dev/null @@ -1,131 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32O0NATIVEHD = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm32_hard" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list ", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-hard_O0", - model="arm32_hard", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32O0NATIVESFP.py b/testsuite/driver/src/mode/ARM32O0NATIVESFP.py deleted file mode 100644 index 4b72c675e5..0000000000 --- a/testsuite/driver/src/mode/ARM32O0NATIVESFP.py +++ /dev/null @@ -1,131 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32O0NATIVESFP = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm32_softfp" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --float-abi=softfp --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-softfp_O0", - model="arm32_softfp", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32O0RCHD.py b/testsuite/driver/src/mode/ARM32O0RCHD.py deleted file mode 100644 index 204f4d1413..0000000000 --- a/testsuite/driver/src/mode/ARM32O0RCHD.py +++ /dev/null @@ -1,79 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32O0RCHD = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list ", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-hard_O0", - model="arm32_hard", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - choice="num", - reg="ExpectResult", - file="cycle.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32O0RCSFP.py b/testsuite/driver/src/mode/ARM32O0RCSFP.py deleted file mode 100644 index 58655cbb47..0000000000 --- a/testsuite/driver/src/mode/ARM32O0RCSFP.py +++ /dev/null @@ -1,79 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32O0RCSFP = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --float-abi=softfp --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-softfp_O0", - model="arm32_softfp", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - choice="num", - reg="ExpectResult", - file="cycle.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32O0SFP.py b/testsuite/driver/src/mode/ARM32O0SFP.py deleted file mode 100644 index 6506189a0f..0000000000 --- a/testsuite/driver/src/mode/ARM32O0SFP.py +++ /dev/null @@ -1,120 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32O0SFP = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --float-abi=softfp --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-softfp_O0", - model="arm32_softfp", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32O2HD.py b/testsuite/driver/src/mode/ARM32O2HD.py deleted file mode 100644 index 011adf0a49..0000000000 --- a/testsuite/driver/src/mode/ARM32O2HD.py +++ /dev/null @@ -1,116 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32O2HD = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl","mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg":"--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-hard_O2", - model="arm32_hard", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32O2NATIVEHD.py b/testsuite/driver/src/mode/ARM32O2NATIVEHD.py deleted file mode 100644 index 01eb181bfe..0000000000 --- a/testsuite/driver/src/mode/ARM32O2NATIVEHD.py +++ /dev/null @@ -1,129 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32O2NATIVEHD = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O2", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm32_hard" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl","mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg":"--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-hard_O2", - model="arm32_hard", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O2", - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O2", - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O2", - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32O2NATIVESFP.py b/testsuite/driver/src/mode/ARM32O2NATIVESFP.py deleted file mode 100644 index 8cf5ff48a7..0000000000 --- a/testsuite/driver/src/mode/ARM32O2NATIVESFP.py +++ /dev/null @@ -1,129 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32O2NATIVESFP = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O2", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm32_softfp" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --float-abi=softfp --no-pie --verbose-asm --fPIC --gen-c-macro-def --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-softfp_O2", - model="arm32_softfp", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O2" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O2" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O2" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32O2RCHD.py b/testsuite/driver/src/mode/ARM32O2RCHD.py deleted file mode 100644 index 4afbf9dc56..0000000000 --- a/testsuite/driver/src/mode/ARM32O2RCHD.py +++ /dev/null @@ -1,79 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32O2RCHD = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-hard_O2", - model="arm32_hard", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - choice="num", - reg="ExpectResult", - file="cycle.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32O2RCSFP.py b/testsuite/driver/src/mode/ARM32O2RCSFP.py deleted file mode 100644 index e8fa848d2b..0000000000 --- a/testsuite/driver/src/mode/ARM32O2RCSFP.py +++ /dev/null @@ -1,79 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32O2RCSFP = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --float-abi=softfp --no-pie --verbose-asm --fPIC --gen-c-macro-def --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-softfp_O2", - model="arm32_softfp", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - choice="num", - reg="ExpectResult", - file="cycle.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32O2SFP.py b/testsuite/driver/src/mode/ARM32O2SFP.py deleted file mode 100644 index 71adc72007..0000000000 --- a/testsuite/driver/src/mode/ARM32O2SFP.py +++ /dev/null @@ -1,116 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32O2SFP = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --float-abi=softfp --no-pie --verbose-asm --fPIC --gen-c-macro-def --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-softfp_O2", - model="arm32_softfp", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32ZTERPCLASSLOADERHD.py b/testsuite/driver/src/mode/ARM32ZTERPCLASSLOADERHD.py deleted file mode 100644 index 7d499e3af0..0000000000 --- a/testsuite/driver/src/mode/ARM32ZTERPCLASSLOADERHD.py +++ /dev/null @@ -1,299 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32ZTERPCLASSLOADERHD = { - "java2dex": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ) - ], - "compile": [ - Shell( - 'cp ../lib/child.jar ./ ' - ), - Shell( - 'cp ../lib/parent.jar ./ ' - ), - Shell( - 'cp ../lib/inject.jar ./ ' - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="child.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="child.dex" - ), - Linker( - lib="host-x86_64-hard_O0", - model="arm32_hard", - infile="child" - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="parent.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="parent.dex" - ), - Linker( - lib="host-x86_64-hard_O0", - model="arm32_hard", - infile="parent" - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="inject.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="inject.dex" - ), - Linker( - lib="host-x86_64-hard_O0", - model="arm32_hard", - infile="inject" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-hard_O0", - model="arm32_hard", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "APP_SPECIFY_CLASSPATH": '$(echo ${APP}.so|cut -d "=" -f 2)' - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1", - "APP_SPECIFY_CLASSPATH": '$(echo ${APP}.so|cut -d "=" -f 2)' - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_VERIFY_RC": "1", - "APP_SPECIFY_CLASSPATH": '$(echo ${APP}.so|cut -d "=" -f 2)' - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32ZTERPCLASSLOADERSFP.py b/testsuite/driver/src/mode/ARM32ZTERPCLASSLOADERSFP.py deleted file mode 100644 index d934d314a8..0000000000 --- a/testsuite/driver/src/mode/ARM32ZTERPCLASSLOADERSFP.py +++ /dev/null @@ -1,299 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32ZTERPCLASSLOADERSFP = { - "java2dex": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ) - ], - "compile": [ - Shell( - 'cp ../lib/child.jar ./ ' - ), - Shell( - 'cp ../lib/parent.jar ./ ' - ), - Shell( - 'cp ../lib/inject.jar ./ ' - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="child.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --float-abi=softfp --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="child.dex" - ), - Linker( - lib="host-x86_64-softfp_O0", - model="arm32_softfp", - infile="child" - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="parent.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --float-abi=softfp --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="parent.dex" - ), - Linker( - lib="host-x86_64-softfp_O0", - model="arm32_softfp", - infile="parent" - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="inject.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --float-abi=softfp --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="inject.dex" - ), - Linker( - lib="host-x86_64-softfp_O0", - model="arm32_softfp", - infile="inject" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker--FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --float-abi=softfp --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-softfp_O0", - model="arm32_softfp", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "APP_SPECIFY_CLASSPATH": '$(echo ${APP}.so|cut -d "=" -f 2)' - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1", - "APP_SPECIFY_CLASSPATH": '$(echo ${APP}.so|cut -d "=" -f 2)' - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_VERIFY_RC": "1", - "APP_SPECIFY_CLASSPATH": '$(echo ${APP}.so|cut -d "=" -f 2)' - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32ZTERPDEXSOHD.py b/testsuite/driver/src/mode/ARM32ZTERPDEXSOHD.py deleted file mode 100644 index 911b6f7577..0000000000 --- a/testsuite/driver/src/mode/ARM32ZTERPDEXSOHD.py +++ /dev/null @@ -1,144 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32ZTERPDEXSOHD = { - "java2dex":[ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ) - ], - "java2dex_simplejava":[ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"], - usesimplejava=True - ) - ], - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list ", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-hard_O0", - model="arm32_hard", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${CP}", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${CP}", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${CP}", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32ZTERPDEXSOSFP.py b/testsuite/driver/src/mode/ARM32ZTERPDEXSOSFP.py deleted file mode 100644 index 36106bbe43..0000000000 --- a/testsuite/driver/src/mode/ARM32ZTERPDEXSOSFP.py +++ /dev/null @@ -1,144 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32ZTERPDEXSOSFP = { - "java2dex": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ) - ], - "java2dex_simplejava": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"], - usesimplejava=True - ) - ], - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm32/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --float-abi=softfp --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-softfp_O0", - model="arm32_softfp", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${CP}", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${CP}", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${CP}", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32ZTERPHD.py b/testsuite/driver/src/mode/ARM32ZTERPHD.py deleted file mode 100644 index e6af20039d..0000000000 --- a/testsuite/driver/src/mode/ARM32ZTERPHD.py +++ /dev/null @@ -1,106 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32ZTERPHD = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ARM32ZTERPRCHD.py b/testsuite/driver/src/mode/ARM32ZTERPRCHD.py deleted file mode 100644 index fa64e949b7..0000000000 --- a/testsuite/driver/src/mode/ARM32ZTERPRCHD.py +++ /dev/null @@ -1,63 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32ZTERPRCHD = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabihf", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/hard", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-hard_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_hard", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log", - choice="num" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/ARM32ZTERPRCSFP.py b/testsuite/driver/src/mode/ARM32ZTERPRCSFP.py deleted file mode 100644 index 2908566504..0000000000 --- a/testsuite/driver/src/mode/ARM32ZTERPRCSFP.py +++ /dev/null @@ -1,63 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32ZTERPRCSFP = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log", - choice="num" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/ARM32ZTERPSFP.py b/testsuite/driver/src/mode/ARM32ZTERPSFP.py deleted file mode 100644 index ef76cd430b..0000000000 --- a/testsuite/driver/src/mode/ARM32ZTERPSFP.py +++ /dev/null @@ -1,106 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ARM32ZTERPSFP = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "USE_ZTERP": "true", - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-arm", - qemu_libc="/usr/arm-linux-gnueabi", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm32/third-party/softfp", - "${OUT_ROOT}/target/product/maple_arm32/lib/host-x86_64-softfp_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm32/bin/mplsh_arm_softfp", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/COMPACT.py b/testsuite/driver/src/mode/COMPACT.py deleted file mode 100644 index ee855cadc2..0000000000 --- a/testsuite/driver/src/mode/COMPACT.py +++ /dev/null @@ -1,123 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -COMPACT = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "mplipa": "--quiet --effectipa", - "me": "-O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "-O2 --quiet --regnativefunc --no-nativeopt --maplelinker --compact-meta --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "-O2 --quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Shell( - "python3 ${OUT_ROOT}/target/product/public/bin/check_compact.py ${APP}.VtableImpl.s > output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Linker( - lib="host-x86_64-O2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/CORT.py b/testsuite/driver/src/mode/CORT.py deleted file mode 100644 index 1ed57913e8..0000000000 --- a/testsuite/driver/src/mode/CORT.py +++ /dev/null @@ -1,30 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -CORT = { - "compile": [ - Shell("/usr/bin/clang-9 -O2 -g3 -c -fPIC -march=armv8-a -target aarch64-linux-gnu -I${MAPLE_ROOT}/mrt/coroutine/api/ ${APP}.c;/usr/bin/clang++-9 -s -fuse-ld=lld -O2 -g -Wall -fstack-protector-strong -fPIC -Werror -fPIE -rdynamic -pie -W -Wno-macro-redefined -Wno-inconsistent-missing-override -Wno-deprecated -Wno-unused-command-line-argument -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/include/c++/5 -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/include/c++/5/aarch64-linux-gnu -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/include/c++/5/backward -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include-fixed -isystem /usr/aarch64-linux-gnu/include -target aarch64-linux-gnu -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fPIE -o test.out -Wl,--start-group test.o -L${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/host-x86_64-O2/ -lcoroutine -ldl -lhuawei_secure_c -Wl,--end-group") - ], - "run": [ - Shell( - "/usr/bin/qemu-aarch64 -L /usr/aarch64-linux-gnu -E LD_LIBRARY_PATH=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2:./ ./${APP}.out > output.log 2>&1" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/DEOPT.py b/testsuite/driver/src/mode/DEOPT.py deleted file mode 100644 index 02e5d55214..0000000000 --- a/testsuite/driver/src/mode/DEOPT.py +++ /dev/null @@ -1,60 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -DEOPT = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL_IFILE/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE/libcore-all.mplt", - "me": "--gconly --O2 --quiet --threads=4 --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--gconly --O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--gconly --O2 --quiet --threads=4 --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --with-ra-linear-scan --no-ico --no-cfgo --no-prepeep --no-peep --no-ebo --no-storeloadopt --no-globalopt --no-schedule --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--save-temps --aot --deopt --ifile", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/DEPENDENCE.py b/testsuite/driver/src/mode/DEPENDENCE.py deleted file mode 100644 index 03e887b1c5..0000000000 --- a/testsuite/driver/src/mode/DEPENDENCE.py +++ /dev/null @@ -1,27 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -DEPENDENCE = { - "gendeps": [ - Gendeps( - gendeps="${OUT_ROOT}/target/product/maple_arm64/bin/gendeps", - apk="${APK}", - emui="${EMUI}", - extra_option="${EXTRA_OPTION}", - infile="${APP}.dex" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/DEX.py b/testsuite/driver/src/mode/DEX.py deleted file mode 100644 index b01e76a088..0000000000 --- a/testsuite/driver/src/mode/DEX.py +++ /dev/null @@ -1,39 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -DEX = { - "compile": [ - Dex2mpl( - dex2mpl="${OUT_ROOT}/target/product/maple_arm64/bin/dex2mpl", - option="--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0/libcore-all.mplt -litprofile=/home/fuqun/maple3.0/out/target/product/maple_arm64/lib/codetricks/profile.pv/meta.list", - infile="${APP}.dex" - ), - Irbuild( - irbuild="${OUT_ROOT}/target/product/maple_arm64/bin/irbuild", - infile="${APP}.mpl" - ), - Mplverf( - mplverf="${OUT_ROOT}/target/product/maple_arm64/bin/mplverf", - infile="${APP}.mpl" - ), - Mplme( - mplme="${OUT_ROOT}/target/product/maple_arm64/bin/mplme", - option="-O2", - infile="${APP}.mpl" - ) - ], - "run": [] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/GCO0.py b/testsuite/driver/src/mode/GCO0.py deleted file mode 100644 index e8ec39d377..0000000000 --- a/testsuite/driver/src/mode/GCO0.py +++ /dev/null @@ -1,65 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -GCO0 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO0/libcore-all.mplt -anti-proguard-auto -dexcatch -gconly -gen-stringfieldvalue -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=32 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -opt-switch-disable -refine-catch -staticstringcheck", - "me": "--quiet --gconly", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly", - "mplcg": "--quiet --no-pie --fPIC --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-GCO0", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/GCO0NATIVE.py b/testsuite/driver/src/mode/GCO0NATIVE.py deleted file mode 100644 index d0f748dcea..0000000000 --- a/testsuite/driver/src/mode/GCO0NATIVE.py +++ /dev/null @@ -1,76 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -GCO0NATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO0", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO0/libcore-all.mplt -anti-proguard-auto -dexcatch -gconly -gen-stringfieldvalue -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=32 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -opt-switch-disable -refine-catch -staticstringcheck", - "me": "--quiet --gconly", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly", - "mplcg": "--quiet --no-pie --fPIC --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-GCO0", - model="arm64", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO0", - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/GCO2.py b/testsuite/driver/src/mode/GCO2.py deleted file mode 100644 index a98c34d594..0000000000 --- a/testsuite/driver/src/mode/GCO2.py +++ /dev/null @@ -1,66 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -GCO2 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO2/libcore-all.mplt -anti-proguard-auto -dexcatch -gconly -gen-stringfieldvalue -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=32 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -opt-switch-disable -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-GCO2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/GCO2NATIVE.py b/testsuite/driver/src/mode/GCO2NATIVE.py deleted file mode 100644 index 7285ce51e1..0000000000 --- a/testsuite/driver/src/mode/GCO2NATIVE.py +++ /dev/null @@ -1,77 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -GCO2NATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO2", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO2/libcore-all.mplt -anti-proguard-auto -dexcatch -gconly -gen-stringfieldvalue -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=32 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -opt-switch-disable -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-GCO2", - model="arm64", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO2", - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/GCONLY.py b/testsuite/driver/src/mode/GCONLY.py deleted file mode 100644 index 9a06ec9bc5..0000000000 --- a/testsuite/driver/src/mode/GCONLY.py +++ /dev/null @@ -1,79 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * -from env_var import EnvVar - -GCONLY = { - "compile": [ - BenchmarkVogar(), - Shell( - "mv ${BENCHMARK_ACTION}/${BENCHMARK_ACTION}.dex.jar ${BENCHMARK_ACTION}/${BENCHMARK_ACTION}.jar;" - "if [ -d \"${BENCHMARK_ACTION}/dex\" ]; then" - " rm -rf ${BENCHMARK_ACTION}/dex;" - "fi;" - "unzip -q ${BENCHMARK_ACTION}/${BENCHMARK_ACTION}.jar -d ${BENCHMARK_ACTION}/dex" - ), - Maple( - maple="${MAPLE_ROOT}/../out/soong/host/linux-x86/bin/maple", - run=["dex2mpl"], - option={ - "dex2mpl": "-checktool -check-invoke -invoke-checklist=${MAPLE_ROOT}/mrt/codetricks/profile.pv/classloaderInvocation.list -check-incomplete -incomplete-whitelist=${MAPLE_ROOT}/mrt/codetricks/compile/incomplete.list -incomplete-detail -staticstringcheck --inlinefunclist=${MAPLE_ROOT}/mrt/codetricks/profile.pv/to_inline.list -dexcatch -litprofile=${MAPLE_ROOT}/mrt/codetricks/profile.pv/meta.list -gconly -output=${BENCHMARK_ACTION}/dex/ -mplt=${MAPLE_ROOT}/../out/soong/.intermediates/vendor/huawei/maple/Lib/core/libmaplecore-all/android_arm64_armv8-a_core_shared/obj/classes.mplt" - }, - global_option="", - infile="${BENCHMARK_ACTION}/dex/classes.dex" - ), - Maple( - maple="${MAPLE_ROOT}/../out/soong/host/linux-x86/bin/maple", - run=["mplipa"], - option={ - "mplipa": "--effectipa --quiet --inlinefunclist=${MAPLE_ROOT}/mrt/codetricks/profile.pv/inline_funcs.list" - }, - global_option="", - infile="${BENCHMARK_ACTION}/dex/classes.mpl > /dev/null" - ), - Maple( - maple="${MAPLE_ROOT}/../out/soong/host/linux-x86/bin/maple", - run=["me", "mpl2mpl", "mplcg"], - option={ - "me": "--inlinefunclist=${MAPLE_ROOT}/mrt/codetricks/profile.pv/inline_funcs.list -O2 --quiet --no-ignoreipa --gconly", - "mpl2mpl": "-regnativefunc --quiet -O2 --usewhiteclass --maplelinker --dump-muid --check_cl_invocation=${MAPLE_ROOT}/mrt/codetricks/profile.pv/classloaderInvocation.list --regnative-dynamic-only", - "mplcg": "-O2 --quiet --no-pie --nativeopt --verbose-asm --gen-c-macro-def --maplelinker --gsrc --duplicate_asm_list2=${MAPLE_ROOT}/mrt/compiler-rt/src/arch/arm64/fastFuncs.S --gconly --fPIC" - }, - global_option="--genVtableImpl", - infile="${BENCHMARK_ACTION}/dex/classes.mpl" - ), - Shell( - "${MAPLE_ROOT}/../prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang -target aarch64-linux-android -g -c -x assembler-with-cpp -D__ASSEMBLY__ -DUSE_32BIT_REF -DGCONLY=1 -MD -MF ${BENCHMARK_ACTION}/dex/classes.d -o ${BENCHMARK_ACTION}/dex/classes.o ${BENCHMARK_ACTION}/dex/classes.VtableImpl.s" - ), - Shell( - "${MAPLE_ROOT}/../prebuilts/clang/host/linux-x86/clang-r353983c/bin/llvm-objcopy --rename-section .debug_info=.maple_java_debug_info --rename-section .debug_abbrev=.maple_java_debug_abbrev --rename-section .debug_line=.maple_java_debug_line --rename-section .debug_aranges=.maple_java_debug_aranges --rename-section .debug_ranges=.maple_java_debug_ranges ${BENCHMARK_ACTION}/dex/classes.o" - ), - Shell( - "${MAPLE_ROOT}/../prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang++ -nostdlib -Wl,-soname,libmaple${BENCHMARK_ACTION}.so -Wl,--gc-sections -shared ${MAPLE_ROOT}/../out/soong/.intermediates/bionic/libc/crtbegin_so/android_arm64_armv8-a_core/crtbegin_so.o ${BENCHMARK_ACTION}/dex/classes.o -Wl,--whole-archive ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/STATIC_LIBRARIES/mrt_module_init_intermediates/mrt_module_init.a -Wl,--no-whole-archive ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/STATIC_LIBRARIES/libclang_rt.ubsan_minimal-aarch64-android_intermediates/libclang_rt.ubsan_minimal-aarch64-android.a ${MAPLE_ROOT}/../prebuilts/clang/host/linux-x86/clang-r353983c/lib64/clang/9.0.3/lib/linux//libclang_rt.builtins-aarch64-android.a ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/STATIC_LIBRARIES/libatomic_intermediates/libatomic.a ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/STATIC_LIBRARIES/libgcc_intermediates/libgcc.a -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined-version -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_stripped.a -fuse-ld=lld -Wl,--hash-style=gnu -Wl,--icf=safe -Wl,-z,max-page-size=4096 -target aarch64-linux-android -B${MAPLE_ROOT}/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wl,-T,${MAPLE_ROOT}/mrt/maplert/linker/maplelld.so.lds -Wl,-execute-only -Wl,--exclude-libs,libclang_rt.ubsan_minimal-aarch64-android.a -Wl,--no-undefined ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libmaplecore-all_intermediates/libmaplecore-all.so ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libmrt_intermediates/libmrt.so ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libcommon_bridge_intermediates/libcommon_bridge.so ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libc++_intermediates/libc++.so ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libc_intermediates/libc.so ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libm_intermediates/libm.so ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.so -o ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}Symbol.so ${MAPLE_ROOT}/../out/soong/.intermediates/bionic/libc/crtend_so/android_arm64_armv8-a_core/obj/bionic/libc/arch-common/bionic/crtend_so.o" - ), - Shell( - "CLANG_BIN=${MAPLE_ROOT}/../prebuilts/clang/host/linux-x86/clang-r353983c/bin CROSS_COMPILE=${MAPLE_ROOT}/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- XZ=${MAPLE_ROOT}/../prebuilts/build-tools/linux-x86/bin/xz ${MAPLE_ROOT}/../build/soong/scripts/strip.sh -i ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}Symbol.so -o ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so -d ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so.d --keep-mini-debug-info" - ), - Shell( - "(${MAPLE_ROOT}/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-readelf -d ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so | grep SONAME || echo \"No SONAME for ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so\") > ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so.toc.tmp;" - "${MAPLE_ROOT}/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-readelf --dyn-syms ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so | awk '{$2=\"\"; $3=\"\"; print}' >> ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so.toc.tmp;" - "mv ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so.toc.tmp ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so.toc;" - "cp ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so ${BENCHMARK_ACTION}" - ), - ], - "native_compile": [ - BenchmarkNative() - ] -} diff --git a/testsuite/driver/src/mode/GC_IFILE.py b/testsuite/driver/src/mode/GC_IFILE.py deleted file mode 100644 index 3968771ed8..0000000000 --- a/testsuite/driver/src/mode/GC_IFILE.py +++ /dev/null @@ -1,61 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -GC_IFILE = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_IFILE/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GC_IFILE/libcore-all.mplt -dexcatch -gconly -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --threads=4 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl --gconly", - "mplcg": "--O2 --quiet --threads=4 --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold --gconly" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GC_IFILE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/GC_IFILE_NATIVE.py b/testsuite/driver/src/mode/GC_IFILE_NATIVE.py deleted file mode 100644 index a26247648f..0000000000 --- a/testsuite/driver/src/mode/GC_IFILE_NATIVE.py +++ /dev/null @@ -1,72 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -GC_IFILE_NATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GC_IFILE", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64_ifile" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_IFILE/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GC_IFILE/libcore-all.mplt -dexcatch -gconly -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --threads=4 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl --gconly", - "mplcg": "--O2 --quiet --threads=4 --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold --gconly" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GC_IFILE" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_COMMON_RC_IFILE.py b/testsuite/driver/src/mode/HIR2MPL_COMMON_RC_IFILE.py deleted file mode 100644 index d12907eed1..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_COMMON_RC_IFILE.py +++ /dev/null @@ -1,110 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_COMMON_RC_IFILE = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL_RC_IFILE/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-rc -mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE/libcore-all.mplt", - "me": "--O2 --quiet --threads=4 --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --threads=4 --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --with-ra-linear-scan --no-ico --no-cfgo --no-prepeep --no-peep --no-ebo --no-storeloadopt --no-globalopt --no-schedule --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.ohex", - xbootclasspath="libcore-all.ohex", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_COMMON_RC_IFILE_O0.py b/testsuite/driver/src/mode/HIR2MPL_COMMON_RC_IFILE_O0.py deleted file mode 100644 index 9fc85880e6..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_COMMON_RC_IFILE_O0.py +++ /dev/null @@ -1,109 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# -from api import * - -HIR2MPL_COMMON_RC_IFILE_O0 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL_RC_IFILE_O0/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-rc -mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE_O0/libcore-all.mplt", - "me": "--quiet --enable-ea --aot", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.ohex", - xbootclasspath="libcore-all.ohex", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_CSTO0.py b/testsuite/driver/src/mode/HIR2MPL_CSTO0.py deleted file mode 100644 index 0fe9e86be8..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_CSTO0.py +++ /dev/null @@ -1,68 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_CSTO0 = { - "compile": [ - Shell( - "cp ${OUT_ROOT}/target/product/public/lib/libcore-all.dex ." - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "", - "me": "--quiet --ignore-inferred-ret-type --gconly", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --maplelinker-nolocal", - "mplcg": "--quiet --no-pie --verbose-asm --gen-c-macro-def --gconly --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Shell( - "mv ${APP}.mpl serial_${APP}.mpl;" - "mv ${APP}.VtableImpl.mpl serial_${APP}.VtableImpl.mpl;" - "mv ${APP}.VtableImpl.s serial_${APP}.VtableImpl.s" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "--np 4", - "me": "--quiet --threads=4 --gconly", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --maplelinker-nolocal", - "mplcg": "--quiet --no-pie --verbose-asm --gen-c-macro-def --gconly --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Shell( - "mv ${APP}.mpl parallel_${APP}.mpl;" - "mv ${APP}.VtableImpl.mpl parallel_${APP}.VtableImpl.mpl;" - "mv ${APP}.VtableImpl.s parallel_${APP}.VtableImpl.s" - ) - ], - "check": [ - Shell( - "diff serial_${APP}.mpl parallel_${APP}.mpl" - ), - Shell( - "diff serial_${APP}.VtableImpl.mpl parallel_${APP}.VtableImpl.mpl" - ), - Shell( - "diff serial_${APP}.VtableImpl.s parallel_${APP}.VtableImpl.s" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_CSTO2.py b/testsuite/driver/src/mode/HIR2MPL_CSTO2.py deleted file mode 100644 index 961a8777c0..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_CSTO2.py +++ /dev/null @@ -1,68 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_CSTO2 = { - "compile": [ - Shell( - "cp ${OUT_ROOT}/target/product/public/lib/libcore-all.dex ." - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --ignore-inferred-ret-type --gconly --movinggc --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --gen-c-macro-def --gconly --movinggc --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Shell( - "mv ${APP}.mpl serial_${APP}.mpl;" - "mv ${APP}.VtableImpl.mpl serial_${APP}.VtableImpl.mpl;" - "mv ${APP}.VtableImpl.s serial_${APP}.VtableImpl.s" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "--np 4", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --threads=4 --gconly --movinggc --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --gen-c-macro-def --gconly --movinggc --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Shell( - "mv ${APP}.mpl parallel_${APP}.mpl;" - "mv ${APP}.VtableImpl.mpl parallel_${APP}.VtableImpl.mpl;" - "mv ${APP}.VtableImpl.s parallel_${APP}.VtableImpl.s" - ) - ], - "check": [ - Shell( - "diff serial_${APP}.mpl parallel_${APP}.mpl" - ), - Shell( - "diff serial_${APP}.VtableImpl.mpl parallel_${APP}.VtableImpl.mpl" - ), - Shell( - "diff serial_${APP}.VtableImpl.s parallel_${APP}.VtableImpl.s" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_DEXO0.py b/testsuite/driver/src/mode/HIR2MPL_DEXO0.py deleted file mode 100644 index e2e47b7b83..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_DEXO0.py +++ /dev/null @@ -1,65 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_DEXO0 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO0/libcore-all.mplt", - "me": "--quiet --gconly", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly", - "mplcg": "--quiet --no-pie --fPIC --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO0", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - xbootclasspath="libcore-all.so", - garbage_collection_kind="GC", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_DEXO0_NATIVE.py b/testsuite/driver/src/mode/HIR2MPL_DEXO0_NATIVE.py deleted file mode 100644 index 1b44c5e94a..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_DEXO0_NATIVE.py +++ /dev/null @@ -1,76 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_DEXO0_NATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO0", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO0/libcore-all.mplt", - "me": "--quiet --gconly", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly", - "mplcg": "--quiet --no-pie --fPIC --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO0", - model="arm64", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO0" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_DEXO2.py b/testsuite/driver/src/mode/HIR2MPL_DEXO2.py deleted file mode 100644 index cf0106ccde..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_DEXO2.py +++ /dev/null @@ -1,66 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_DEXO2 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2/libcore-all.mplt", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_DEXO2_JCK.py b/testsuite/driver/src/mode/HIR2MPL_DEXO2_JCK.py deleted file mode 100644 index 08a0894b40..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_DEXO2_JCK.py +++ /dev/null @@ -1,67 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_DEXO2_JCK = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2/libcore-all.mplt", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --threads=2 --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --inlineCache=1 --gen-pgo-report --gconly", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2", - "../../lib", - ".", - "${OUT_ROOT}/target/product/public/lib" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_DEXO2_JTREG.py b/testsuite/driver/src/mode/HIR2MPL_DEXO2_JTREG.py deleted file mode 100644 index 488c3d3064..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_DEXO2_JTREG.py +++ /dev/null @@ -1,65 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_DEXO2_JTREG = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2/libcore-all.mplt", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --threads=2 --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --inlineCache=1 --gen-pgo-report --gconly", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${CLASSPATH}", - main="${MAIN}", - args="${ARGS}", - return_value_list=[0, 95] - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_DEXO2_NATIVE.py b/testsuite/driver/src/mode/HIR2MPL_DEXO2_NATIVE.py deleted file mode 100644 index 7728470140..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_DEXO2_NATIVE.py +++ /dev/null @@ -1,77 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_DEXO2_NATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2/libcore-all.mplt", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_DEXO2_RC.py b/testsuite/driver/src/mode/HIR2MPL_DEXO2_RC.py deleted file mode 100644 index 725ea71a7c..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_DEXO2_RC.py +++ /dev/null @@ -1,79 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_DEXO2_RC = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-rc -mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2_RC/libcore-all.mplt", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO2_RC", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2_RC", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - choice="num", - reg="ExpectResult", - file="cycle.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_DEXO2_RC_COMMON.py b/testsuite/driver/src/mode/HIR2MPL_DEXO2_RC_COMMON.py deleted file mode 100644 index c43c52d24e..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_DEXO2_RC_COMMON.py +++ /dev/null @@ -1,116 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_DEXO2_RC_COMMON = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-rc -mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2_RC/libcore-all.mplt", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO2_RC", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2_RC", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2_RC", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2_RC", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.so", - xbootclasspath="libcore-all.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_DEXO2_RC_NATIVE.py b/testsuite/driver/src/mode/HIR2MPL_DEXO2_RC_NATIVE.py deleted file mode 100644 index 6a2f7f22fe..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_DEXO2_RC_NATIVE.py +++ /dev/null @@ -1,129 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_DEXO2_RC_NATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2_RC", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "--dump-comment --dump-LOC --rc --mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2_RC/libcore-all.mplt", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO2_RC", - model="arm64", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2_RC" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2_RC" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2_RC" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.so", - xbootclasspath="libcore-all.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_IFILE.py b/testsuite/driver/src/mode/HIR2MPL_IFILE.py deleted file mode 100644 index 488d88f060..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_IFILE.py +++ /dev/null @@ -1,60 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_IFILE = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL_IFILE/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE/libcore-all.mplt", - "me": "--gconly --O2 --quiet --threads=4 --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--gconly --O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--gconly --O2 --quiet --threads=4 --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --with-ra-linear-scan --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_IFILE_NATIVE.py b/testsuite/driver/src/mode/HIR2MPL_IFILE_NATIVE.py deleted file mode 100644 index d923a4efc3..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_IFILE_NATIVE.py +++ /dev/null @@ -1,71 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_IFILE_NATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64_ifile" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL_IFILE/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE/libcore-all.mplt", - "me": "--gconly --O2 --quiet --threads=4 --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--gconly --O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--gconly --O2 --quiet --threads=4 --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_IFILE_O0.py b/testsuite/driver/src/mode/HIR2MPL_IFILE_O0.py deleted file mode 100644 index 14b7108082..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_IFILE_O0.py +++ /dev/null @@ -1,60 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_IFILE_O0 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL_IFILE_O0/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE_O0/libcore-all.mplt", - "me": "--gconly --quiet --enable-ea", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl --gconly", - "mplcg": "--quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold --gconly" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_NATIVE_RC_IFILE.py b/testsuite/driver/src/mode/HIR2MPL_NATIVE_RC_IFILE.py deleted file mode 100644 index 420033c50a..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_NATIVE_RC_IFILE.py +++ /dev/null @@ -1,123 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_NATIVE_RC_IFILE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64_ifile" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL_RC_IFILE/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "--dump-comment --dump-LOC --rc --mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE/libcore-all.mplt", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.ohex", - xbootclasspath="libcore-all.ohex", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_NATIVE_RC_IFILEEH.py b/testsuite/driver/src/mode/HIR2MPL_NATIVE_RC_IFILEEH.py deleted file mode 100644 index 679575e0bd..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_NATIVE_RC_IFILEEH.py +++ /dev/null @@ -1,71 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_NATIVE_RC_IFILEEH = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64_ifile" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL_RC_IFILE/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "--dump-comment --dump-LOC --rc --mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE/libcore-all.mplt", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_PANDAO0.py b/testsuite/driver/src/mode/HIR2MPL_PANDAO0.py deleted file mode 100644 index 27c5a50bfe..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_PANDAO0.py +++ /dev/null @@ -1,70 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_PANDAO0 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java", "${EXTRA_JAVA_FILE}"] - ), - Class2panda( - class2panda="${OUT_ROOT}/target/product/public/bin/c2p", - infile=".", - outfile="${APP}.bin" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO0/libcore-all.mplt", - "me": "--quiet --gconly", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly", - "mplcg": "--quiet --no-pie --fPIC --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.bin" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO0", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - xbootclasspath="libcore-all.so", - garbage_collection_kind="GC", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_PANDAO0_NATIVE.py b/testsuite/driver/src/mode/HIR2MPL_PANDAO0_NATIVE.py deleted file mode 100644 index a6a16f9fe2..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_PANDAO0_NATIVE.py +++ /dev/null @@ -1,81 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_PANDAO0_NATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO0", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Class2panda( - class2panda="${OUT_ROOT}/target/product/public/bin/c2p", - infile=".", - outfile="${APP}.bin" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO0/libcore-all.mplt", - "me": "--quiet --gconly", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly", - "mplcg": "--quiet --no-pie --fPIC --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.bin" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO0", - model="arm64", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO0" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_PANDAO2.py b/testsuite/driver/src/mode/HIR2MPL_PANDAO2.py deleted file mode 100644 index 598468fd4b..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_PANDAO2.py +++ /dev/null @@ -1,71 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_PANDAO2 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java", "${EXTRA_JAVA_FILE}"] - ), - Class2panda( - class2panda="${OUT_ROOT}/target/product/public/bin/c2p", - infile=".", - outfile="${APP}.bin" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2/libcore-all.mplt", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.bin" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_PANDAO2_JCK.py b/testsuite/driver/src/mode/HIR2MPL_PANDAO2_JCK.py deleted file mode 100644 index 7db6156cc2..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_PANDAO2_JCK.py +++ /dev/null @@ -1,56 +0,0 @@ -from api import * - -HIR2MPL_PANDAO2_JCK = { - "compile": [ - Unzip( - file="${APP}.jar", - target_path="${APP}" - ), - Class2panda( - class2panda="${OUT_ROOT}/target/product/public/bin/c2p", - infile="${APP}", - outfile="${APP}.bin" - ), - Shell( - "rm -rf ${APP}" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2/libcore-all.mplt", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --threads=2 --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --inlineCache=1 --gen-pgo-report --gconly", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.bin" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2", - "../../lib", - ".", - "${OUT_ROOT}/target/product/public/lib" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_PANDAO2_JTREG.py b/testsuite/driver/src/mode/HIR2MPL_PANDAO2_JTREG.py deleted file mode 100644 index 2f053d6f3e..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_PANDAO2_JTREG.py +++ /dev/null @@ -1,68 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_PANDAO2_JTREG = { - "compile": [ - Unzip( - file="${APP}.jar", - target_path="${APP}" - ), - Class2panda( - class2panda="${OUT_ROOT}/target/product/public/bin/c2p", - infile="${APP}", - outfile="${APP}.bin" - ), - Shell( - "rm -rf ${APP}" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2/libcore-all.mplt", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --threads=2 --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --inlineCache=1 --gen-pgo-report --gconly", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.bin" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${CLASSPATH}", - main="${MAIN}", - args="${ARGS}", - return_value_list=[0, 95] - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_PANDAO2_NATIVE.py b/testsuite/driver/src/mode/HIR2MPL_PANDAO2_NATIVE.py deleted file mode 100644 index 77141aef90..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_PANDAO2_NATIVE.py +++ /dev/null @@ -1,82 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_PANDAO2_NATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Class2panda( - class2panda="${OUT_ROOT}/target/product/public/bin/c2p", - infile=".", - outfile="${APP}.bin" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL/maple", - run=["hir2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2/libcore-all.mplt", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.bin" - ), - Linker( - lib="host-x86_64-HIR2MPL_DEXO2", - model="arm64", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_DEXO2" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_RC_IFILE.py b/testsuite/driver/src/mode/HIR2MPL_RC_IFILE.py deleted file mode 100644 index e9a0d1d4a8..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_RC_IFILE.py +++ /dev/null @@ -1,73 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -HIR2MPL_RC_IFILE = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL_RC_IFILE/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-rc -mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE/libcore-all.mplt", - "me": "--O2 --quiet --threads=4 --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --threads=4 --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - choice="num", - reg="ExpectResult", - file="cycle.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/HIR2MPL_RC_IFILE_O0.py b/testsuite/driver/src/mode/HIR2MPL_RC_IFILE_O0.py deleted file mode 100644 index b1a0b366ef..0000000000 --- a/testsuite/driver/src/mode/HIR2MPL_RC_IFILE_O0.py +++ /dev/null @@ -1,72 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# -from api import * - -HIR2MPL_RC_IFILE_O0 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL_RC_IFILE_O0/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-rc -mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE_O0/libcore-all.mplt", - "me": "--quiet --enable-ea --aot", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - choice="num", - reg="ExpectResult", - file="cycle.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/IFILE.py b/testsuite/driver/src/mode/IFILE.py deleted file mode 100644 index b5c8965bff..0000000000 --- a/testsuite/driver/src/mode/IFILE.py +++ /dev/null @@ -1,111 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -IFILE = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_IFILE/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --threads=4 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --threads=4 --quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.ohex", - xbootclasspath="libcore-all.ohex", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/IFILENATIVE.py b/testsuite/driver/src/mode/IFILENATIVE.py deleted file mode 100644 index d492fb938e..0000000000 --- a/testsuite/driver/src/mode/IFILENATIVE.py +++ /dev/null @@ -1,124 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -IFILENATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64_ifile" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_IFILE/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.ohex", - xbootclasspath="libcore-all.ohex", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/IFILENATIVEEH.py b/testsuite/driver/src/mode/IFILENATIVEEH.py deleted file mode 100644 index 9b4f97aa46..0000000000 --- a/testsuite/driver/src/mode/IFILENATIVEEH.py +++ /dev/null @@ -1,72 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -IFILENATIVEEH = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64_ifile" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_IFILE/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--save-temps --ifile --aot", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/IR.py b/testsuite/driver/src/mode/IR.py deleted file mode 100644 index 3b2089b5d9..0000000000 --- a/testsuite/driver/src/mode/IR.py +++ /dev/null @@ -1,32 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -IR = { - "compile": [ - Irbuild( - irbuild="${OUT_ROOT}/target/product/maple_arm64/bin/irbuild", - infile="${APP}.mpl" - ), - Irbuild( - irbuild="${OUT_ROOT}/target/product/maple_arm64/bin/irbuild", - infile="${APP}.irb.mpl" - ), - CheckFileEqual( - file1="${APP}.irb.mpl", - file2="${APP}.irb.irb.mpl" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JASMJBC2MPL_LIBCORE.py b/testsuite/driver/src/mode/JASMJBC2MPL_LIBCORE.py deleted file mode 100644 index 9ac744fd9f..0000000000 --- a/testsuite/driver/src/mode/JASMJBC2MPL_LIBCORE.py +++ /dev/null @@ -1,130 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JASMJBC2MPL_LIBCORE = { - "compile": [ - Shell( - "java -jar ${OUT_ROOT}/target/product/public/bin/asmtools.jar jasm *.jasm" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Shell( - "jar -cvfe Main.jar Main *.class" - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="Main.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_JBC2MPL_LIBCORE/maple", - run=["jbc2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "jbc2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JBC2MPL_LIBCORE/libcore-all.mplt -use-string-factory", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.jar" - ), - Linker( - lib="host-x86_64-JASMJBC2MPL_LIBCORE", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JASMJBC2MPL_LIBCORE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JASMJBC2MPL_LIBCORE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JASMJBC2MPL_LIBCORE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JASMO0.py b/testsuite/driver/src/mode/JASMO0.py deleted file mode 100644 index ce99eda667..0000000000 --- a/testsuite/driver/src/mode/JASMO0.py +++ /dev/null @@ -1,135 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JASMO0 = { - "compile": [ - Shell( - "java -jar ${OUT_ROOT}/target/product/public/bin/asmtools.jar jasm *.jasm" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Shell( - "jar -cvfe Main.jar Main *.class" - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="Main.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O0", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/JASMO2.py b/testsuite/driver/src/mode/JASMO2.py deleted file mode 100644 index b739b5a356..0000000000 --- a/testsuite/driver/src/mode/JASMO2.py +++ /dev/null @@ -1,131 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JASMO2 = { - "compile": [ - Shell( - "java -jar ${OUT_ROOT}/target/product/public/bin/asmtools.jar jasm *.jasm" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Shell( - "jar -cvfe Main.jar Main *.class" - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="Main.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/JASM_O0.py b/testsuite/driver/src/mode/JASM_O0.py deleted file mode 100644 index 8aaf58a66a..0000000000 --- a/testsuite/driver/src/mode/JASM_O0.py +++ /dev/null @@ -1,115 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JASM_O0 = { - "compile": [ - Jasm2jar( - file=["${APP}.jasm", "../lib/Printer.jasm"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/maple", - run=["jbc2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "jbc2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0/libcore-all.mplt -use-string-factory", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.jar" - ), - Linker( - lib="host-x86_64-OPS_O0", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JASM_O2.py b/testsuite/driver/src/mode/JASM_O2.py deleted file mode 100644 index 7e2eeee50a..0000000000 --- a/testsuite/driver/src/mode/JASM_O2.py +++ /dev/null @@ -1,110 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JASM_O2 = { - "compile": [ - Jasm2jar( - file=["${APP}.jasm", "../lib/Printer.jasm"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/maple", - run=["jbc2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "jbc2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2/libcore-all.mplt -use-string-factory", - "me": "-O2 --quiet", - "mpl2mpl": "-O2 --quiet --regnativefunc --no-nativeopt --maplelinker", - "mplcg": "--quiet -O2 --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.jar" - ), - Linker( - lib="host-x86_64-OPS_O2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JBC2MPL_LIBCORE.py b/testsuite/driver/src/mode/JBC2MPL_LIBCORE.py deleted file mode 100644 index fd3d428e0d..0000000000 --- a/testsuite/driver/src/mode/JBC2MPL_LIBCORE.py +++ /dev/null @@ -1,120 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JBC2MPL_LIBCORE = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_JBC2MPL_LIBCORE/maple", - run=["jbc2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "jbc2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JBC2MPL_LIBCORE/libcore-all.mplt -use-string-factory", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.jar" - ), - Linker( - lib="host-x86_64-JBC2MPL_LIBCORE", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JBC2MPL_LIBCORE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JBC2MPL_LIBCORE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JBC2MPL_LIBCORE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JBC2MPL_LIBCORENATIVE.py b/testsuite/driver/src/mode/JBC2MPL_LIBCORENATIVE.py deleted file mode 100644 index ac71634421..0000000000 --- a/testsuite/driver/src/mode/JBC2MPL_LIBCORENATIVE.py +++ /dev/null @@ -1,132 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JBC2MPL_LIBCORENATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JBC2MPL_LIBCORE", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_JBC2MPL_LIBCORE/maple", - run=["jbc2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "jbc2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JBC2MPL_LIBCORE/libcore-all.mplt -use-string-factory", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.jar" - ), - Linker( - lib="host-x86_64-JBC2MPL_LIBCORE", - model="arm64", - infile="${APP}", - - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JBC2MPL_LIBCORE" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JBC2MPL_LIBCORE" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JBC2MPL_LIBCORE" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JBC2MPL_LIBCORERC.py b/testsuite/driver/src/mode/JBC2MPL_LIBCORERC.py deleted file mode 100644 index 99cbd80d1b..0000000000 --- a/testsuite/driver/src/mode/JBC2MPL_LIBCORERC.py +++ /dev/null @@ -1,79 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JBC2MPL_LIBCORERC = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_JBC2MPL_LIBCORE/maple", - run=["jbc2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "jbc2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JBC2MPL_LIBCORE/libcore-all.mplt -use-string-factory", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.jar" - ), - Linker( - lib="host-x86_64-JBC2MPL_LIBCORE", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-JBC2MPL_LIBCORE", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - choice="num", - reg="ExpectResult", - file="cycle.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JBC_O0.py b/testsuite/driver/src/mode/JBC_O0.py deleted file mode 100644 index 7a9ba06036..0000000000 --- a/testsuite/driver/src/mode/JBC_O0.py +++ /dev/null @@ -1,120 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JBC_O0 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/maple", - run=["jbc2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "jbc2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0/libcore-all.mplt -use-string-factory", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.jar" - ), - Linker( - lib="host-x86_64-OPS_O0", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JBC_O2.py b/testsuite/driver/src/mode/JBC_O2.py deleted file mode 100644 index 22a70e961a..0000000000 --- a/testsuite/driver/src/mode/JBC_O2.py +++ /dev/null @@ -1,115 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JBC_O2 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/maple", - run=["jbc2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "jbc2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2/libcore-all.mplt -use-string-factory", - "me": "-O2 --quiet", - "mpl2mpl": "-O2 --quiet --regnativefunc --no-nativeopt --maplelinker", - "mplcg": "--quiet -O2 --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.jar" - ), - Linker( - lib="host-x86_64-OPS_O2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JCK_AOT.py b/testsuite/driver/src/mode/JCK_AOT.py deleted file mode 100644 index 11cc888bbe..0000000000 --- a/testsuite/driver/src/mode/JCK_AOT.py +++ /dev/null @@ -1,66 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCK_AOT = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_AOT/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-AOT/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps --aot", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-AOT", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-AOT", - "../../lib", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} diff --git a/testsuite/driver/src/mode/JCK_DEOPT.py b/testsuite/driver/src/mode/JCK_DEOPT.py deleted file mode 100644 index 7d189362ac..0000000000 --- a/testsuite/driver/src/mode/JCK_DEOPT.py +++ /dev/null @@ -1,60 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCK_DEOPT = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64-clang-release/bin/bin_HIR2MPL_IFILE/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE/libcore-all.mplt", - "me": "--gconly --O2 --quiet --threads=4 --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--gconly --O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--gconly --O2 --quiet --threads=4 --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --with-ra-linear-scan --no-ico --no-cfgo --no-prepeep --no-peep --no-ebo --no-storeloadopt --no-globalopt --no-schedule --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--aot --deopt --ifile --save-temps", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE", - "../../lib", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} diff --git a/testsuite/driver/src/mode/JCK_GCO2.py b/testsuite/driver/src/mode/JCK_GCO2.py deleted file mode 100644 index 7c8483b2c0..0000000000 --- a/testsuite/driver/src/mode/JCK_GCO2.py +++ /dev/null @@ -1,66 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCK_GCO2 = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO2/libcore-all.mplt -anti-proguard-auto -dexcatch -gen-stringfieldvalue -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck -checktool -check-incomplete -incomplete-whitelist=${OUT_ROOT}/target/product/public/lib/codetricks/compile/incomplete.list -incomplete-detail -opt-switch-disable -incomplete-whitelist-auto -gconly", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --threads=2 --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --inlineCache=1 --gen-pgo-report --gconly", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-GCO2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO2", - "../../lib", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} diff --git a/testsuite/driver/src/mode/JCK_GC_IFILE.py b/testsuite/driver/src/mode/JCK_GC_IFILE.py deleted file mode 100644 index aaf1533bf6..0000000000 --- a/testsuite/driver/src/mode/JCK_GC_IFILE.py +++ /dev/null @@ -1,61 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCK_GC_IFILE = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_IFILE/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GC_IFILE/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck -gconly", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --threads=4 --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl --gconly", - "mplcg": "--O2 --quiet --threads=4 --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold --gconly" - }, - global_option="--aot --save-temps --ifile", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GC_IFILE", - "../../lib", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} diff --git a/testsuite/driver/src/mode/JCK_HIR2MPL_IFILE.py b/testsuite/driver/src/mode/JCK_HIR2MPL_IFILE.py deleted file mode 100644 index e347591967..0000000000 --- a/testsuite/driver/src/mode/JCK_HIR2MPL_IFILE.py +++ /dev/null @@ -1,60 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCK_HIR2MPL_IFILE = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64-clang-release/bin/bin_HIR2MPL_IFILE/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE/libcore-all.mplt", - "me": "--gconly --O2 --quiet --threads=4 --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--gconly --O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--gconly --O2 --quiet --threads=4 --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--aot --save-temps --ifile", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE", - "../../lib", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} diff --git a/testsuite/driver/src/mode/JCK_HIR2MPL_IFILE_O0.py b/testsuite/driver/src/mode/JCK_HIR2MPL_IFILE_O0.py deleted file mode 100644 index 5612323dd6..0000000000 --- a/testsuite/driver/src/mode/JCK_HIR2MPL_IFILE_O0.py +++ /dev/null @@ -1,60 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCK_HIR2MPL_IFILE_O0 = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64-clang-release/bin/bin_HIR2MPL_IFILE_O0/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE_O0/libcore-all.mplt", - "me": "--gconly --quiet --enable-ea", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl --gconly", - "mplcg": "--quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold --gconly" - }, - global_option="--aot --save-temps --ifile", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_IFILE_O0", - "../../lib", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} diff --git a/testsuite/driver/src/mode/JCK_HIR2MPL_RC_IFILE.py b/testsuite/driver/src/mode/JCK_HIR2MPL_RC_IFILE.py deleted file mode 100644 index 9ec39aadf2..0000000000 --- a/testsuite/driver/src/mode/JCK_HIR2MPL_RC_IFILE.py +++ /dev/null @@ -1,61 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCK_HIR2MPL_RC_IFILE = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL_RC_IFILE/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-rc -mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE/libcore-all.mplt", - "me": "--O2 --quiet --threads=4 --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --threads=4 --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --with-ra-linear-scan --no-ico --no-cfgo --no-prepeep --no-peep --no-ebo --no-storeloadopt --no-globalopt --no-schedule --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--aot --save-temps --ifile", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE", - "../../lib", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} - diff --git a/testsuite/driver/src/mode/JCK_HIR2MPL_RC_IFILE_O0.py b/testsuite/driver/src/mode/JCK_HIR2MPL_RC_IFILE_O0.py deleted file mode 100644 index fc58505421..0000000000 --- a/testsuite/driver/src/mode/JCK_HIR2MPL_RC_IFILE_O0.py +++ /dev/null @@ -1,61 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCK_HIR2MPL_RC_IFILE_O0 = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_HIR2MPL_RC_IFILE_O0/maple", - run=["hir2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "hir2mpl": "-rc -mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE_O0/libcore-all.mplt", - "me": "--quiet --enable-ea --aot", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--aot --save-temps --ifile", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-HIR2MPL_RC_IFILE_O0", - "../../lib", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} - diff --git a/testsuite/driver/src/mode/JCK_IFILE.py b/testsuite/driver/src/mode/JCK_IFILE.py deleted file mode 100644 index 0899e54165..0000000000 --- a/testsuite/driver/src/mode/JCK_IFILE.py +++ /dev/null @@ -1,61 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCK_IFILE = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64-clang-release/bin/bin_IFILE/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --threads=4 --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --threads=4 --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/maple_arm64-clang-release/lib/codetricks/arch/arm64/duplicateFunc.s --nativeopt --fPIC --filetype=obj --no-proepilogue --no-prelsra --no-const-fold" - }, - global_option="--aot --save-temps --ifile", - infile="${APP}.dex" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-IFILE", - "../../lib", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.ohex", - infile="${APP}.ohex", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} diff --git a/testsuite/driver/src/mode/JCK_MOVO2.py b/testsuite/driver/src/mode/JCK_MOVO2.py deleted file mode 100644 index 4c076f213e..0000000000 --- a/testsuite/driver/src/mode/JCK_MOVO2.py +++ /dev/null @@ -1,64 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCK_MOVO2 = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-MOVO2/libcore-all.mplt -anti-proguard-auto -dexcatch -gen-stringfieldvalue -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck -checktool -check-incomplete -incomplete-whitelist=${OUT_ROOT}/target/product/public/lib/codetricks/compile/incomplete.list -incomplete-detail -opt-switch-disable -incomplete-whitelist-auto -gconly", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --threads=2 --gconly --movinggc", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --inlineCache=1 --gen-pgo-report --gconly --movinggc", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly --movinggc" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - QemuLinkerArm64( - lib="host-x86_64-MOVO2" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-MOVO2", - "../../lib", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} diff --git a/testsuite/driver/src/mode/JCK_O2.py b/testsuite/driver/src/mode/JCK_O2.py deleted file mode 100644 index 60a128f241..0000000000 --- a/testsuite/driver/src/mode/JCK_O2.py +++ /dev/null @@ -1,66 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCK_O2 = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "../../lib", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} diff --git a/testsuite/driver/src/mode/JCK_TGCO2.py b/testsuite/driver/src/mode/JCK_TGCO2.py deleted file mode 100644 index a188999ca1..0000000000 --- a/testsuite/driver/src/mode/JCK_TGCO2.py +++ /dev/null @@ -1,58 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCK_TGCO2 = { - "compile": [ - Shell( - "adb shell \"mkdir -p /data/maple/${CASE}/${OPT}\"" - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Shell( - "adb push ${APP}.dex /data/maple/${CASE}/${OPT}/" - ), - Shell( - "adb shell \"/data/maple/maple -O2 --gconly --save-temps --hir2mpl-opt=\\\"-Xbootclasspath /apex/com.android.runtime/javalib/core-oj.jar,/apex/com.android.runtime/javalib/core-libart.jar\\\" --mplcg-opt=\\\"--no-ebo --no-cfgo --no-schedule\\\" --infile /data/maple/${CASE}/${OPT}/${APP}.dex\"" - ), - Shell( - "adb pull /data/maple/${CASE}/${OPT}/${APP}.VtableImpl.s ./" - ), - Shell( - "${MAPLE_ROOT}/zeiss/prebuilt/sdk/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++ -O2 -x assembler-with-cpp -march=armv8-a -DUSE_32BIT_REF -c ${APP}.VtableImpl.s" - ), - Shell( - "${MAPLE_ROOT}/zeiss/prebuilt/sdk/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++ ${APP}.VtableImpl.o -O2 -Wall -Werror -Wno-unused-command-line-argument -fstack-protector-strong -std=c++14 -nostdlibinc -march=armv8-a -fPIC -shared ${MAPLE_ROOT}/out/target/product/maple_arm64/lib/mrt_module_init.cpp -fuse-ld=lld -rdynamic -L${MAPLE_ROOT}/out/target/product/maple_arm64/lib/android -lmaplecore-all -lcommon_bridge -lc++ -lc -lm -ldl -Wl,-T${MAPLE_ROOT}/out/target/product/public/lib/linker/maplelld.so.lds -o ./${APP}.so" - ), - Shell( - "adb push ${APP}.so /data/maple/${CASE}/${OPT}/" - ) - ], - "run": [ - Shell( - "adb shell \"export LD_LIBRARY_PATH=/vendor/lib64:/system/lib64:/data/maple;mplsh -Xgconly -cp /data/maple/${CASE}/${OPT}/${APP}.so ${MAIN} ${ARGS}\" || [ $? -eq 95 ]" - ), - Shell( - "adb shell \"rm -rf /data/maple/${CASE}/${OPT}\"" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JCK_ZTERP.py b/testsuite/driver/src/mode/JCK_ZTERP.py deleted file mode 100644 index f0aa2cc0b1..0000000000 --- a/testsuite/driver/src/mode/JCK_ZTERP.py +++ /dev/null @@ -1,48 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCK_ZTERP = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "../../lib", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - main="${MAIN}", - args="${ARGS}", - return_value_list=[95] - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JCOD_O0.py b/testsuite/driver/src/mode/JCOD_O0.py deleted file mode 100644 index 6b2915f2eb..0000000000 --- a/testsuite/driver/src/mode/JCOD_O0.py +++ /dev/null @@ -1,115 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCOD_O0 = { - "compile": [ - Jcod2jar( - file=["${APP}.jcod"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/maple", - run=["jbc2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "jbc2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0/libcore-all.mplt -use-string-factory", - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.jar" - ), - Linker( - lib="host-x86_64-OPS_O0", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JCOD_O2.py b/testsuite/driver/src/mode/JCOD_O2.py deleted file mode 100644 index d61868b8d0..0000000000 --- a/testsuite/driver/src/mode/JCOD_O2.py +++ /dev/null @@ -1,110 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JCOD_O2 = { - "compile": [ - Jcod2jar( - file=["${APP}.jcod"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/maple", - run=["jbc2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "jbc2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2/libcore-all.mplt -use-string-factory", - "me": "-O2 --quiet", - "mpl2mpl": "-O2 --quiet --regnativefunc --no-nativeopt --maplelinker", - "mplcg": "--quiet -O2 --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.jar" - ), - Linker( - lib="host-x86_64-OPS_O2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JTREG_GCO2.py b/testsuite/driver/src/mode/JTREG_GCO2.py deleted file mode 100644 index e6c3fda76c..0000000000 --- a/testsuite/driver/src/mode/JTREG_GCO2.py +++ /dev/null @@ -1,65 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JTREG_GCO2 = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO2/libcore-all.mplt -anti-proguard-auto -dexcatch -gen-stringfieldvalue -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck -checktool -check-incomplete -incomplete-whitelist=${OUT_ROOT}/target/product/public/lib/codetricks/compile/incomplete.list -incomplete-detail -opt-switch-disable -incomplete-whitelist-auto -gconly", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --threads=2 --gconly", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --inlineCache=1 --gen-pgo-report --gconly", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-GCO2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-GCO2", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${CLASSPATH}", - main="${MAIN}", - args="${ARGS}", - return_value_list=[0, 95] - ) - ] -} diff --git a/testsuite/driver/src/mode/JTREG_MOVO2.py b/testsuite/driver/src/mode/JTREG_MOVO2.py deleted file mode 100644 index 336d5c4d47..0000000000 --- a/testsuite/driver/src/mode/JTREG_MOVO2.py +++ /dev/null @@ -1,63 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JTREG_MOVO2 = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-MOVO2/libcore-all.mplt -anti-proguard-auto -dexcatch -gen-stringfieldvalue -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck -checktool -check-incomplete -incomplete-whitelist=${OUT_ROOT}/target/product/public/lib/codetricks/compile/incomplete.list -incomplete-detail -opt-switch-disable -incomplete-whitelist-auto -gconly", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --threads=2 --gconly --movinggc", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --inlineCache=1 --gen-pgo-report --gconly --movinggc", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly --movinggc" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - QemuLinkerArm64( - lib="host-x86_64-MOVO2" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-MOVO2", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${CLASSPATH}", - main="${MAIN}", - args="${ARGS}", - return_value_list=[0, 95] - ) - ] -} diff --git a/testsuite/driver/src/mode/JTREG_O2.py b/testsuite/driver/src/mode/JTREG_O2.py deleted file mode 100644 index 2c44a56624..0000000000 --- a/testsuite/driver/src/mode/JTREG_O2.py +++ /dev/null @@ -1,65 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JTREG_O2 = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${CLASSPATH}", - main="${MAIN}", - args="${ARGS}", - return_value_list=[0, 95] - ) - ] -} diff --git a/testsuite/driver/src/mode/JTREG_TGCO2.py b/testsuite/driver/src/mode/JTREG_TGCO2.py deleted file mode 100644 index 179e59cb79..0000000000 --- a/testsuite/driver/src/mode/JTREG_TGCO2.py +++ /dev/null @@ -1,58 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JTREG_TGCO2 = { - "compile": [ - Shell( - "adb shell \"mkdir -p /data/maple/${CASE}/${OPT}\"" - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Shell( - "adb push ${APP}.dex /data/maple/${CASE}/${OPT}/" - ), - Shell( - "adb shell \"/data/maple/maple -O2 --gconly --save-temps --hir2mpl-opt=\\\"-Xbootclasspath /apex/com.android.runtime/javalib/core-oj.jar,/apex/com.android.runtime/javalib/core-libart.jar\\\" --mplcg-opt=\\\"--no-ebo --no-cfgo --no-schedule\\\" --infile /data/maple/${CASE}/${OPT}/${APP}.dex\"" - ), - Shell( - "adb pull /data/maple/${CASE}/${OPT}/${APP}.VtableImpl.s ./" - ), - Shell( - "${MAPLE_ROOT}/zeiss/prebuilt/sdk/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++ -O2 -x assembler-with-cpp -march=armv8-a -DUSE_32BIT_REF -c ${APP}.VtableImpl.s" - ), - Shell( - "${MAPLE_ROOT}/zeiss/prebuilt/sdk/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++ ${APP}.VtableImpl.o -O2 -Wall -Werror -Wno-unused-command-line-argument -fstack-protector-strong -std=c++14 -nostdlibinc -march=armv8-a -fPIC -shared ${MAPLE_ROOT}/out/target/product/maple_arm64/lib/mrt_module_init.cpp -fuse-ld=lld -rdynamic -L${MAPLE_ROOT}/out/target/product/maple_arm64/lib/android -lmaplecore-all -lcommon_bridge -lc++ -lc -lm -ldl -Wl,-T${MAPLE_ROOT}/out/target/product/public/lib/linker/maplelld.so.lds -o ./${APP}.so" - ), - Shell( - "adb push ${APP}.so /data/maple/${CASE}/${OPT}/" - ) - ], - "run": [ - Shell( - "adb shell \"export LD_LIBRARY_PATH=/vendor/lib64:/system/lib64:/data/maple;mplsh -Xgconly -cp /data/maple/${CASE}/${OPT}/${CLASSPATH} ${MAIN} ${ARGS}\" || [ $? -eq 95 ]" - ), - Shell( - "adb shell \"rm -rf /data/maple/${CASE}/${OPT}\"" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/JTREG_ZTERP.py b/testsuite/driver/src/mode/JTREG_ZTERP.py deleted file mode 100644 index f3fdc897e2..0000000000 --- a/testsuite/driver/src/mode/JTREG_ZTERP.py +++ /dev/null @@ -1,47 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -JTREG_ZTERP = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "." - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${CLASSPATH}", - main="${MAIN}", - args="${ARGS}", - return_value_list=[0, 95] - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/MAPLETI_ZTERP.py b/testsuite/driver/src/mode/MAPLETI_ZTERP.py deleted file mode 100644 index 092904adb7..0000000000 --- a/testsuite/driver/src/mode/MAPLETI_ZTERP.py +++ /dev/null @@ -1,130 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -MAPLETI_ZTERP = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${ZTERPAPP}.dex", - infile=["${ZTERPAPP}.java"], - usesimplejava=True - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-ZTERP", - model="arm64_mapleti", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_ZTERP": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh -agentpath:${MAPLE_ROOT}/out/target/product/maple_arm64-clang-release/lib/host-x86_64-ZTERP/dummy-agent.so -pluginpath:${MAPLE_ROOT}/out/target/product/maple_arm64-clang-release/lib/host-x86_64-ZTERP/mapleti.so", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so ", - infile="./MapleTiTest.dex:./MapleCode.so", #${CP}", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh -agentpath:${MAPLE_ROOT}/out/target/product/maple_arm64-clang-release/lib/host-x86_64-ZTERP/dummy-agent.so -pluginpath:${MAPLE_ROOT}/out/target/product/maple_arm64-clang-release/lib/host-x86_64-ZTERP/mapleti.so", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="./MapleTiTest.dex:./MapleCode.so", #${CP}", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh -agentpath:${MAPLE_ROOT}/out/target/product/maple_arm64-clang-release/lib/host-x86_64-ZTERP/dummy-agent.so -pluginpath:${MAPLE_ROOT}/out/target/product/maple_arm64-clang-release/lib/host-x86_64-ZTERP/mapleti.so", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so ", - infile="./MapleTiTest.dex:./MapleCode.so", #${CP}", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/MAPLETI_ZTERP_PANDA.py b/testsuite/driver/src/mode/MAPLETI_ZTERP_PANDA.py deleted file mode 100644 index 6b4cec348a..0000000000 --- a/testsuite/driver/src/mode/MAPLETI_ZTERP_PANDA.py +++ /dev/null @@ -1,135 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -MAPLETI_ZTERP_PANDA = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${ZTERPAPP}.dex", - infile=["${ZTERPAPP}.java"], - usesimplejava=True - ), - Class2panda( - class2panda="${OUT_ROOT}/target/product/public/bin/c2p", - infile="${ZTERPAPP}.class", - outfile="${ZTERPAPP}.bin" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-ZTERP", - model="arm64_mapleti", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_ZTERP": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh -agentpath:${MAPLE_ROOT}/out/target/product/maple_arm64-clang-release/lib/host-x86_64-ZTERP/dummy-agent.so -pluginpath:${MAPLE_ROOT}/out/target/product/maple_arm64-clang-release/lib/host-x86_64-ZTERP/mapleti.so", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so ", - infile="./MapleTiTest.bin:./MapleCode.so", #${CP}", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh -agentpath:${MAPLE_ROOT}/out/target/product/maple_arm64-clang-release/lib/host-x86_64-ZTERP/dummy-agent.so -pluginpath:${MAPLE_ROOT}/out/target/product/maple_arm64-clang-release/lib/host-x86_64-ZTERP/mapleti.so", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="./MapleTiTest.bin:./MapleCode.so", #${CP}", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh -agentpath:${MAPLE_ROOT}/out/target/product/maple_arm64-clang-release/lib/host-x86_64-ZTERP/dummy-agent.so -pluginpath:${MAPLE_ROOT}/out/target/product/maple_arm64-clang-release/lib/host-x86_64-ZTERP/mapleti.so", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so ", - infile="./MapleTiTest.bin:./MapleCode.so", #${CP}", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/MEMORY_CHECK.py b/testsuite/driver/src/mode/MEMORY_CHECK.py deleted file mode 100644 index c38f51f1d3..0000000000 --- a/testsuite/driver/src/mode/MEMORY_CHECK.py +++ /dev/null @@ -1,55 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -MEMORY_CHECK = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="valgrind ${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex", - redirection="output.log" - ), - CheckRegContain( - reg="definitely lost: 0 bytes in 0 blocks", - file="output.log" - ), - CheckRegContain( - reg="indirectly lost: 0 bytes in 0 blocks", - file="output.log" - ), - CheckRegContain( - reg="possibly lost: 0 bytes in 0 blocks", - file="output.log" - ), - ], - "run": [] -} diff --git a/testsuite/driver/src/mode/MOVO2.py b/testsuite/driver/src/mode/MOVO2.py deleted file mode 100644 index c75c5e035e..0000000000 --- a/testsuite/driver/src/mode/MOVO2.py +++ /dev/null @@ -1,66 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -MOVO2 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-MOVO2/libcore-all.mplt -anti-proguard-auto -dexcatch -gconly -gen-stringfieldvalue -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=32 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -opt-switch-disable -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --gconly --movinggc --no-localvar", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly --movinggc", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly --movinggc --no-localvar" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-MOVO2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-MOVO2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/MOVO2NATIVE.py b/testsuite/driver/src/mode/MOVO2NATIVE.py deleted file mode 100644 index facaa84d0a..0000000000 --- a/testsuite/driver/src/mode/MOVO2NATIVE.py +++ /dev/null @@ -1,77 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -MOVO2NATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-MOVO2", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-MOVO2/libcore-all.mplt -anti-proguard-auto -dexcatch -gconly -gen-stringfieldvalue -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=32 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -opt-switch-disable -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea --gconly --movinggc --no-localvar", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --gen-pgo-report --gconly --movinggc", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --gconly --movinggc --no-localvar" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-MOVO2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-MOVO2" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="GC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/O0.py b/testsuite/driver/src/mode/O0.py deleted file mode 100644 index 84e2338b54..0000000000 --- a/testsuite/driver/src/mode/O0.py +++ /dev/null @@ -1,120 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -O0 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O0", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/O0NATIVE.py b/testsuite/driver/src/mode/O0NATIVE.py deleted file mode 100644 index 6196a6d1dc..0000000000 --- a/testsuite/driver/src/mode/O0NATIVE.py +++ /dev/null @@ -1,131 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -O0NATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O0", - model="arm64", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/O0NATIVEEH.py b/testsuite/driver/src/mode/O0NATIVEEH.py deleted file mode 100644 index a6c1c9a437..0000000000 --- a/testsuite/driver/src/mode/O0NATIVEEH.py +++ /dev/null @@ -1,77 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -O0NATIVEEH = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O0", - model="arm64", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/O0RC.py b/testsuite/driver/src/mode/O0RC.py deleted file mode 100644 index 33f3618858..0000000000 --- a/testsuite/driver/src/mode/O0RC.py +++ /dev/null @@ -1,79 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -O0RC = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O0", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - choice="num", - reg="ExpectResult", - file="cycle.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/O0SMALI.py b/testsuite/driver/src/mode/O0SMALI.py deleted file mode 100644 index c2947526d6..0000000000 --- a/testsuite/driver/src/mode/O0SMALI.py +++ /dev/null @@ -1,155 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -O0SMALI = { - "smali2dex": [ - Smali2dex( - file=["${APP}.smali","${EXTRA_SMALI2DEX_FILE_1}"] - ) - ], - "dex2mpl":[ - Dex2mpl( - dex2mpl="${OUT_ROOT}/target/product/maple_arm64/bin/dex2mpl", - option="--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list ${EXTRA_DEX2MPL_OPTION}", - infile="${APP}.dex", - redirection="dex2mpl.log" - ) - ], - "check_reg_contain": [ - CheckRegContain( - reg="${REG}", - file="${FILE}" - ) - ], - "maple_mplipa_me_mpl2mpl_mplcg": [ - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "mplipa": "--quiet --effectipa", - "me": "", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.mpl" - ) - ], - "qemu_linker": [ - Linker( - lib="host-x86_64-O0", - model="arm64", - infile="${APP}" - ) - ], - "compile": [ - Smali2dex( - file=["${APP}.smali","${EXTRA_SMALI2DEX_FILE_2}","../lib/smali_util_Printer.smali","../lib/smali_util_ArrayI.smali"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - "me": "", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O0", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/O2.py b/testsuite/driver/src/mode/O2.py deleted file mode 100644 index c9b1bb5d18..0000000000 --- a/testsuite/driver/src/mode/O2.py +++ /dev/null @@ -1,116 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -O2 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.so", - xbootclasspath="libcore-all.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/O2NATIVE.py b/testsuite/driver/src/mode/O2NATIVE.py deleted file mode 100644 index 75159c5d90..0000000000 --- a/testsuite/driver/src/mode/O2NATIVE.py +++ /dev/null @@ -1,129 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -O2NATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O2", - model="arm64", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.so", - xbootclasspath="libcore-all.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/O2NATIVEEH.py b/testsuite/driver/src/mode/O2NATIVEEH.py deleted file mode 100644 index d55bfc0509..0000000000 --- a/testsuite/driver/src/mode/O2NATIVEEH.py +++ /dev/null @@ -1,77 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -O2NATIVEEH = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O2", - model="arm64", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/O2RC.py b/testsuite/driver/src/mode/O2RC.py deleted file mode 100644 index 6cf4c5510f..0000000000 --- a/testsuite/driver/src/mode/O2RC.py +++ /dev/null @@ -1,79 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -O2RC = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - choice="num", - reg="ExpectResult", - file="cycle.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/O2SMALI.py b/testsuite/driver/src/mode/O2SMALI.py deleted file mode 100644 index 763b9a10bc..0000000000 --- a/testsuite/driver/src/mode/O2SMALI.py +++ /dev/null @@ -1,151 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -O2SMALI = { - "smali2dex": [ - Smali2dex( - file=["${APP}.smali","${EXTRA_SMALI2DEX_FILE_1}"] - ) - ], - "dex2mpl": [ - Dex2mpl( - dex2mpl="${OUT_ROOT}/target/product/maple_arm64/bin/dex2mpl", - option="--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list ${EXTRA_DEX2MPL_OPTION}", - infile="${APP}.dex", - redirection="dex2mpl.log" - ) - ], - "check_reg_contain": [ - CheckRegContain( - reg="${REG}", - file="${FILE}" - ) - ], - "maple_mplipa_me_mpl2mpl_mplcg": [ - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "mplipa": "--quiet --effectipa", - "me": "", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.mpl" - ) - ], - "qemu_linker": [ - Linker( - lib="host-x86_64-O2", - model="arm64", - infile="${APP}" - ) - ], - "compile": [ - Smali2dex( - file=["${APP}.smali","${EXTRA_SMALI2DEX_FILE_2}","../lib/smali_util_Printer.smali","../lib/smali_util_ArrayI.smali"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-O2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/O2STMTPRE.py b/testsuite/driver/src/mode/O2STMTPRE.py deleted file mode 100644 index 2ad70b96ad..0000000000 --- a/testsuite/driver/src/mode/O2STMTPRE.py +++ /dev/null @@ -1,121 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -O2STMTPRE = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - CheckRegContain( - reg='"callassigned &MCC_GetOrInsertLiteral"', - file="${APP}.VtableImpl.mpl", - choice="num" - ), - Linker( - lib="host-x86_64-O2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.so", - xbootclasspath="libcore-all.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/O2SUBSUMERC.py b/testsuite/driver/src/mode/O2SUBSUMERC.py deleted file mode 100644 index 714d8ecc23..0000000000 --- a/testsuite/driver/src/mode/O2SUBSUMERC.py +++ /dev/null @@ -1,121 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -O2SUBSUMERC = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - CheckRegContain( - reg="MCCIncRef", - file="${APP}.VtableImpl.mpl", - choice="num" - ), - Linker( - lib="host-x86_64-O2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.so", - xbootclasspath="libcore-all.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/OPSIR.py b/testsuite/driver/src/mode/OPSIR.py deleted file mode 100644 index 6e430ee43c..0000000000 --- a/testsuite/driver/src/mode/OPSIR.py +++ /dev/null @@ -1,32 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -OPSIR = { - "compile": [ - Irbuild( - irbuild="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/irbuild", - infile="${APP}.mpl" - ), - Irbuild( - irbuild="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/irbuild", - infile="${APP}.irb.mpl" - ), - CheckFileEqual( - file1="${APP}.irb.mpl", - file2="${APP}.irb.irb.mpl" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/OPS_NATIVE_O0.py b/testsuite/driver/src/mode/OPS_NATIVE_O0.py deleted file mode 100644 index 58a4ab7cd4..0000000000 --- a/testsuite/driver/src/mode/OPS_NATIVE_O0.py +++ /dev/null @@ -1,136 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -OPS_NATIVE_O0 = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Dex2mpl( - dex2mpl="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/dex2mpl", - option="--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - infile="${APP}.dex" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/maple --mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0/libcore-all.mplt", - run=["me", "mpl2mpl", "mplcg"], - option={ - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.mpl" - ), - Linker( - lib="host-x86_64-OPS_O0", - model="arm64", - infile="${APP}", - native_src="${NATIVE_SRC}.cpp" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.so", - xbootclasspath="libcore-all.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/OPS_NATIVE_O2.py b/testsuite/driver/src/mode/OPS_NATIVE_O2.py deleted file mode 100644 index 8bc60727c5..0000000000 --- a/testsuite/driver/src/mode/OPS_NATIVE_O2.py +++ /dev/null @@ -1,133 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -OPS_NATIVE_O2 = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Dex2mpl( - dex2mpl="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/dex2mpl", - option="--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - infile="${APP}.dex" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/maple --mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2/libcore-all.mplt", - run=["me", "mpl2mpl", "mplcg"], - option={ - "me": "-O2 --quiet", - "mpl2mpl": "-O2 --quiet --regnativefunc --no-nativeopt --maplelinker", - "mplcg": "--quiet -O2 --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.mpl" - ), - Linker( - lib="host-x86_64-OPS_O2", - model="arm64", - infile="${APP}", - native_src="${NATIVE_SRC}.cpp" - ) - ], - "run": [ - Mplsh( - env={ - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.so", - xbootclasspath="libcore-all.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/OPS_O0.py b/testsuite/driver/src/mode/OPS_O0.py deleted file mode 100644 index 7c1097023d..0000000000 --- a/testsuite/driver/src/mode/OPS_O0.py +++ /dev/null @@ -1,124 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -OPS_O0 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Dex2mpl( - dex2mpl="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/dex2mpl", - option="--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - infile="${APP}.dex" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/maple --mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0/libcore-all.mplt", - run=["me", "mpl2mpl", "mplcg"], - option={ - "me": "--quiet", - "mpl2mpl": "--quiet --regnativefunc --maplelinker", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.mpl" - ), - Linker( - lib="host-x86_64-OPS_O0", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O0", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.so", - xbootclasspath="libcore-all.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/OPS_O2.py b/testsuite/driver/src/mode/OPS_O2.py deleted file mode 100644 index a51491069c..0000000000 --- a/testsuite/driver/src/mode/OPS_O2.py +++ /dev/null @@ -1,119 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -OPS_O2 = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Dex2mpl( - dex2mpl="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/dex2mpl", - option="--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list", - infile="${APP}.dex" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/bin_OPS/maple --mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2/libcore-all.mplt", - run=["me", "mpl2mpl", "mplcg"], - option={ - "me": "-O2 --quiet", - "mpl2mpl": "-O2 --quiet --regnativefunc --no-nativeopt --maplelinker", - "mplcg": "--quiet -O2 --no-pie --verbose-asm --maplelinker --fPIC" - }, - global_option="--save-temps --genVtableImpl", - infile="${APP}.mpl" - ), - Linker( - lib="host-x86_64-OPS_O2", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-OPS_O2", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - infile="${APP}.so", - xbootclasspath="libcore-all.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/PANDA_ZTERP.py b/testsuite/driver/src/mode/PANDA_ZTERP.py deleted file mode 100644 index bf94cc1933..0000000000 --- a/testsuite/driver/src/mode/PANDA_ZTERP.py +++ /dev/null @@ -1,103 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -PANDA_ZTERP = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Class2panda( - class2panda="${OUT_ROOT}/target/product/public/bin/c2p", - infile=".", - outfile="${APP}.bin" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.bin", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.bin", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.bin", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/RC.py b/testsuite/driver/src/mode/RC.py deleted file mode 100644 index a5b833493e..0000000000 --- a/testsuite/driver/src/mode/RC.py +++ /dev/null @@ -1,79 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * -from env_var import EnvVar - -RC = { - "compile": [ - BenchmarkVogar(), - Shell( - "mv ${BENCHMARK_ACTION}/${BENCHMARK_ACTION}.dex.jar ${BENCHMARK_ACTION}/${BENCHMARK_ACTION}.jar;" - "if [ -d \"${BENCHMARK_ACTION}/dex\" ]; then" - " rm -rf ${BENCHMARK_ACTION}/dex;" - "fi;" - "unzip -q ${BENCHMARK_ACTION}/${BENCHMARK_ACTION}.jar -d ${BENCHMARK_ACTION}/dex" - ), - Maple( - maple="${MAPLE_ROOT}/../out/soong/host/linux-x86/bin/maple", - run=["dex2mpl"], - option={ - "dex2mpl": "-checktool -check-invoke -invoke-checklist=${MAPLE_ROOT}/mrt/codetricks/profile.pv/classloaderInvocation.list -check-incomplete -incomplete-whitelist=${MAPLE_ROOT}/mrt/codetricks/compile/incomplete.list -incomplete-detail -staticstringcheck --inlinefunclist=${MAPLE_ROOT}/mrt/codetricks/profile.pv/to_inline.list -dexcatch -litprofile=${MAPLE_ROOT}/mrt/codetricks/profile.pv/meta.list -output=${BENCHMARK_ACTION}/dex/ -mplt=${MAPLE_ROOT}/../out/soong/.intermediates/vendor/huawei/maple/Lib/core/libmaplecore-all/android_arm64_armv8-a_core_shared/obj/classes.mplt" - }, - global_option="", - infile="${BENCHMARK_ACTION}/dex/classes.dex" - ), - Maple( - maple="${MAPLE_ROOT}/../out/soong/host/linux-x86/bin/maple", - run=["mplipa"], - option={ - "mplipa": "--effectipa --quiet --inlinefunclist=${MAPLE_ROOT}/mrt/codetricks/profile.pv/inline_funcs.list" - }, - global_option="", - infile="${BENCHMARK_ACTION}/dex/classes.mpl > /dev/null" - ), - Maple( - maple="${MAPLE_ROOT}/../out/soong/host/linux-x86/bin/maple", - run=["me", "mpl2mpl", "mplcg"], - option={ - "me": "--inlinefunclist=${MAPLE_ROOT}/mrt/codetricks/profile.pv/inline_funcs.list -O2 --quiet --no-ignoreipa", - "mpl2mpl": "-regnativefunc --quiet -O2 --usewhiteclass --maplelinker --dump-muid --check_cl_invocation=${MAPLE_ROOT}/mrt/codetricks/profile.pv/classloaderInvocation.list --regnative-dynamic-only", - "mplcg": "-O2 --quiet --no-pie --nativeopt --verbose-asm --gen-c-macro-def --maplelinker --gsrc --duplicate_asm_list2=${MAPLE_ROOT}/mrt/compiler-rt/src/arch/arm64/fastFuncs.S --fPIC" - }, - global_option="--genVtableImpl", - infile="${BENCHMARK_ACTION}/dex/classes.mpl" - ), - Shell( - "${MAPLE_ROOT}/../prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang -target aarch64-linux-android -g -c -x assembler-with-cpp -D__ASSEMBLY__ -DUSE_32BIT_REF -MD -MF ${BENCHMARK_ACTION}/dex/classes.d -o ${BENCHMARK_ACTION}/dex/classes.o ${BENCHMARK_ACTION}/dex/classes.VtableImpl.s" - ), - Shell( - "${MAPLE_ROOT}/../prebuilts/clang/host/linux-x86/clang-r353983c/bin/llvm-objcopy --rename-section .debug_info=.maple_java_debug_info --rename-section .debug_abbrev=.maple_java_debug_abbrev --rename-section .debug_line=.maple_java_debug_line --rename-section .debug_aranges=.maple_java_debug_aranges --rename-section .debug_ranges=.maple_java_debug_ranges ${BENCHMARK_ACTION}/dex/classes.o" - ), - Shell( - "${MAPLE_ROOT}/../prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang++ -nostdlib -Wl,-soname,libmaple${BENCHMARK_ACTION}.so -Wl,--gc-sections -shared ${MAPLE_ROOT}/../out/soong/.intermediates/bionic/libc/crtbegin_so/android_arm64_armv8-a_core/crtbegin_so.o ${BENCHMARK_ACTION}/dex/classes.o -Wl,--whole-archive ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/STATIC_LIBRARIES/mrt_module_init_intermediates/mrt_module_init.a -Wl,--no-whole-archive ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/STATIC_LIBRARIES/libclang_rt.ubsan_minimal-aarch64-android_intermediates/libclang_rt.ubsan_minimal-aarch64-android.a ${MAPLE_ROOT}/../prebuilts/clang/host/linux-x86/clang-r353983c/lib64/clang/9.0.3/lib/linux//libclang_rt.builtins-aarch64-android.a ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/STATIC_LIBRARIES/libatomic_intermediates/libatomic.a ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/STATIC_LIBRARIES/libgcc_intermediates/libgcc.a -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined-version -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_stripped.a -fuse-ld=lld -Wl,--hash-style=gnu -Wl,--icf=safe -Wl,-z,max-page-size=4096 -target aarch64-linux-android -B${MAPLE_ROOT}/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wl,-T,${MAPLE_ROOT}/mrt/maplert/linker/maplelld.so.lds -Wl,-execute-only -Wl,--exclude-libs,libclang_rt.ubsan_minimal-aarch64-android.a -Wl,--no-undefined ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libmaplecore-all_intermediates/libmaplecore-all.so ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libmrt_intermediates/libmrt.so ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libcommon_bridge_intermediates/libcommon_bridge.so ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libc++_intermediates/libc++.so ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libc_intermediates/libc.so ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libm_intermediates/libm.so ${MAPLE_ROOT}/../out/target/product/generic_a15/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.so -o ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}Symbol.so ${MAPLE_ROOT}/../out/soong/.intermediates/bionic/libc/crtend_so/android_arm64_armv8-a_core/obj/bionic/libc/arch-common/bionic/crtend_so.o" - ), - Shell( - "CLANG_BIN=${MAPLE_ROOT}/../prebuilts/clang/host/linux-x86/clang-r353983c/bin CROSS_COMPILE=${MAPLE_ROOT}/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- XZ=${MAPLE_ROOT}/../prebuilts/build-tools/linux-x86/bin/xz ${MAPLE_ROOT}/../build/soong/scripts/strip.sh -i ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}Symbol.so -o ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so -d ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so.d --keep-mini-debug-info" - ), - Shell( - "(${MAPLE_ROOT}/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-readelf -d ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so | grep SONAME || echo \"No SONAME for ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so\") > ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so.toc.tmp;" - "${MAPLE_ROOT}/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-readelf --dyn-syms ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so | awk '{$2=\"\"; $3=\"\"; print}' >> ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so.toc.tmp;" - "mv ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so.toc.tmp ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so.toc;" - "cp ${BENCHMARK_ACTION}/dex/libmaple${BENCHMARK_ACTION}.so ${BENCHMARK_ACTION}" - ), - ], - "native_compile": [ - BenchmarkNative() - ] -} diff --git a/testsuite/driver/src/mode/REFINECATCH.py b/testsuite/driver/src/mode/REFINECATCH.py deleted file mode 100644 index a7160d71eb..0000000000 --- a/testsuite/driver/src/mode/REFINECATCH.py +++ /dev/null @@ -1,29 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -REFINECATCH = { - "compile": [ - Smali2dex( - file=["${APP}.smali"] - ), - Dex2mpl( - dex2mpl="${OUT_ROOT}/target/product/maple_arm64/bin/dex2mpl", - option="--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/maple_arm64/lib/codetricks/profile.pv/meta.list -refine-catch -dumpdataflow -func=${FUNC}", - infile="${APP}.dex", - redirection="dex2mpl.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/SELF.py b/testsuite/driver/src/mode/SELF.py deleted file mode 100644 index c1b577abaf..0000000000 --- a/testsuite/driver/src/mode/SELF.py +++ /dev/null @@ -1,17 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -SELF = {} \ No newline at end of file diff --git a/testsuite/driver/src/mode/STATICSTRING.py b/testsuite/driver/src/mode/STATICSTRING.py deleted file mode 100644 index 36353211ee..0000000000 --- a/testsuite/driver/src/mode/STATICSTRING.py +++ /dev/null @@ -1,34 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -STATICSTRING = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Dex2mpl( - dex2mpl="${OUT_ROOT}/target/product/maple_arm64/bin/dex2mpl", - option="--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/maple_arm64/lib/codetricks/profile.pv/meta.list -staticstringcheck", - infile="${APP}.dex" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/STATICSTRINGWRONG.py b/testsuite/driver/src/mode/STATICSTRINGWRONG.py deleted file mode 100644 index 6f7c13fe82..0000000000 --- a/testsuite/driver/src/mode/STATICSTRINGWRONG.py +++ /dev/null @@ -1,40 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -STATICSTRINGWRONG = { - "compile": [ - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="${APP}.jar" - ), - Dex2mpl( - dex2mpl="${OUT_ROOT}/target/product/maple_arm64/bin/dex2mpl", - option="--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-O2/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/maple_arm64/lib/codetricks/profile.pv/meta.list -staticstringcheck", - infile="${APP}.dex", - redirection="dex2mpl.log", - return_value_list=[] - ), - CheckRegContain( - reg="@HiLogConstString Error Usage Occured!!!", - file="dex2mpl.log" - ), - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/TGCO0.py b/testsuite/driver/src/mode/TGCO0.py deleted file mode 100644 index 622a85f833..0000000000 --- a/testsuite/driver/src/mode/TGCO0.py +++ /dev/null @@ -1,61 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -TGCO0 = { - "compile": [ - Shell( - "adb shell \"mkdir -p /data/maple/${CASE}/${OPT}\"" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Shell( - "adb push ${APP}.dex /data/maple/${CASE}/${OPT}/" - ), - Shell( - "adb shell \"/data/maple/maple -O0 --gconly --save-temps --hir2mpl-opt=\\\"-Xbootclasspath /apex/com.android.runtime/javalib/core-oj.jar,/apex/com.android.runtime/javalib/core-libart.jar\\\" --mplcg-opt=\\\"--no-ebo --no-cfgo --no-schedule\\\" --infile /data/maple/${CASE}/${OPT}/${APP}.dex\"" - ), - Shell( - "adb pull /data/maple/${CASE}/${OPT}/${APP}.VtableImpl.s ./" - ), - Shell( - "${MAPLE_ROOT}/zeiss/prebuilt/sdk/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++ -O2 -x assembler-with-cpp -march=armv8-a -DUSE_32BIT_REF -c ${APP}.VtableImpl.s" - ), - Shell( - "${MAPLE_ROOT}/zeiss/prebuilt/sdk/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++ ${APP}.VtableImpl.o -O2 -Wall -Werror -Wno-unused-command-line-argument -fstack-protector-strong -std=c++14 -nostdlibinc -march=armv8-a -fPIC -shared ${MAPLE_ROOT}/out/target/product/maple_arm64/lib/mrt_module_init.cpp -fuse-ld=lld -rdynamic -L${MAPLE_ROOT}/out/target/product/maple_arm64/lib/android -lmaplecore-all -lcommon_bridge -lc++ -lc -lm -ldl -Wl,-T${MAPLE_ROOT}/out/target/product/public/lib/linker/maplelld.so.lds -o ./${APP}.so" - ), - Shell( - "adb push ${APP}.so /data/maple/${CASE}/${OPT}/" - ) - ], - "run": [ - Shell( - "adb shell \"export LD_LIBRARY_PATH=/vendor/lib64:/system/lib64:/data/maple;mplsh -Xgconly -cp /data/maple/${CASE}/${OPT}/${APP}.so ${APP}\" > output.log 2>&1" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Shell( - "adb shell \"rm -rf /data/maple/${CASE}/${OPT}\"" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/TGCO2.py b/testsuite/driver/src/mode/TGCO2.py deleted file mode 100644 index 5974235117..0000000000 --- a/testsuite/driver/src/mode/TGCO2.py +++ /dev/null @@ -1,61 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -TGCO2 = { - "compile": [ - Shell( - "adb shell \"mkdir -p /data/maple/${CASE}/${OPT}\"" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Shell( - "adb push ${APP}.dex /data/maple/${CASE}/${OPT}/" - ), - Shell( - "adb shell \"/data/maple/maple -O2 --gconly --save-temps --hir2mpl-opt=\\\"-Xbootclasspath /apex/com.android.runtime/javalib/core-oj.jar,/apex/com.android.runtime/javalib/core-libart.jar\\\" --mplcg-opt=\\\"--no-ebo --no-cfgo --no-schedule\\\" --infile /data/maple/${CASE}/${OPT}/${APP}.dex\"" - ), - Shell( - "adb pull /data/maple/${CASE}/${OPT}/${APP}.VtableImpl.s ./" - ), - Shell( - "${MAPLE_ROOT}/zeiss/prebuilt/sdk/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++ -O2 -x assembler-with-cpp -march=armv8-a -DUSE_32BIT_REF -c ${APP}.VtableImpl.s" - ), - Shell( - "${MAPLE_ROOT}/zeiss/prebuilt/sdk/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++ ${APP}.VtableImpl.o -O2 -Wall -Werror -Wno-unused-command-line-argument -fstack-protector-strong -std=c++14 -nostdlibinc -march=armv8-a -fPIC -shared ${MAPLE_ROOT}/out/target/product/maple_arm64/lib/mrt_module_init.cpp -fuse-ld=lld -rdynamic -L${MAPLE_ROOT}/out/target/product/maple_arm64/lib/android -lmaplecore-all -lcommon_bridge -lc++ -lc -lm -ldl -Wl,-T${MAPLE_ROOT}/out/target/product/public/lib/linker/maplelld.so.lds -o ./${APP}.so" - ), - Shell( - "adb push ${APP}.so /data/maple/${CASE}/${OPT}/" - ) - ], - "run": [ - Shell( - "adb shell \"export LD_LIBRARY_PATH=/vendor/lib64:/system/lib64:/data/maple;mplsh -Xgconly -cp /data/maple/${CASE}/${OPT}/${APP}.so ${APP}\" > output.log 2>&1" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Shell( - "adb shell \"rm -rf /data/maple/${CASE}/${OPT}\"" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/TIME.py b/testsuite/driver/src/mode/TIME.py deleted file mode 100644 index b63c5da268..0000000000 --- a/testsuite/driver/src/mode/TIME.py +++ /dev/null @@ -1,107 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -TIME = { - "compile": [ - Shell( - "OUTDIR=output;" - "mkdir -p ${OUTDIR}" - ), - Shell( - "num=1;" - "TIMES=5;" - "cpu_list=(0 1 2 3 4 5 6 7);" - "cpu_governor=\'userspace\';" - "offline_cpu_list=(4 5 6 7);" - "enable_cpu_list=(0 1 2 3);" - "cpu_freq=1805000" - ), - Shell( - "for offline_cpu in ${offline_cpu_list[@]}; do" - " adb shell \"echo 0 > /sys/devices/system/cpu/cpu${offline_cpu}/online\";" - "done" - ), - Shell( - "for enable_cpu in ${enable_cpu_list[@]}; do" - " adb shell \"echo $cpu_freq > /sys/devices/system/cpu/cpu${enable_cpu}/cpufreq/scaling_max_freq\";" - " adb shell \"echo $cpu_freq > /sys/devices/system/cpu/cpu${enable_cpu}/cpufreq/scaling_min_freq\";" - " adb shell \"echo $cpu_governor > /sys/devices/system/cpu/cpu${enable_cpu}/cpufreq/scaling_governor\";" - " adb shell \"echo $cpu_freq > /sys/devices/system/cpu/cpu${enable_cpu}/cpufreq/scaling_setspeed\";" - "done" - ), - Shell( - "adb shell stop;" - "sleep 20s" - ), - Shell( - "while true; do" - " if [ ${num} -gt ${TIMES} ]; then" - " break;" - " fi" - ), - Shell( - "adb shell \"mkdir -p /data/maple/${CASE}/${OPT}\"" - ), - Shell( - "adb push ${APP}.dex /data/maple/${CASE}/${OPT}/" - ), - Shell( - "adb shell \"(time /data/maple/maple --gconly -O2 --no-with-ipa /data/maple/${CASE}/${OPT}/${APP}.dex --hir2mpl-opt=\\\"-dump-time -no-mpl-file -Xbootclasspath /data/maple/core-oj.jar,/data/maple/core-libart.jar,/data/maple/bouncycastle.jar,/data/maple/apache-xml.jar,/data/maple/framework.jar,/data/maple/ext.jar,/data/maple/telephony-common.jar,/data/maple/voip-common.jar,/data/maple/ims-common.jar,/data/maple/android.test.base.jar,/data/maple/featurelayer-widget.jar,/data/maple/hwEmui.jar,/data/maple/hwPartBasicplatform.jar,/data/maple/telephony-separated.jar,/data/maple/hwTelephony-common.jar,/data/maple/hwPartTelephony.jar,/data/maple/hwPartTelephonyVSim.jar,/data/maple/hwPartTelephonyCust.jar,/data/maple/hwPartTelephonyTimezoneOpt.jar,/data/maple/hwPartTelephonyOpt.jar,/data/maple/hwPartSecurity.jar,/data/maple/hwIms-common.jar,/data/maple/hwPartMedia.jar,/data/maple/hwPartConnectivity.jar,/data/maple/hwPartPowerOffice.jar,/data/maple/hwPartDeviceVirtualization.jar,/data/maple/hwPartAirSharing.jar,/data/maple/hwPartDefaultDFR.jar,/data/maple/hwPartDFR.jar,/data/maple/hwPartMagicWindow.jar,/data/maple/hwframework.jar,/data/maple/com.huawei.nfc.jar,/data/maple/org.ifaa.android.manager.jar,/data/maple/hwaps.jar,/data/maple/servicehost.jar,/data/maple/hwcustIms-common.jar,/data/maple/hwcustTelephony-common.jar,/data/maple/hwIAwareAL.jar,/data/maple/conscrypt.jar,/data/maple/updatable-media.jar,/data/maple/okhttp.jar --java-staticfield-name=smart\\\" --mplcg-opt=\\\"--no-ico --no-cfgo --no-prepeep --no-ebo --no-storeloadopt --no-globalopt --no-schedule --no-proepilogue --no-peep --no-const-fold --no-lsra-hole --with-ra-linear-scan --no-prelsra --no-prespill --no-lsra-hole\\\" -time-phases)\" >& ${OUTDIR}/maple_${APP}_${num}.txt &" - ), - Shell( - "count=1;" - "mkdir -p ${OUTDIR}/mem_out;" - "while true; do" - " pid=`adb shell pidof maple`;" - " if [[ -z ${pid} ]]; then" - " echo \"compile ${APP} ${num} complete\";" - " break;" - " fi;" - " adb shell showmap ${pid} >> ${OUTDIR}/mem_out/mem_${count}.log;" - " ((count++));" - " sleep 0.5;" - "done" - ), - Shell( - "wait;" - "file_list=`ls ${OUTDIR}/mem_out | grep log | uniq`;" - "PSSMAX=0;" - "for file in ${file_list}; do" - " pss=`cat ${OUTDIR}/mem_out/$file | grep TOTAL | awk '{print $3+$9}'`;" - " if [[ ${pss} -ge ${PSSMAX} ]]; then" - " PSSMAX=${pss};" - " fi;" - "done" - ), - Shell( - "echo \"${PSSMAX}\" >> ${OUTDIR}/pss_max_${APP}.txt;" - "rm -rf ${OUTDIR}/mem_out" - ), - Shell( - " adb shell \"rm -rf /data/maple/${CASE}/${OPT}\";" - " num=`expr ${num} + 1`;" - "done" #end while - ), - Shell( - "adb shell start" - ) - ], - "checktime": [ - Shell( - "python3 ${OUT_ROOT}/target/product/public/bin/checker_compiler_time_ci.py -d ${APP} -n 5 -t ${CHECKTIME} -o ${OUTDIR}" #${TIMES} - ) - ] -} diff --git a/testsuite/driver/src/mode/ZRT.py b/testsuite/driver/src/mode/ZRT.py deleted file mode 100644 index ca73446560..0000000000 --- a/testsuite/driver/src/mode/ZRT.py +++ /dev/null @@ -1,115 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ZRT = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/rt.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT/libcore-all.mplt -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -blacklist-invoke=${OUT_ROOT}/target/product/maple_arm64/lib/invoke-black-dex.list", - "mplipa": "--quiet --effectipa", - "me": "-O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "-O2 --quiet --regnativefunc --no-nativeopt --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "-O2 --quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-ZRT", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ZRTNATIVE.py b/testsuite/driver/src/mode/ZRTNATIVE.py deleted file mode 100644 index d8b8835db8..0000000000 --- a/testsuite/driver/src/mode/ZRTNATIVE.py +++ /dev/null @@ -1,131 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ZRTNATIVE = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/rt.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl","mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT/libcore-all.mplt -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -blacklist-invoke=${OUT_ROOT}/target/product/maple_arm64/lib/invoke-black-dex.list", - "mplipa": "--quiet --effectipa", - "me": "-O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "-O2 --quiet --regnativefunc --no-nativeopt --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "-O2 --quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-ZRT", - model="arm64", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_REPORT_RC_LEAK": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "MAPLE_VERIFY_RC": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ZRTNATIVEEH.py b/testsuite/driver/src/mode/ZRTNATIVEEH.py deleted file mode 100644 index 1e00141f4e..0000000000 --- a/testsuite/driver/src/mode/ZRTNATIVEEH.py +++ /dev/null @@ -1,77 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ZRTNATIVEEH = { - "compile": [ - NativeCompile( - mpldep=[ - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT", - "${OUT_ROOT}/target/product/public/lib/libnativehelper/include" - ], - infile="${NATIVE_SRC}", - model="arm64" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/rt.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl","mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT/libcore-all.mplt -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -blacklist-invoke=${OUT_ROOT}/target/product/maple_arm64/lib/invoke-black-dex.list", - "mplipa": "--quiet --effectipa", - "me": "-O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "-O2 --quiet --regnativefunc --no-nativeopt --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "-O2 --quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-ZRT", - model="arm64", - infile="${APP}", - ) - ], - "run": [ - Mplsh( - env={ - "USE_OLD_STACK_SCAN": "1", - "JNI_TEST": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "./", - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ) - ] -} diff --git a/testsuite/driver/src/mode/ZRTRC.py b/testsuite/driver/src/mode/ZRTRC.py deleted file mode 100644 index 3791636612..0000000000 --- a/testsuite/driver/src/mode/ZRTRC.py +++ /dev/null @@ -1,78 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ZRTRC = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/rt.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT/libcore-all.mplt -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -blacklist-invoke=${OUT_ROOT}/target/product/maple_arm64/lib/invoke-black-dex.list", - "mplipa": "--quiet --effectipa", - "me": "-O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "-O2 --quiet --regnativefunc --no-nativeopt --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "-O2 --quiet --no-pie --verbose-asm --gen-c-macro-def --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-ZRT", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZRT", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - choice="num", - reg="ExpectResult", - file="cycle.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ZTERP.py b/testsuite/driver/src/mode/ZTERP.py deleted file mode 100644 index 1ce3355cd8..0000000000 --- a/testsuite/driver/src/mode/ZTERP.py +++ /dev/null @@ -1,98 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ZTERP = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java","${EXTRA_JAVA_FILE}"] - ) - ], - "run": [ - Mplsh( - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/ZTERPCLASSLOADER.py b/testsuite/driver/src/mode/ZTERPCLASSLOADER.py deleted file mode 100644 index f809cbd6cc..0000000000 --- a/testsuite/driver/src/mode/ZTERPCLASSLOADER.py +++ /dev/null @@ -1,365 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ZTERPCLASSLOADER = { - "java2dex": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ) - ], - "compile": [ - Shell( - 'cp ../lib/child.jar ./' - ), - Shell( - 'cp ../lib/parent.jar ./' - ), - Shell( - 'cp ../lib/inject.jar ./' - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="child.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list ", - "me": "", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="child.dex" - ), - Linker( - lib="host-x86_64-ZTERP", - model="arm64", - infile="child" - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="parent.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list ", - "me": "", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="parent.dex" - ), - Linker( - lib="host-x86_64-ZTERP", - model="arm64", - infile="parent" - ), - Jar2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/framework_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/services_intermediates/classes.jar" - ], - infile="inject.jar" - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list ", - "me": "", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="inject.dex" - ), - Linker( - lib="host-x86_64-ZTERP", - model="arm64", - infile="inject" - ), - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "--mplt ${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP/libcore-all.mplt -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list ", - "me": "", - "mpl2mpl": "--quiet --regnativefunc --maplelinker --FastNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/fastNative.list --CriticalNative=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/criticalNative.list --nativefunc-property-list=${OUT_ROOT}/target/product/public/lib/codetricks/native_binding/native_func_property.list", - "mplcg": "--quiet --no-pie --verbose-asm --maplelinker --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/arch/arm64/duplicateFunc.s --fPIC" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-ZTERP", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_ZTERP": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "APP_SPECIFY_CLASSPATH": '$(echo ${APP}.so|cut -d "=" -f 2)' - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "APP_SPECIFY_CLASSPATH": '$(echo ${APP}.so|cut -d "=" -f 2)', - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "APP_SPECIFY_CLASSPATH": '$(echo ${APP}.so|cut -d "=" -f 2)', - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "APP_SPECIFY_CLASSPATH": '$(echo ${APP}.so|cut -d "=" -f 2)', - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - Mplsh( - env={ - "USE_ZTERP": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "MAPLE_VERIFY_RC": "1", - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.so", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ZTERPDEXSO.py b/testsuite/driver/src/mode/ZTERPDEXSO.py deleted file mode 100644 index 927068e9be..0000000000 --- a/testsuite/driver/src/mode/ZTERPDEXSO.py +++ /dev/null @@ -1,142 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ZTERPDEXSO = { - "java2dex": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ) - ], - "java2dex_simplejava": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"], - usesimplejava=True - ) - ], - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ), - Maple( - maple="${OUT_ROOT}/target/product/maple_arm64/bin/maple", - run=["dex2mpl", "mplipa", "me", "mpl2mpl", "mplcg"], - option={ - "dex2mpl": "-mplt=${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP/libcore-all.mplt -dexcatch -inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/to_inline.list -j=16 -j100 -litprofile=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/meta.list -refine-catch -staticstringcheck", - "mplipa": "--effectipa --quiet", - "me": "--O2 --quiet --inlinefunclist=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/inline_funcs.list --no-nativeopt --no-ignoreipa --enable-ea", - "mpl2mpl": "--O2 --quiet --regnativefunc --no-nativeopt --maplelinker --maplelinker-nolocal --dump-muid --check_cl_invocation=${OUT_ROOT}/target/product/public/lib/codetricks/profile.pv/classloaderInvocation.list --emitVtableImpl", - "mplcg": "--O2 --quiet --no-pie --verbose-asm --fPIC --gen-c-macro-def --duplicate_asm_list=${OUT_ROOT}/target/product/public/lib/codetricks/asm/duplicateFunc.s --maplelinker --gsrc --nativeopt --replaceasm" - }, - global_option="--save-temps", - infile="${APP}.dex" - ), - Linker( - lib="host-x86_64-ZTERP", - model="arm64", - infile="${APP}" - ) - ], - "run": [ - Mplsh( - env={ - "USE_ZTERP": "true" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${CP}", - redirection="output.log" - ), - CheckFileEqual( - file1="output.log", - file2="expected.txt" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "MAPLE_REPORT_RC_LEAK": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${CP}", - redirection="leak.log" - ), - CheckRegContain( - reg="Total none-cycle root objects 0", - file="leak.log" - ), - Mplsh( - env={ - "USE_ZTERP": "true", - "MAPLE_VERIFY_RC": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${CP}", - redirection="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential early release", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects potential leak", - file="rcverify.log" - ), - CheckRegContain( - reg="[MS] [RC Verify] total 0 objects weak rc are wrong", - file="rcverify.log" - ) - ] -} diff --git a/testsuite/driver/src/mode/ZTERPRC.py b/testsuite/driver/src/mode/ZTERPRC.py deleted file mode 100644 index 3bbc98786b..0000000000 --- a/testsuite/driver/src/mode/ZTERPRC.py +++ /dev/null @@ -1,61 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -from api import * - -ZTERPRC = { - "compile": [ - Java2dex( - jar_file=[ - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-oj_intermediates/classes.jar", - "${OUT_ROOT}/target/product/public/third-party/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" - ], - outfile="${APP}.dex", - infile=["${APP}.java"] - ) - ], - "run": [ - Mplsh( - env={ - "MAPLE_REPORT_RC_LEAK": "1", - "PATTERN_FROM_BACKUP_TRACING": "1" - }, - qemu="/usr/bin/qemu-aarch64", - qemu_libc="/usr/aarch64-linux-gnu", - qemu_ld_lib=[ - "${OUT_ROOT}/target/product/maple_arm64/third-party", - "${OUT_ROOT}/target/product/maple_arm64/lib/host-x86_64-ZTERP", - "./" - ], - mplsh="${OUT_ROOT}/target/product/maple_arm64/bin/mplsh", - garbage_collection_kind="RC", - xbootclasspath="libcore-all.so", - infile="${APP}.dex", - redirection="cycle.log" - ), - CheckRegContain( - reg="ExpectResult", - file="cycle.log" - ), - CheckRegContain( - reg="Total Leak Count 0", - file="cycle.log" - ), - CheckRegContain( - choice="num", - reg="ExpectResult", - file="cycle.log" - ) - ] -} \ No newline at end of file diff --git a/testsuite/driver/src/mode/__init__.py b/testsuite/driver/src/mode/__init__.py deleted file mode 100644 index b18e0d9c3d..0000000000 --- a/testsuite/driver/src/mode/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# -# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. -# -# OpenArkCompiler is licensed under Mulan PSL v2. -# You can use this software according to the terms and conditions of the Mulan PSL v2. -# -# http://license.coscl.org.cn/MulanPSL2 -# -# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR -# FIT FOR A PARTICULAR PURPOSE. -# See the Mulan PSL v2 for more details. -# - -import os - -mode_dict = {} -my_dir = os.path.dirname(__file__) -for py in os.listdir(my_dir): - if py == '__init__.py': - continue - - if py.endswith('.py'): - name = py[:-3] - mode = __import__(__name__, globals(), locals(), ['%s' % name]) - mode_dict[name] = getattr(getattr(mode, name), name) -- Gitee