Christopher Wiley | b2bec59 | 2014-03-27 15:33:28 -0700 | [diff] [blame] | 1 | Some common workflows for developing with buffet: |
| 2 | |
| 3 | # Tell portage that you'd like to make local changes to Buffet: |
Vitaly Buka | fc03101 | 2014-10-07 14:34:47 -0700 | [diff] [blame] | 4 | cros_workon start --board=${BOARD} buffet |
Christopher Wiley | b2bec59 | 2014-03-27 15:33:28 -0700 | [diff] [blame] | 5 | |
| 6 | # Edit files in platform2/buffet/ |
| 7 | vim ... |
| 8 | |
| 9 | # Compile and install those changes into the chroot: |
Vitaly Buka | fc03101 | 2014-10-07 14:34:47 -0700 | [diff] [blame] | 10 | USE=buffet emerge-${BOARD} buffet |
Christopher Wiley | b2bec59 | 2014-03-27 15:33:28 -0700 | [diff] [blame] | 11 | |
| 12 | # Compile and run buffet unittests |
Vitaly Buka | fc03101 | 2014-10-07 14:34:47 -0700 | [diff] [blame] | 13 | USE=buffet FEATURES=test emerge-${BOARD} buffet |
Christopher Wiley | b2bec59 | 2014-03-27 15:33:28 -0700 | [diff] [blame] | 14 | |
| 15 | # Deploy the most recently built version of buffet to a DUT: |
Vitaly Buka | fc03101 | 2014-10-07 14:34:47 -0700 | [diff] [blame] | 16 | cros deploy --board=${BOARD} <remote host> buffet |
Alex Vakulenko | a3062c5 | 2014-04-21 17:05:51 -0700 | [diff] [blame] | 17 | |
| 18 | #To enable additional debug logging in buffet daemon, run it as: |
| 19 | # buffet --v=<level>, where <level> is verbosity level of debug info: |
| 20 | # 1 - enable additional tracing of internal object construction and destruction |
| 21 | # 2 - add tracing of request and response data sent over HTTP (beware of |
| 22 | # privacy concerns). |
| 23 | # 3 - enable low-level CURL tracing for HTTP communication. |
| 24 | buffet --v=2 |