From 5a2d7ea36ab07cafc015f4dc08984d8f33f80a5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Fri, 9 Mar 2012 12:23:54 +0000 Subject: [PATCH] New way of generating TestRep --- .../gridsite/tests/gridsite-autonomous-test.sh | 104 +++------------------ 1 file changed, 15 insertions(+), 89 deletions(-) diff --git a/org.glite.testsuites.ctb/gridsite/tests/gridsite-autonomous-test.sh b/org.glite.testsuites.ctb/gridsite/tests/gridsite-autonomous-test.sh index 5cb322d..44eb0ad 100755 --- a/org.glite.testsuites.ctb/gridsite/tests/gridsite-autonomous-test.sh +++ b/org.glite.testsuites.ctb/gridsite/tests/gridsite-autonomous-test.sh @@ -141,93 +141,19 @@ cat test_log.txt >> report.twiki #Generating test report -echo $SCENARIO | grep -i -E "upgrade|update" +PRODUCT="emi.gridsite" +UNITESTEXEC="NO" +REMARKS="No unit tests implemented" +PERFORMANCEEXEC="NO" +TESTREPOCONTENTS="`cat ./repo_packages.txt`" +PRODREPOCONTENTS="`cat ./prod_packages.txt`" +INSTALLCOMMAND="`cat GridSiteInstall.sh`" +INSTALLLOG="`cat Install_log.txt`" +CONFIGLOG="GridSite does not use any specific configuration procedure. No log provided" +#UPGRADECMD +UNITTESTURL="NA" +TESTPLANURL="http://jra1mw.cvs.cern.ch/cgi-bin/jra1mw.cgi/org.glite.testsuites.ctb/gridsite/tests/" +FUNCTIONALITYTESTURL="https://twiki.cern.ch/twiki/bin/view/EGEE/SA3Testing#GridSite" + +gen_test_report > TestRep.txt -if [ $? -ne 0 ]; then - -cat << EndRepHead > TestRep.txt -************* -Summary -************* - -1. Deployment tests: - 1.1. Clean Installation - PASS - 1.2. Upgrade Installation - PASS -2. Static Code Analysis - NA -3. Unit Tests Execution - NO -4. System tests: - 4.1. Functionality tests - PASS - 4.2. Regression tests - PASS - 4.3. Standard Conformance tests - NA - 4.4. Performance tests - NA - 4.5. Scalability tests - NA - -REMARKS: - -GridSite code is not covered by unit tests. This is a state EMI inherited and there are insufficient resources to remedy that. On top of that, GridSite is due to major refactoring with the instrodunction od caNl. - -*************************** Detailed Testing Report *************************************** - -1. Deployment log -************************ - -1.1. Clean Installation ------------------------------ -- YUM/APT Testing Repo file contents: -EndRepHead - - cat repo_packages.txt >> TestRep.txt - - printf "\n- YUM/APT Install command:\n\n" >> TestRep.txt - - cat GridSiteInstall.sh >> TestRep.txt - - printf "\n- YUM/APT log:\n\n" >> TestRep.txt - - cat Install_log.txt >> TestRep.txt - - printf "\n- Configuration log:\n\nN/A\n\n" >> TestRep.txt - -else - - printf "\n1.2. Upgrade Installation\n--------------------------------\n- YUM/APT Production Repo file contents:\n\n" - - cat prod_packages.txt >> TestRep.txt - - printf "\n- YUM/APT Install command:\n\n" >> TestRep.txt - - cat GridSiteInstall.sh >> TestRep.txt - - printf "\n- YUM/APT Testing Repo file contents:\n\n" >> TestRep.txt - - cat repo_packages.txt >> TestRep.txt - - printf "\n- YUM/APT Upgrade command:\n\n${UPGRADECMD}\n\n- YUM/APT log:" >> TestRep.txt - - cat Install_log.txt >> TestRep.txt - -cat << EndRepHead >> TestRep.txt -- Configuration log: - -2. Static Code Analysis -****************************** -- URL where static code analysis results can be accessed - -3. Unit Tests -***************** -- URL pointing to the results of the Unit Tests. -- Code Coverage %, if available. - -4. System tests -********************* -- URL where the tests/testsuite can be accessed: - -https://twiki.cern.ch/twiki/bin/view/EGEE/SA3Testing#GridSite - -- URL where the test results can be accessed: - -http://jra1mw.cvs.cern.ch/cgi-bin/jra1mw.cgi/org.glite.testsuites.ctb/gridsite/tests/ - -EndRepHead - -fi -- 1.8.2.3