代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/CAS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
clear
printHelp() {
echo -e "Usage: ./testcas.sh --category [category] [--debug] [--coverage]\n"
echo -e "Available categories are:\n"
echo -e "\t - simple"
echo -e "\t - memcached"
echo -e "\t - groovy"
echo -e "\t - ldap"
echo -e "\t - rest"
echo -e "\t - jdbc"
echo -e "\t - oracle"
echo -e "\t - radius"
echo -e "\t - files"
echo -e "\t - saml"
echo -e "\t - mail"
echo -e "\t - oauth"
echo -e "\t - oidc"
echo -e "\t - redis"
echo -e "\t - webflow"
echo -e "\t - mongo"
echo -e "\t - mysql"
echo -e "\nSee the script for more available categories.\n"
}
PARAMS=""
while (( "$#" )); do
case "$1" in
--coverage)
coverage="jacocoRootReport"
shift
;;
--debug)
debug="--debug-jvm"
shift
;;
--test)
tests="--tests \"$2\" "
shift 2
;;
--category)
case "$2" in
test|simple|run|basic|unit)
task="test"
category="SIMPLE"
;;
memcached|memcache|kryo)
task="testMemcached"
category="MEMCACHED"
;;
filesystem|files|file|fsys)
task="testFileSystem"
category="FILESYSTEM"
;;
groovy)
task="testGroovy"
category="GROOVY"
;;
ldap)
task="testLdap"
category="LDAP"
;;
mongo|mongodb)
task="testMongoDb"
category="MONGODB"
;;
couchdb)
task="testCouchDb"
category="COUCHDB"
;;
rest|restful)
task="testRestful"
category="RESTFULAPI"
;;
mysql)
task="testMySQL"
category="MYSQL"
;;
maria|mariadb)
task="testMariaDb"
category="MariaDb"
;;
jdbc|jpa|database|hibernate)
task="testJDBC"
category="JDBC"
;;
postgres|pg|postgresql)
task="testPostgres"
category="POSTGRES"
;;
cassandra)
task="testCassandra"
category="CASSANDRA"
;;
oauth)
task="testOAuth"
category="OAUTH"
;;
oidc)
task="testOIDC"
category="OIDC"
;;
saml|saml2)
task="testSAML"
category="SAML"
;;
radius)
task="testRadius"
category="RADIUS"
;;
mail|email)
task="testMail"
category="MAIL"
;;
zoo|zookeeper)
task="testZooKeeper"
category="ZOOKEEPER"
;;
dynamodb|dynamo)
task="testDynamoDb"
category="DYNAMODB"
;;
webflow|swf)
task="testWebflow"
category="WEBFLOW"
;;
oracle)
task="testOracle"
category="ORACLE"
;;
redis)
task="testRedis"
category="REDIS"
;;
activemq|amq)
task="testActiveMQ"
category="ActiveMQ"
;;
esac
shift 2
;;
*)
echo -e "Unable to accept parameter: $1"
printHelp
exit 1
;;
esac
done
if [[ -z "$task" || -z "$category" ]]
then
printHelp
exit 1
fi
cmd="./gradlew $task $coverage $debug -DtestCategoryType=$category $tests \
--build-cache -x javadoc -x check -DignoreTestFailures=false -DskipNestedConfigMetadataGen=true \
-DskipGradleLint=true -DshowStandardStreams=true --no-daemon --configure-on-demand "
echo -e "$cmd\n"
eval "$cmd"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。