OLD | NEW |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Script to take an archived build result and prepare a hwqual release. | 7 # Script to take an archived build result and prepare a hwqual release. |
8 | 8 |
9 # Load common constants. This should be the first executable line. | 9 # Load common constants. This should be the first executable line. |
10 # The path to common.sh should be relative to your script's location. | 10 # The path to common.sh should be relative to your script's location. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/README.txt" \ | 92 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/README.txt" \ |
93 tarball | 93 tarball |
94 ln -s \ | 94 ln -s \ |
95 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/html" tarball | 95 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/html" tarball |
96 ln -s autotest/client/site_tests/suite_HWQual/manual \ | 96 ln -s autotest/client/site_tests/suite_HWQual/manual \ |
97 "tarball/${FLAGS_output_tag}" | 97 "tarball/${FLAGS_output_tag}" |
98 cp "${script_dir}/mod_for_test_scripts/ssh_keys/testing_rsa" \ | 98 cp "${script_dir}/mod_for_test_scripts/ssh_keys/testing_rsa" \ |
99 "tarball/${FLAGS_output_tag}" | 99 "tarball/${FLAGS_output_tag}" |
100 chmod 0400 "tarball/${FLAGS_output_tag}/testing_rsa" | 100 chmod 0400 "tarball/${FLAGS_output_tag}/testing_rsa" |
101 mv autotest "tarball/${FLAGS_output_tag}" | 101 mv autotest "tarball/${FLAGS_output_tag}" |
102 # Copy call_script.py to tarball. | |
103 cp "${script_dir}/call_script.py tarball/${FLAGS_output_tag}" | |
kmixter1
2011/01/13 01:52:52
If you're adding this to the package, have you con
ruchic
2011/01/18 23:52:31
Done.
This script was initially developed mainly
| |
102 cp "${script_dir}/generate_test_report.py" \ | 104 cp "${script_dir}/generate_test_report.py" \ |
103 "tarball/${FLAGS_output_tag}/generate_test_report" | 105 "tarball/${FLAGS_output_tag}/generate_test_report" |
104 # Copy python lib used in generate_test_report. | 106 # Copy python lib used in generate_test_report. |
105 mkdir -p "tarball/${FLAGS_output_tag}/lib" | 107 mkdir -p "tarball/${FLAGS_output_tag}/lib" |
106 cp "${script_dir}/lib/cros_build_lib.py" \ | 108 cp "${script_dir}/lib/cros_build_lib.py" \ |
107 "tarball/${FLAGS_output_tag}/lib" | 109 "tarball/${FLAGS_output_tag}/lib" |
108 echo "Creating ${FLAGS_to}/${FLAGS_output_tag}.tar.bz2..." | 110 echo "Creating ${FLAGS_to}/${FLAGS_output_tag}.tar.bz2..." |
109 mkdir -p "${FLAGS_to}" | 111 mkdir -p "${FLAGS_to}" |
110 cd tarball | 112 cd tarball |
111 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" . | 113 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" . |
112 | 114 |
113 trap - EXIT | 115 trap - EXIT |
114 cleanup | 116 cleanup |
115 | 117 |
116 echo "Done." | 118 echo "Done." |
117 cd "${script_dir}" | 119 cd "${script_dir}" |
118 } | 120 } |
119 | 121 |
120 main "$@" | 122 main "$@" |
OLD | NEW |