Re: [PATCH lkp-tests] tests: modify api-avx2neon

#!/bin/bash
+SCRIPT_DIR=$(dirname $(realpath $0)) +cd "$SCRIPT_DIR" +: "${git_url:=https://github.com/Siguyi/AvxToNeon}"
-script=$(dirname $(realpath $0)) -cd $script +build() { + git clone "$git_url" + cd AvxToNeon/tests || exit
is the directory is part of repo: $git_url? two line above => git clone "$git_url" || exit cd AvxToNeon/tests Thanks, Luan Shengde
-yum install -y git -yum install -y make + if [ "${arch}" == "aarch64" ]; then + make >/dev/null 2>&1 + elif [ "${arch}" == "x86_64" ]; then + make ARCH=x86 >/dev/null 2>&1 + fi +}
-git clone https://github.com/Siguyi/AvxToNeon +run() { + build + echo "api-avx2neon running" + ./test + echo "api-avx2neon finished"
-cd AvxToNeon -cd tests -make + output=$(find / -name "output") + fail=$(grep 'AVX2NEONTest Complete' $output |awk '{print $8}') + [ 0 -eq "$fail" ] || exit 1 +}
-echo "api-avx2neon running" -./test -echo "api-avx2neon finished" +run -- 2.23.0
participants (1)
-
Luan Shengde