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

Issue 669118: automated WiFi test framework and start of tests (Closed)

Created:
10 years, 9 months ago by Sam Leffler
Modified:
9 years, 7 months ago
Reviewers:
petkov, mbligh, rtc, ericli
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

automated WiFi test framework and start of tests

Patch Set 1 #

Total comments: 40

Patch Set 2 : first pass through secmat tests #

Patch Set 3 : respond to review comments; mo betta #

Total comments: 20

Patch Set 4 : cleanups per review #

Total comments: 1

Patch Set 5 : revert global_config changes for now #

Patch Set 6 : revert correctly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2187 lines, -1 line) Patch
M client/config/wifi_router_list View 3 1 chunk +4 lines, -1 line 0 comments Download
A client/config/wifi_testbed_config View 3 1 chunk +18 lines, -0 lines 0 comments Download
A server/site_bsd_router.py View 3 1 chunk +227 lines, -0 lines 0 comments Download
A server/site_linux_router.py View 3 1 chunk +163 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/000Check11b View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/001Check11g View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/002Check11a View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/003CheckBcastSSID View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/004CheckHiddenSSID View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/005CheckBinterval View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/006CheckDTIM View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/007CheckPS View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/008CheckSlotTime View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/009Check11gProt View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/010CheckRxFrag View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/020CheckWMM View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/030Check24HT20 View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/031Check24HT40 View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/032Check5HT20 View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/033Check5HT40 View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/034CheckTxAmpdu View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/035CheckRxAmpdu View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/036CheckRxAmsdu View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/038CheckRIFS View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/039CheckSGI20 View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/040CheckSGI40 View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/041Check11nProt View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/050Perf11b View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/051Perf11g View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/052Perf11a View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/060Perf24HT20 View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/061Perf24HT40 View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/070Perf5HT20 View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/071Perf5HT40 View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiMatFunc/control View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/000StaticKeyWEP40 View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/001StaticKeyWEP104 View 1 2 1 chunk +48 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/002StaticKeyWEP128 View 1 2 1 chunk +48 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/005SharedKeyWEP40 View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/006SharedKeyWEP104 View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/007SharedKeyWEP128 View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/010CheckWPA_TKIP View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/011CheckWPA_AES View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/012CheckWPA_Multi View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/013CheckWPA_Mixed View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/015CheckWPA_PTK_Rekey View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/016CheckWPA_GTK_Rekey View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/018CheckWPA_CounterMeasures View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/020CheckRSN View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/050Perf11b_WEP View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/051Perf11g_AES View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/051Perf11g_TKIP View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/051Perf11g_WEP View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/052Perf11a_AES View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/052Perf11a_TKIP View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/052Perf11a_WEP View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/060Perf24HT20_AES View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/061Perf24HT40_AES View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/070Perf5HT20_AES View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/071Perf5HT40_AES View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A server/site_tests/network_WiFiSecMat/control View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A server/site_wifitest.py View 3 1 chunk +454 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Sam Leffler
very early WIP; uploading for feedback; to run this stuff you need special gear and ...
10 years, 9 months ago (2010-03-04 23:59:25 UTC) #1
petkov
Some quick comments. http://codereview.chromium.org/669118/diff/1/2 File server/bsd_router.py (right): http://codereview.chromium.org/669118/diff/1/2#newcode1 server/bsd_router.py:1: Add Chromium Copyright -- here and ...
10 years, 9 months ago (2010-03-05 18:21:18 UTC) #2
Sam Leffler
PTAL. Think I addressed most of your comments. Still need to make a sweep through ...
10 years, 9 months ago (2010-03-12 19:51:01 UTC) #3
petkov
Adding ericli to review the global_config.ini change. Mostly style nits, otherwise. I'm still not sure ...
10 years, 9 months ago (2010-03-15 17:38:08 UTC) #4
ericli
http://codereview.chromium.org/669118/diff/5001/6003 File global_config.ini (right): http://codereview.chromium.org/669118/diff/5001/6003#newcode94 global_config.ini:94: client_autodir_paths: /usr/local/autotest,/home/autotest I had an impression /usr/local is on ...
10 years, 9 months ago (2010-03-15 18:39:27 UTC) #5
Sam Leffler
http://codereview.chromium.org/669118/diff/5001/6001 File client/config/wifi_router_list (right): http://codereview.chromium.org/669118/diff/5001/6001#newcode1 client/config/wifi_router_list:1: # On 2010/03/15 17:38:08, petkov wrote: > Copyright? Done. ...
10 years, 9 months ago (2010-03-15 19:09:28 UTC) #6
mbligh
http://codereview.chromium.org/669118/diff/19001/20063 File server/site_wifitest.py (right): http://codereview.chromium.org/669118/diff/19001/20063#newcode143 server/site_wifitest.py:143: def __get_connect_script(self, params): Wouldn't this be much cleaner as ...
10 years, 9 months ago (2010-03-15 19:33:12 UTC) #7
petkov
LGTM, assuming you're planning to cleanup the escaped stuff in a separate CL. Nice!
10 years, 9 months ago (2010-03-15 19:46:36 UTC) #8
ericli
server/site_wifitest.py should be put under serve/site_test/wifitest/wifitest.py For global_config.ini, I guess the non-chromeos machine you referred ...
10 years, 9 months ago (2010-03-15 19:50:39 UTC) #9
Sam Leffler
I need at least 3 devices to run these tests: client (chrome os), router, and ...
10 years, 9 months ago (2010-03-15 19:57:17 UTC) #10
Sam Leffler
I will do more cleanups in a separate CL. Every change of this sorts pushes ...
10 years, 9 months ago (2010-03-15 19:59:39 UTC) #11
ericli
agree. On Mon, Mar 15, 2010 at 12:57 PM, Sam Leffler <sleffler@chromium.org> wrote: > I ...
10 years, 9 months ago (2010-03-15 20:00:53 UTC) #12
Sam Leffler
10 years, 9 months ago (2010-03-15 23:49:29 UTC) #13
I ended up pushing the CL w/o the change to global_config.ini.  We may
change the setup to eliminate the "server" machine in which case that
change may not be needed.

I'll follow up w/ additional CL's for the other cleanups requested.

-Sam

On Mon, Mar 15, 2010 at 8:00 PM, Eric Li(李咏竹) <ericli@chromium.org> wrote:
> agree.
>
> On Mon, Mar 15, 2010 at 12:57 PM, Sam Leffler <sleffler@chromium.org> wrote:
>>
>> I need at least 3 devices to run these tests: client (chrome os),
>> router, and server.  The existing scripts/infrastructure either do not
>> support this (run_remote_tests)
>
> We are aware of this. And in discussing to improve it.
>
>>
>> or make it painful to configure.
>> Hence the hardcoded config file that at least extracts the data from
>> the scripts.  I'm trying to get this stuff into the tree so others can
>> work on it.  If you see ways to make this better let's get it
>> committed and then you can change it in a separate CL.
>>
>> -Sam
>>
>> On Mon, Mar 15, 2010 at 11:50 AM,  <ericli@chromium.org> wrote:
>> > server/site_wifitest.py should be put under
>> > serve/site_test/wifitest/wifitest.py
>> >
>> >
>> > For global_config.ini, I guess the non-chromeos machine you referred is
>> > the
>> > server host from your control file. Is it possible to use another
>> > chromeos
>> > host
>> > as server? so both server and client are chromeosos netbook.
>> >
>> > client/config/wifi_router_list
>> > client/config/wifi_testbed_config
>> >
>> > I am not sure checkin hard coded ip address here is a good idea. At
>> > least
>> > should
>> > provide a way for people to override. I am think:
>> > 1. I will run the same set of tests on the same network as you.
>> > 2. we need to tell external users to run this test, and most likely they
>> > need to
>> > adjust the ips.
>> >
>> > But that might be out of the scope of this CL.
>> >
>> >
>> >
>> >
>> >
>> >
>> > On 2010/03/15 19:33:12, mbligh wrote:
>> >>
>> >> http://codereview.chromium.org/669118/diff/19001/20063
>> >> File server/site_wifitest.py (right):
>> >
>> >> http://codereview.chromium.org/669118/diff/19001/20063#newcode143
>> >> server/site_wifitest.py:143: def __get_connect_script(self, params):
>> >> Wouldn't this be much cleaner as a triple-quoted string?
>> >> (or separate data file).
>> >
>> >
>> >
>> > http://codereview.chromium.org/669118
>> >
>
>
>
> --
> Eric Li
> 李咏竹
> Google Kirkland
>
>
>

Powered by Google App Engine
This is Rietveld 408576698