Commit Graph

19 Commits

Author SHA1 Message Date
Joseph Chen 3a5e7a93e8 test: rockchip: fix typo
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I5e22ffaa2fc1a07ca05a793f26e94dc06dad3fc4
2020-01-16 11:12:16 +08:00
Kever Yang d0ff3d4548 rockchip: test: set argc to 1 for rktest all cmd
The 'rktest all v2/3' do not really pass arg to sub cmd, always set argc
for 'rktest all *' cmd to 1 for sub commands.

Change-Id: I2d69ad25aaca074f52bfd2e69be4c33bc41186df
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2019-09-24 14:27:38 +08:00
Kever Yang 54108d04ce rockchip: test: adapt for upstream U-Boot
Not test display and misc for upstream U-Boot, replace local APIs with
upstream APIs.
Use CONFIG_RKIMG_BOOTLOADER to identify the rockchip local U-Boot.

Change-Id: I65b69eca8262d8aa0cb621c90d4ff1f2756368ba
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2019-08-20 20:45:34 +08:00
Kever Yang 2a77afce30 rockchip: test: add log message need by LAVA
The LAVA system need message from log to show the test result.
"<LAVA_SIGNAL_*>" for start, end, test case result key;
"<LAVA_TEST_RUNNER>: exiting" for test complete key

Change-Id: I13522bf82da69f105f439853fa5c4b32c9f3d1ff
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2019-08-06 10:45:05 +08:00
Joseph Chen 99d14b019e test: rockchip: refactor framework and update test case
Change-Id: I8406aaa6c4eacf2b2eb0fa6d787e2a46f45c8049
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-08-06 10:23:50 +08:00
Joseph Chen f26f96c587 test: rockchip: add rockusb and fastboot cmd
Change-Id: I23072323c2f2ee655a57af0150c2cb90135d3227
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-04 18:07:56 +08:00
Joseph Chen 1e7c429d5d test: rockchip: add command description
=> rktest
Command: rktest [module] [args...]
  - module: timer|key|emmc|rknand|regulator|eth|ir|brom|vendor
  - args: depends on module, try 'rktest [module]' for test or more help

  - Enabled modules:
     -      timer: test timer and interrupt
     -       brom: enter bootrom download mode
     -        key: test board keys
     -       emmc: test emmc read/write speed
     -     rknand: test rknand read/write speed
     -  regulator: test regulator volatge set and show regulator status
     -     vendor: test vendor storage partition read/write

Change-Id: I1f58dd65f7ffb229970cb86cb2f568cbca933336
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-04 17:35:21 +08:00
Joseph Chen dbe1e39c43 test: rockchip: timer: compile depends on CONFIG_IRQ
Change-Id: Ibe626355a882af3e879a604820b7c685c8bd533d
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-08-30 16:11:03 +08:00
Joseph Chen b40c07fc2e test: rockchip: compile depends on dm config
Change-Id: I8e3a7a8dedaa4615426b3d059746d2c080b481c0
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-23 10:12:05 +08:00
Joseph Chen 336e1992eb test: rockchip: improve help guide
Change-Id: I321f9b5357a1ef0ad0617124a84bb4890b45be7e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-14 17:40:01 +08:00
Joseph Chen 44e080753f test: rockchip: add vendor storage test
Change-Id: I3bfb884c32e44371fb01351af4b20587f7a1fa1f
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-14 17:40:01 +08:00
Andy Yan 5e7e40617c test: rockchip: add bootrom download mode test
Enter bootrom download mode by command: rktest brom_dnl

Change-Id: I6120a885e5514a57c81fd469ce27a2472009c4fd
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2017-11-20 11:53:22 +08:00
David Wu e630a69b2d rockchip: test: Add ethernet test cases
1. Add phy loopback test
2. Add delayline array scaned
3. Add delayline setting
4. Add dhcp boot from network

Change-Id: I00abc1c7acb4659b78e29bffc12f0964e5d02937
Signed-off-by: David Wu <david.wu@rock-chips.com>
2017-11-13 09:48:59 +08:00
Joseph Chen 3557321365 rockchip: test: adjust position of guide info
Change-Id: Ibd674a7fea9c8b109e5766d98ef80c15fb612633
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2017-11-07 16:13:14 +08:00
Zhangbin Tong 08af5e362f rockchip: test: support ir test
Change-Id: I066eeca4fb7e2971ceee8419cbc2b8d00821397f
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2017-11-03 11:57:10 +08:00
Zhaoyifeng 6faa29c665 test: add modular test for rknand on Rockchip platform
Write assigned data payload into rknand device and read back. Then
verify the context by comparing the write_buffer with read_buffer
one by one.

=> rktest rknand 30000
***********************************************************
Rockchip Board Module [rknand] Test start.
***********************************************************

Device 0: Vendor: 0x2207 Rev: V1.00 Prod: rknand
            Type: Hard Disk
            Capacity: 7304.0 MB = 7.1 GB (14958592 x 512)
... is now current device

rknand write: device 0 block # 4096, count 30000 ... 30000 blocks written: OK
rknand write: size 14MB, used 2196ms, speed 6MB/s

rknand read: device 0 block # 4096, count 30000 ... 30000 blocks read: OK
rknand read: size 14MB, used 941ms, speed 15MB/s
-----------------------------------------------------------
Rockchip Board Module [rknand] Test end <PASS>.. Total: 8.347s
-----------------------------------------------------------

Change-Id: Iedc8d4c3d30a488770c24eabcc81649f8bdecaf2
Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
2017-10-24 18:01:23 +08:00
Joseph Chen ed5ce51773 rockchip: test: support regualtor test
1. test current regulator state matches fdt config or not;
2. test accuracy and correctness of voltage adjustment;
3. the test command: "rktest regulator".

Change-Id: I184ce36d4da7648a3c3052edbafb37f37c3a29be
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2017-10-24 16:15:14 +08:00
Shawn Lin 895be89479 rockchip: test: add modular test for eMMC on Rockchip platform
Write assigned data payload into eMMC and read back. Then
verify the context by comparing the write_buffer with read_buffer
one by one.

=> rktest emmc 20000
***********************************************************
Rockchip Board Module [emmc] Test start.
***********************************************************

MMC write: dev # 0, block # 4096, count 20000 ... 20000 blocks written: OK
eMMC write: size 9MB, used 313ms, speed 31MB/s

MMC read: dev # 0, block # 4096, count 20000 ... 20000 blocks read: OK
eMMC read: size 9MB, used 234ms, speed 42MB/s

-----------------------------------------------------------
Rockchip Board Module [emmc] Test end <PASS>.. Total: 4.389s
-----------------------------------------------------------

Change-Id: Ia8e6e559a41e8b52169326d3cd408ac7d5a02e97
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2017-10-24 16:13:46 +08:00
Joseph Chen 1dc7864b9b test: add rockchip board module test
1. add U-boot cmd "rktest", the cmd format:
	"rktest [module_name] [args...]"

2. add timer and key module test, the cmd are:
	"rktest timer", "rktest key"

Change-Id: I7056b7462925d3693a0e6101d83247f3f38736f8
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2017-10-23 17:21:21 +08:00