Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Unified Diff: src/scripts/archive_hwqual

Issue 2366003: Added change to include creating a pdf file. (Closed) Base URL: ssh://git@chromiumos-git//chromeos
Patch Set: Enhanced test doc creation Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/archive_hwqual
diff --git a/src/scripts/archive_hwqual b/src/scripts/archive_hwqual
index cf1cc2bbf51b111ee0fe45a2725aa65943c0d6aa..54f1aebfebb5428a2cb55acf50bf4dcc4b42f6ca 100755
--- a/src/scripts/archive_hwqual
+++ b/src/scripts/archive_hwqual
@@ -45,6 +45,8 @@ function main() {
local script_dir=$(dirname "$0")
script_dir=$(readlink -f "${script_dir}")
+ docgen_dir="autotest/utils/docgen"
+ html_target="${TMP}/autotest/client/site_tests/suite_HWQual/html"
trap cleanup EXIT
@@ -57,6 +59,17 @@ function main() {
echo "Extracting autotest from build artifacts..."
tar --bzip2 -xf autotest.tar.bz2
+ # Create HTML and PDF test documentation for HWQual Tests.
petkov 2010/06/02 19:52:09 Add an empty line before this one.
+ echo "Generating test documentation..."
+ cd "${docgen_dir}"
+ ./CreateDocs.py --docversion ${FLAGS_output_tag} --html ${html_target}
+ make -C latex pdf
+ mv latex/refman.pdf "${html_target}/HWQual.pdf"
+ # Clean up the generated files.
+ rm -rf testsource latex *.log
+
+ cd "${TMP}"
+
mv chromiumos_test_image.bin image/chromiumos_image.bin
echo "Formatting rootfs as a USB image..."
@@ -67,6 +80,8 @@ function main() {
ln -s \
"${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/README.txt" \
tarball
+ ln -s \
+ "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/html" tarball
ln -s autotest/client/site_tests/suite_HWQual/manual \
"tarball/${FLAGS_output_tag}"
cp "${script_dir}/mod_for_test_scripts/ssh_keys/testing_rsa" \
@@ -74,7 +89,6 @@ function main() {
chmod 0400 "tarball/${FLAGS_output_tag}/testing_rsa"
mv autotest "tarball/${FLAGS_output_tag}"
cp "${script_dir}/generate_test_report" "tarball/${FLAGS_output_tag}"
-
echo "Creating ${FLAGS_to}/${FLAGS_output_tag}.tar.bz2..."
mkdir -p "${FLAGS_to}"
cd tarball
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698