Add standalone cases (#3536)
This commit is contained in:
33
tests/standalone/test-invoke-native/run.sh
Executable file
33
tests/standalone/test-invoke-native/run.sh
Executable file
@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
#
|
||||
|
||||
if [[ $1 == "--classic-interp" ]]; then
|
||||
CMAKE_FLAGS="-DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_FAST_INTERP=0"
|
||||
elif [[ $1 == "--fast-interp" ]]; then
|
||||
CMAKE_FLAGS="-DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_FAST_INTERP=1"
|
||||
elif [[ $1 == "--fast-jit" ]]; then
|
||||
CMAKE_FLAGS="-DWAMR_BUILD_FAST_JIT=1"
|
||||
elif [[ $1 == "--jit" ]]; then
|
||||
CMAKE_FLAGS="-DWAMR_BUILD_JIT=1"
|
||||
elif [[ $1 == "--multi-tier-jit" ]]; then
|
||||
CMAKE_FLAGS="-DWAMR_BUILD_FAST_JIT=1 -DWAMR_BUILD_JIT=1"
|
||||
fi
|
||||
|
||||
TARGET="X86_64"
|
||||
if [[ $3 = "X86_32" ]]; then
|
||||
TARGET="X86_32"
|
||||
fi
|
||||
|
||||
echo "============> test dump-invoke-native"
|
||||
|
||||
rm -fr build
|
||||
mkdir build && cd build
|
||||
cmake .. ${CMAKE_FLAGS} -DWAMR_BUILD_TARGET=${TARGET}
|
||||
make -j ${nproc} > /dev/null 2>&1
|
||||
cd ..
|
||||
|
||||
echo "============> run test-invoke-native"
|
||||
./build/test_invoke_native
|
||||
Reference in New Issue
Block a user