1 Star 0 Fork 70

Caspar/CAS

forked from Gitee 极速下载/CAS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
testcas.sh 4.10 KB
一键复制 编辑 原始数据 按行查看 历史
#!/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"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/caspar87/CAS.git
git@gitee.com:caspar87/CAS.git
caspar87
CAS
CAS
master

搜索帮助