Recently, several people have been organized to develop a monitoring system. In order to quickly grasp the development progress and control the quality, a daily building environment has been established.
The version control adopts SVN, And the svn library directory is set up in/sdbdata/SVN and SVN environments:
- APR:./configure; Make; make test; make install
- Apr-util:./configure; Make; make test; make install
- SQLite: Download SQLite-amalgamation, decompress it, and upload the directory mV to the Subversion directory.
- SVN:./configure -- With-Apr =/usr/local/APR -- With-Apr-util =/usr/local/APR
- SVN: Make; make install
- Start Service: svnserve-d-r/sdbdata/SVN listens on port 3690
- Create a version Library: svnadmin create/var/SVN/Repos
- Client Access: SVN: // 192.168.24.29/Repos
- Custom permissions: svnserve. conf. Enter the account and password in the passwd file.
Execute daily build to Generate Test Case Report and project document. The build script is as follows:
Code
# ! /Bin/bash
Curday = 'Date + % Y % m % d % H `
# Start checking out source code
Echo " Begin check out ...... "
SVN checkout File :/// Sdbdata / SVN / Repos / SRC / Back SRC
SVN checkout File :/// Sdbdata / SVN / Repos / Test test
Echo " End check out. "
# Start local test
Echo " Begin local test ...... "
CP 'Find Test - Name \*. T' TMP /
CD TMP
For Name in *. T
Do
Echo $ Name > ../ RPT / Test . Log . $ Curday 2 > & 1
Perl $ Name > ../ RPT / Test . Log . $ Curday 2 > & 1
# Generate Project Document
Tmpname = 'Echo $ Name | Awk - F . ' {Print $1 ;} ' `
Pod2html $ Name > ../ Doc / $ {Tmpname} . Html
# Perl-mtest: harness-e '$ test: harness: verbose = 1; runtests @ argv ;'*. t> .. /rpttest. log. $ curday 2> & 1
Done
3. output the test report and project documents through Apache for front-end access
Create a connection under the Apache/htdocs directory to point to the document directory
Ln-S/sdbdata/develop/Apache/htdocs/develop
<Directory "/slview/Apache/htdocs/develop"> options indexes Multiviews ensures that the directory can browse AllowOverride none order allow, deny allow from all </directory>
4. Access to test reports and project documents
Project document access: http: // 192.168.24.29/develop/doc
Test Report access: http: // 192.168.24.29/develop/Rpt