-
Notifications
You must be signed in to change notification settings - Fork 0
cts resources
sayuan edited this page Feb 3, 2014
·
1 revision
想解決 CTS issue,除了持續的與 source code 奮鬥之外,從網路上尋找其他人 的經驗也是很重要的是,除了直接 Google 搜尋測試的 class, method 以外,我 還會做以下的事:
-
最多人使用的媒介,大部分會遇到的 CTS 問題都有對應的 issue,只是經常不 會有解答(笑)。不管怎樣,加個星號讓新訊息自動寄到信箱是必要的。
-
Google Group: Android-Partner-Security
想要看到這個 Group 必須是 Google 的合作廠商,並完成帳號申請的動作。所 以如果你的公司符合資格,卻還沒有帳號,趕緊跟公司負責的人詢問吧。
這個 group 裡頭放的主要是 Google 每個月整理的安全性修正通知,有關安全 性的問題經常是 CTS 的重點測試項目。因此,遇到安全性相關的問題,來這裡看 看就對了。除了透過 Google Group 以外,這些安全性修正通知應該也會以 Email 的形式寄發。
-
Google Group: Android-Compatibility
另一個需要權限的 Google Group,老實說我不太記得裡面有什麼了。
-
這是 Android 的 Code Review System,這裡常常可以看見那些修正已經被 waive 掉的測試的 commit,而從修改內容和 commit message 和裡頭則可以知道更多的 來龍去脈。就算是沒有被接受的 commit,多少也能從 review message 中獲得訊 息。
為了方便我尋找相關的 patch,我寫了個 script 將所有的 commit 抓下來並以 patch 檔的方式儲存,以利我用其他工具進行搜尋。
script 在此:
#!/bin/bash git_cmd='git --git-dir=android_project/.repo/projects/cts.git' $git_cmd fetch aosp $git_cmd ls-remote aosp | grep 'refs/changes/' | while read commit path ; do patch="${commit:0:2}/$commit" [ -f "$patch" ] && continue $git_cmd fetch aosp "$path" mkdir -p "${commit:0:2}" $git_cmd show "$commit" > "$patch" done git add -A git commit -m 'Automatic commit'