Coder Social home page Coder Social logo

run_glassfish_testset's Introduction

背景

在对glassfish的源码进行修正(比如jdk11移植)之后,需要通过glassfish自带的最基本的测试集用来保证glassfish的动作正确性

glassfish团队给出了一个基本的测试集,源码在glassfish/appserver/test里面。

glassfish源码

测试集

测试用例一览

additional 

步骤

/glassfish项目build

$git clone https://github.com/javaee/glassfish.git
$cd glassfish
$export JAVA_HOME=/jh/jdk1.8.0_211  (JAVA HOMNE 设定)
$export PATH=$JAVA_HOME/bin:$PATH  
$mvn clean install -Dmaven.test.skip=true

确认在 /root/glassfish/appserver/distributions/glassfish/target里面生成glassfish.zip文件

ant 安装

$yum install ant #version 1.10.5
$export ANT_HOME=/usr/share/ant
$export PATH=$ANT_HOME/bin:$PATH

环境变量

$export APS_HOME=/root/glassfish/appserver/tests/appserv-tests  (演示中glassfish安装在root下面)
$export WORKSPACE=/root/glassfish/workspace
$export S1AS_HOME=/root/glassfish/appserver/distributions/glassfish/target/stage/glassfish5/glassfish
$export TEST_RUN_LOG=/root/glassfish/workspace/tests_run.log

glassfish.zip copy

$cp /root/glassfish/appserver/distributions/glassfish/target/glassfish.zip  /root/glassfish/workspace/bundles/  (在glassfish下面新建 workspace/bundles 文件夹)

测试开始

$cd /glassfish
$./appserver/tests/gftest.sh run_test connector_group_2 (本次演示只对connector_group_2测试)

测试结果

结果在/root/glassfish/workspace/results里面表示

additional 

查看测试报告

可以用浏览器打开\test_results.html文件查看报告内容(下面截图是在jdk11上做移植的报告,所以只有8个测试pass)

additional 

※本次演示不涉及jdk11的内容,如果没有对glassfish做任何修改并且在jdk8的环境下做testsuite的情况下,所有的test都可以通过。

run_glassfish_testset's People

Contributors

141801 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.