From 702ad4a2a081a034974d061e0e343887536b49dd Mon Sep 17 00:00:00 2001 From: lirismankarina Date: Wed, 12 Jul 2023 19:21:38 +0300 Subject: [PATCH] [es2panda] Running tests on Arm32 fixed Signed-off-by: lirismankarina --- parser/ETSparser.cpp | 2 +- test/CMakeLists.txt | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/parser/ETSparser.cpp b/parser/ETSparser.cpp index 91849141c..ff1bdc683 100644 --- a/parser/ETSparser.cpp +++ b/parser/ETSparser.cpp @@ -103,7 +103,7 @@ #include "libpandabase/utils/json_parser.h" #include "generated/signatures.h" -#if defined PANDA_TARGET_MOBILE || defined PANDA_TARGET_ARM32 +#if defined PANDA_TARGET_MOBILE #define USE_UNIX_SYSCALL #endif diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7ff515a74..02c7d59ec 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -# ignore for 32x processors because there is a problem with running on arm-gnu-eabi and arm-gnu-eabi-hf +# ignore ARM32 because some files (not gnueabi or gnueabihf) are incompatible with 32x processors # this will be fixed in the future if(PANDA_TARGET_ARM32 OR PANDA_ARM64_TESTS_WITH_SANITIZER) return() @@ -28,6 +28,13 @@ if(PANDA_WITH_ETS) endif() endif() + if(PANDA_TARGET_ARM32) + set(OPTIONS --test-list-arch=arm32 ${OPTIONS}) + if(PANDA_QEMU_BUILD) + set(OPTIONS --arm32-qemu ${OPTIONS}) + endif() + endif() + add_custom_target(es2panda-regression-tests DEPENDS ark es2panda verifier WORKING_DIRECTORY ${PANDA_ROOT} -- Gitee