代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/CAS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
clear
printHelp() {
echo -e "\nUsage: ./testcas.sh --category [category1,category2,...] [--help] [--test TestClass] [--ignore-failures] [--no-wrapper] [--no-retry] [--debug] [--no-parallel] [--dry-run] [--info] [--with-coverage] \n"
echo -e "Available test categories are:\n"
echo -e "simple,memcached,cassandra,groovy,kafka,ldap,rest,\
mfa,jdbc,mssql,oracle,radius,couchdb,webapp,tickets,\
mariadb,files,postgres,dynamodb,couchbase,uma,saml,mail,aws,\
jms,hazelcast,jmx,ehcache,actuator,wsfed,authn,attributes,cas,logout,\
expiration-policy,files,postgres,dynamodb,couchbase,uma,saml,mail,aws,jms,\
hazelcast,jmx,ehcache,actuator,wsfed,authn,attributes,metrics,\
oauth,oidc,redis,webflow,mongo,ignite,influxdb,zookeeper,mysql,x509,shell,\
cosmosdb,config,sms,util,services,web,audits,password-ops"
echo -e "\nPlease see the test script for details.\n"
}
parallel="--parallel "
dryRun=""
info=""
gradleCmd="./gradlew"
flags="--no-daemon --configure-on-demand --build-cache -x javadoc -x check -DskipNestedConfigMetadataGen=true -DshowStandardStreams=true "
coverageTask=""
while (( "$#" )); do
case "$1" in
--no-parallel)
parallel="--no-parallel "
shift
;;
--with-coverage)
currentDir=`pwd`
case "${currentDir}" in
*api*|*core*|*support*|*webapp*)
coverageTask="jacocoTestReport "
;;
*)
coverageTask="jacocoRootReport "
;;
esac
shift
;;
--info)
info="--info "
shift
;;
--dry-run)
dryRun="--dry-run "
shift
;;
--no-wrapper)
gradleCmd="gradle"
shift
;;
--help)
printHelp
exit 0
;;
--debug)
debug="--debug-jvm "
parallel=""
shift
;;
--test)
tests="--tests \"$2\" "
shift 2
;;
--no-retry)
flags+=" -DskipTestRetry=true"
shift
;;
--ignore-failures)
flags+=" -DignoreTestFailures=true"
shift
;;
--category)
category="$2"
for item in $(echo "$category" | sed "s/,/ /g")
do
case "${item}" in
test|simple|run|basic|unit|unittests)
task+="testSimple "
;;
webapp)
task+="testWebApp "
;;
auth|authn|authentication)
task+="testAuthentication "
;;
tickets|ticketing)
task+="testTickets "
;;
x509)
task+="testX509 "
;;
shell)
task+="testSHELL "
;;
web)
task+="testWeb "
;;
logout|slo)
task+="testLogout "
;;
cas)
task+="testCAS "
;;
metrics|stats)
task+="testMetrics "
;;
services|regsvc)
task+="testRegisteredService "
;;
actuator|endpoint)
task+="testActuatorEndpoint "
;;
utility|utils|util)
task+="testUtility "
;;
wsfed)
task+="testWSFederation "
;;
attrs|attr|attributes)
task+="testAttributes "
;;
expiration-policy|exppolicy|expp)
task+="testExpirationPolicy "
;;
password-ops|pswd|pswd-ops|psw)
task+="testPasswordOps "
;;
sms)
task+="testSMS "
;;
audit|audits)
task+="testAudits "
;;
uma)
task+="testUMA "
;;
filesystem|files|file|fsys)
task+="testFileSystem "
;;
config|casconfig|ccfg|cfg)
task+="testCasConfiguration "
;;
groovy|script)
task+="testGroovy "
;;
jdbc|jpa|database|db|hibernate|rdbms|hsql)
task+="testJDBC "
;;
oauth)
task+="testOAuth "
;;
oidc)
task+="testOIDC "
;;
mfa|duo|gauth|webauthn|authy|fido|u2f|swivel|acceptto)
task+="testMFA "
;;
saml|saml2)
task+="testSAML "
;;
jmx|jmx)
task+="testJMX "
;;
rest|restful|restapi)
task+="testRestfulApi "
;;
webflow|swf)
task+="testWebflow "
;;
hz|hazelcast)
task+="testHazelcast "
;;
ignite)
task+="testIgnite "
;;
infinispan)
task+="testInfinispan"
;;
spnego)
task+="testSpnego"
;;
cosmosdb|cosmos)
task+="testCosmosDb "
;;
simple|unit)
task+="testSimple "
;;
mssql)
./ci/tests/mssqlserver/run-mssql-server.sh
task+="testMsSqlServer "
;;
influx|influxdb)
./ci/tests/influxdb/run-influxdb-server.sh
task+="testInfluxDb "
;;
memcached|memcache|kryo)
./ci/tests/memcached/run-memcached-server.sh
task+="testMemcached "
;;
ehcache)
./ci/tests/ehcache/run-terracotta-server.sh
task+="testEhcache "
;;
ldap|ad|activedirectory)
./ci/tests/ldap/run-ldap-server.sh
./ci/tests/ldap/run-ad-server.sh true
task+="testLdap "
;;
couchbase)
./ci/tests/couchbase/run-couchbase-server.sh
task+="testCouchbase "
;;
mongo|mongodb)
./ci/tests/mongodb/run-mongodb-server.sh
task+="testMongoDb "
;;
couchdb)
./ci/tests/couchdb/run-couchdb-server.sh
task+="testCouchDb "
;;
mysql)
./ci/tests/mysql/run-mysql-server.sh
task+="testMySQL "
;;
maria|mariadb)
./ci/tests/mariadb/run-mariadb-server.sh
task+="testMariaDb "
;;
postgres|pg|postgresql)
./ci/tests/postgres/run-postgres-server.sh
task+="testPostgres "
;;
cassandra)
./ci/tests/cassandra/run-cassandra-server.sh
task+="testCassandra "
;;
kafka)
./ci/tests/kafka/run-kafka-server.sh
task+="testKafka "
;;
aws|amz)
./ci/tests/aws/run-aws-server.sh
task+="testAmazonWebServices "
;;
radius)
./ci/tests/radius/run-radius-server.sh
task+="testRadius "
;;
mail|email)
./ci/tests/mail/run-mail-server.sh
task+="testMail "
;;
zoo|zookeeper)
./ci/tests/zookeeper/run-zookeeper-server.sh
task+="testZooKeeper "
;;
dynamodb|dynamo)
./ci/tests/dynamodb/run-dynamodb-server.sh
task+="testDynamoDb "
;;
oracle)
./ci/tests/oracle/run-oracle-server.sh
task+="testOracle "
;;
redis)
./ci/tests/redis/run-redis-server.sh
task+="testRedis "
;;
activemq|amq|jms)
./ci/tests/activemq/run-activemq-server.sh
task+="testJMS "
;;
esac
done
shift 2
;;
*)
echo -e "Unable to accept parameter: $1"
printHelp
exit 1
;;
esac
done
if [[ -z "$task" ]]
then
printHelp
exit 1
fi
cmdstring="\033[1m$gradleCmd \e[32m$task\e[39m$tests\e[39m $flags ${debug}${dryRun}${info}${parallel}\e[39m\e[32m$coverageTask\e[39m"
printf "$cmdstring \e[0m\n"
cmd="$gradleCmd $task $tests $flags ${debug} ${parallel} ${dryRun} ${info} ${coverageTask}"
eval "$cmd"
retVal=$?
echo -e "***************************************************************************************"
echo -e "Gradle build finished at `date` with exit code $retVal"
echo -e "***************************************************************************************"
if [ $retVal == 0 ]; then
echo "Gradle build finished successfully."
else
echo "Gradle build did NOT finish successfully."
exit $retVal
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。