Closed
Bug 784316
Opened 13 years ago
Closed 13 years ago
NSS: Implement a package_for_testing makefile target
Categories
(NSS :: Test, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.14
People
(Reporter: KaiE, Assigned: KaiE)
References
Details
Attachments
(1 file)
2.64 KB,
patch
|
rrelyea
:
review+
|
Details | Diff | Splinter Review |
In order to allow building and testing of NSS to run on separate machines, we should add a new makefile target, e.g. package_for_testing, which can be run on the build machineand produces an archive file that can be copied to a test machine.
Assignee | ||
Comment 1•13 years ago
|
||
This makefile target will create a tar.gz archive inside mozilla/dist
named like nss-Linux_x86_64.tgz
The toplevel of the file will have the following contents:
dist
runtests.sh
security
The contents of runtests.sh will look like this:
echo "set HOST and DOMSUF if your system is not registered in DNS"; sleep 5
export NSS_TESTS=cipher
export NSS_SSL_TESTS="crl normal_normal iopr"
export NSS_SSL_RUN="cov auth stress"
export NSS_CYCLES="standard pkix upgradedb sharedb"
export OBJDIR=Linux3.5_x86_64_glibc_PTH_64_DBG.OBJ
export USE_64=1
export BUILD_OPT=
rm -rf test_results
echo "running tests"
cd security/nss/tests; ./all.sh > ../../../logfile 2>&1 ; cd ../../../
tar czf tests_results.tgz tests_results
echo "created tests_results.tgz"
echo "results are in directory: "`ls -1d tests_results/security/*.1`
echo -n "number of PASSED tests: "; grep -cw PASSED logfile;
echo -n "number of FAILED tests: "; grep -cw FAILED logfile;
After copying the archive to another computer, extracting the file, and running runtests.sh, the output will look like this:
set HOST and DOMSUF if your system is not registered in DNS
running tests
created tests_results.tgz
results are in directory: tests_results/security/localhost.1
number of PASSED tests: 237
number of FAILED tests: 0
(in the above cycle I only ran the cipher tests)
The output directory will contain the following additional entries:
logfile
tests_results
tests_results.tgz
Assignee: nobody → kaie
Comment 2•13 years ago
|
||
Comment on attachment 653776 [details] [diff] [review]
patch v1
r+
Attachment #653776 -
Flags: review+
Assignee | ||
Comment 3•13 years ago
|
||
Checking in Makefile;
/cvsroot/mozilla/security/nss/Makefile,v <-- Makefile
new revision: 1.41; previous revision: 1.40
done
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.14
You need to log in
before you can comment on or make changes to this bug.
Description
•