代码拉取完成,页面将自动刷新
#!/bin/bash
# Test all operators cases, used for CI test.
# If you want to run specify operators, refer to README.md.
# You need to run build.sh, before running this script.
set -e
source env.sh
usage () {
echo "USAGE: test.sh <options>"
echo
echo "OPTIONS:"
echo " -h, --help Print usage"
echo " --cases_dir=* [Optional]Test cases for test"
echo
}
if [ $# == 0 ]; then echo "Have no options, use -h or --help"; exit -1; fi
cmdline_args=$(getopt -o h --long cases_dir: -n 'test.sh' -- "$@")
eval set -- "$cmdline_args"
if [ $# != 0 ]; then
while true; do
case "$1" in
--cases_dir)
shift
CASES_DIR=$1
shift
;;
-h | --help)
usage
exit 0
;;
--)
shift
break
;;
*)
echo "-- Unknown options ${1}, use -h or --help"
usage
exit -1
;;
esac
done
fi
# Test all operators cases.
cd build/test/
./mluop_gtest
if [[ -n "${CASES_DIR}" && -a "${CASES_DIR}" ]]; then
./mluop_gtest --cases_dir="${CASES_DIR}"
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。