glsdk/ltp-ddt.git
7 years agov4l2_cap: Dump captured content to a file instead of display master
Nikhil Devshatwar [Wed, 9 Apr 2014 07:46:53 +0000 (13:16 +0530)]
v4l2_cap: Dump captured content to a file instead of display

v4l2_capture_tests is used to capture video frames from a V4L2 capture device
and display them to a V4L2 display device.

dra7xx platform doesn't have a V4L2 display device
This patch removes all the V4L2 display related calls from the test suite

Instead, now the frames are captured and saved in a file for viewing later.

A lot of capture related functions are still named after display
Proper cleanup is needed to fix all the naming and unused variables/functions

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
7 years agov4l2_cap: Enable v4l2_capture test suite for dra7xx
Nikhil Devshatwar [Tue, 18 Mar 2014 10:21:46 +0000 (15:51 +0530)]
v4l2_cap: Enable v4l2_capture test suite for dra7xx

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
7 years agoUpdate alsa tests tags
Alejandro Hernandez [Wed, 12 Mar 2014 22:35:35 +0000 (18:35 -0400)]
Update alsa tests tags

This patch updates the alsa test tags based on the
execution time of the tests

Signed-off-by: Alejandro Hernandez <ajhernandez@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoUpdate fbdev tests tags
Alejandro Hernandez [Wed, 12 Mar 2014 22:35:34 +0000 (18:35 -0400)]
Update fbdev tests tags

This patch updates the fbdev tests tags based on the
execution time of the tests

Signed-off-by: Alejandro Hernandez <ajhernandez@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd audio alsa configuration for am43xx-epos
Alejandro Hernandez [Wed, 12 Mar 2014 22:26:55 +0000 (18:26 -0400)]
Add audio alsa configuration for am43xx-epos

This patch adds the audio configuration needed to run alsa tests in
am43xx EPOS.

Signed-off-by: Alejandro Hernandez <ajhernandez@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoSet test scope of powermgr tests tags
Carlos Hernandez [Mon, 17 Mar 2014 14:48:25 +0000 (10:48 -0400)]
Set test scope of powermgr tests tags

The meaning of scope tags change slightly, so adjust the test tags
to reflect new meaning.

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoDelete powermgr_suspend_nousbhost tests
Carlos Hernandez [Mon, 17 Mar 2014 14:44:55 +0000 (10:44 -0400)]
Delete powermgr_suspend_nousbhost tests

DUT should be able to suspend with USB devices attached.
There is no longer a need for these tests.

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agocommon: functions.sh: Restart rtcwake on late int
Carlos Hernandez [Fri, 14 Mar 2014 19:38:13 +0000 (15:38 -0400)]
common: functions.sh: Restart rtcwake on late int

It is possible that a late interrupt will cause the suspend path to
abort. In such scenario, the current suspend code will fail the test.

This patch detects such condition and it starts a new rtcwake call.
It is believe that one retry such be enough to handle this late
interrupts scenario.

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoblk_device_common.sh: Fix a bug in getting partition size.
Yan Liu [Thu, 27 Feb 2014 19:32:14 +0000 (14:32 -0500)]
blk_device_common.sh: Fix a bug in getting partition size.

When using fdisk to get the size, the size displayed could be MB, GB or others.
Now the fix is to use Bytes instead of MB or GB to avoid this problem.

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoUpdate scope for PM resume test
Carlos Hernandez [Mon, 24 Feb 2014 23:40:09 +0000 (18:40 -0500)]
Update scope for PM resume test

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoALSA: Add AM43xx platforms to volume and switch tests
Alejandro Hernandez [Thu, 20 Feb 2014 17:39:50 +0000 (12:39 -0500)]
ALSA: Add AM43xx platforms to volume and switch tests

This patch adds the AM43xx EPOS and GP EVMs to the volume
and witch tests.

Signed-off-by: Alejandro Hernandez <ajhernandez@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoblk_device_tarball_write_test.sh: Wrap wget
Carlos Hernandez [Wed, 19 Feb 2014 23:22:31 +0000 (18:22 -0500)]
blk_device_tarball_write_test.sh: Wrap wget

Signed-off-by: Carlos Hernandez <ceh@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoalsa_test.sh: Wrap wget
Carlos Hernandez [Wed, 19 Feb 2014 23:22:30 +0000 (18:22 -0500)]
alsa_test.sh: Wrap wget

Signed-off-by: Carlos Hernandez <ceh@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoDefine Wget, a wrapper for wget
Carlos Hernandez [Wed, 19 Feb 2014 23:22:29 +0000 (18:22 -0500)]
Define Wget, a wrapper for wget

This is useful to get files inside and outside the intranet with user
worrying about passing proxy flags to wget.

Signed-off-by: Carlos Hernandez <ceh@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd site_info file
Carlos Hernandez [Wed, 19 Feb 2014 23:22:28 +0000 (18:22 -0500)]
Add site_info file

site_info should be use to define site-specific configuration such
as http_proxy servers, etc.

Signed-off-by: Carlos Hernandez <ceh@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agorunltp: Remove extra results printout
Carlos Hernandez [Wed, 19 Feb 2014 16:35:09 +0000 (11:35 -0500)]
runltp: Remove extra results printout

Remove extra PASS/FAIL printout as it is confusing.

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agopowermgr_cpufreq: Fix timeout error on heavyduty test
Carlos Hernandez [Wed, 12 Feb 2014 20:12:00 +0000 (15:12 -0500)]
powermgr_cpufreq: Fix timeout error on heavyduty test

Change scope of STRESS_CPUFREQ_HEAVYDUTY test tag from
XL to XXL. If there are multiple OPPs (e.g. 5 or more), running
100K loops can take more than 24 hours.

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agocommon/functions.sh: Avoid calling top from idle
Carlos Hernandez [Wed, 12 Feb 2014 20:10:24 +0000 (15:10 -0500)]
common/functions.sh: Avoid calling top from idle

Calling top from script causes the script to get stuck.

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agofunctions: Fix bug in call to cpuloadgenerator
Carlos Hernandez [Mon, 10 Feb 2014 21:59:49 +0000 (16:59 -0500)]
functions: Fix bug in call to cpuloadgenerator

Couple of issues got fixed:
* There was an infinite loop in code to generate cpu load
* There was a syntax error in the cpuload call

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agomtd_common.sh: Add function to get partition number based on the name
Yan Liu [Tue, 4 Feb 2014 19:59:54 +0000 (14:59 -0500)]
mtd_common.sh: Add function to get partition number based on the name

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agopowermgr_cpufreq: Modify basic cpufreq test
Carlos Hernandez [Wed, 5 Feb 2014 21:00:20 +0000 (16:00 -0500)]
powermgr_cpufreq: Modify basic cpufreq test

Previous tests ran too many iterations and was outside the
intended scope for the test.

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agopowermgr_cpufreq.sh: Add regulator names for am43xx
Carlos Hernandez [Mon, 3 Feb 2014 20:30:52 +0000 (15:30 -0500)]
powermgr_cpufreq.sh: Add regulator names for am43xx

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agopowermgr_cpufreq: Fix scope tags
Carlos Hernandez [Mon, 3 Feb 2014 20:17:14 +0000 (15:17 -0500)]
powermgr_cpufreq: Fix scope tags

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agopowermgr_dynticks.sh: Relax dynticks pass criteria
Carlos Hernandez [Mon, 3 Feb 2014 20:01:55 +0000 (15:01 -0500)]
powermgr_dynticks.sh: Relax dynticks pass criteria

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoddt/system_cpufreq: Fix test tag for MMC test case
Carlos Hernandez [Mon, 3 Feb 2014 17:08:31 +0000 (12:08 -0500)]
ddt/system_cpufreq: Fix test tag for MMC test case

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoruntest/ddt/sgx: Eliminate hardcoded path
Carlos Hernandez [Fri, 31 Jan 2014 19:44:50 +0000 (14:44 -0500)]
runtest/ddt/sgx: Eliminate hardcoded path

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agomtd_common: increase the search range of mtd partitions
Yan Liu [Thu, 30 Jan 2014 19:03:29 +0000 (14:03 -0500)]
mtd_common: increase the search range of mtd partitions

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoChange scope to XL for mmc stress test
Yan Liu [Thu, 30 Jan 2014 18:59:18 +0000 (13:59 -0500)]
Change scope to XL for mmc stress test

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoModified gpio-pm-tests to add more testcases
Yan Liu [Thu, 30 Jan 2014 18:56:37 +0000 (13:56 -0500)]
Modified gpio-pm-tests to add more testcases

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoblk_device_modular_dd_rw: Add logic for FS_TYPE
Yan Liu [Wed, 29 Jan 2014 20:25:54 +0000 (15:25 -0500)]
blk_device_modular_dd_rw: Add logic for FS_TYPE

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd more power state name in log_pm_count function
Yan Liu [Tue, 14 Jan 2014 20:20:44 +0000 (15:20 -0500)]
Add more power state name in log_pm_count function

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agonandtest: modified the nand test cases
Yan Liu [Sun, 19 Jan 2014 16:18:02 +0000 (11:18 -0500)]
nandtest: modified the nand test cases

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoPull out ipc_test_suite until the build issues are resolved
Yan Liu [Fri, 17 Jan 2014 19:41:39 +0000 (14:41 -0500)]
Pull out ipc_test_suite until the build issues are resolved

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agogpio-pm-tests: escape the double quote so that only run the test case sepecified
Yan Liu [Tue, 14 Jan 2014 15:52:43 +0000 (10:52 -0500)]
gpio-pm-tests: escape the double quote so that only run the test case sepecified

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoMakefile updated to fix ipc build problem.
Yebio Mesfin [Tue, 14 Jan 2014 13:18:54 +0000 (09:48 -0330)]
Makefile updated to fix ipc build problem.

Did quick fix until makefile at the ipc level
are updated. The ipc level makefile should build
ipc modules only for  the platform they are supported.
Also testcases/ddt/Makefile is modified to filter out module
installation for platform that does not support it.

Signed-off-by: Yebio Mesfin <ymesfin@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd logic to determine the pass fail of mtdtests. Also change the scope of nand stres...
Yan Liu [Fri, 10 Jan 2014 15:47:24 +0000 (10:47 -0500)]
Add logic to determine the pass fail of mtdtests. Also change the scope of nand stress test

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoget_modular_config_names.sh: corrections for sound module selection
Peter Ujfalusi [Mon, 16 Dec 2013 09:29:28 +0000 (11:29 +0200)]
get_modular_config_names.sh: corrections for sound module selection

Changes:
- Do not load snd-soc-omap unconditionally for audio (it's OMAP/DRA7 only)
- Add configuration for DRA7-EVM
- Fix BeagleBoard config:
 - Load correct machine driver (snd-soc-omap-twl4030)
 - Reorder the modules: asoc-platform, asoc-cpudai, asoc-codec, asoc-machine
- AM335x fixes:
 - separate BBB since that one have HDMI audio. Kernel config should be
   corrected to this one to work at all.
 - AM335x-EVM/EVMS:
  - Correct the config/module name pairs
  - Reorder the modules: asoc-platform, asoc-cpudai, asoc-codec, asoc-machine
- OMAP5-uevm:
 - Correct the configuration (include codec and machine driver)
 - Reorder the modules: asoc-platform, asoc-cpudai, asoc-codec, asoc-machine

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoiommu functional testing kernel module.
Yebio Mesfin [Thu, 9 Jan 2014 14:11:46 +0000 (10:41 -0330)]
iommu functional testing kernel module.

The iommu test module does iommu module functional test.
The test will map a predefined physical address to a device address, of a
given length. Proper translation table is created for mapping virtual address
to physicall adress. The test application does first level translation.
files modified or created are:
testcases/ddt/ipc_test_suite/Makefile
testcases/ddt/ipc_test_suite/src/kernel/Makefile
testcases/ddt/ipc_test_suite/src/kernel/iommu.c

Signed-off-by: Yebio Mesfin <ymesfin@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoFix @requires on ddt/system_tests
Carlos Hernandez [Wed, 8 Jan 2014 21:29:57 +0000 (16:29 -0500)]
Fix @requires on ddt/system_tests

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoMinor fixes on dynticks test
Carlos Hernandez [Wed, 8 Jan 2014 21:28:52 +0000 (16:28 -0500)]
Minor fixes on dynticks test

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoFilter out ipc_test_suite for unsupported platforms
Yan Liu [Tue, 7 Jan 2014 18:42:45 +0000 (13:42 -0500)]
Filter out ipc_test_suite for unsupported platforms

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agousb: usb_stress_io: Reload necessary modules with appropriate parameters
Roger Quadros [Thu, 21 Nov 2013 11:20:05 +0000 (13:20 +0200)]
usb: usb_stress_io: Reload necessary modules with appropriate parameters

Some tests like ISO need specific parameters for the usbtest module so
we reload the modules with the necessary parameters.

Check if USB_TEST and USB_ZERO drivers are configured as modules since we
need to load to load them with different parameters for different test cases.

Increase USB_L_STRESS_UNLINK timeout to 200 seconds.

get rid of XHCI* test cases as it adds no differentiation at the moment.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agousb: usb_perf_raw: Check for CONFIG_USB_TEST and CONFIG_USB_ZERO
Roger Quadros [Thu, 21 Nov 2013 11:20:04 +0000 (13:20 +0200)]
usb: usb_perf_raw: Check for CONFIG_USB_TEST and CONFIG_USB_ZERO

We need the USB_TEST and USB_ZERO drivers to be present as modules
since we need to reload it with different module parameters for different
test cases.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agousb: usb_perf_raw: Add ISO performance tests
Roger Quadros [Thu, 21 Nov 2013 11:20:03 +0000 (13:20 +0200)]
usb: usb_perf_raw: Add ISO performance tests

Add iso-out-perf and iso-in-perf tests for ISO performance
measurement in the usb_test.sh utility.

Add USB_L_PERF_ISO_OUT and USB_L_PERF_ISO_IN test cases
for USB ISO performance.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agousb: usb_perf_raw: Reload necessary modules with appropriate parameters
Roger Quadros [Thu, 21 Nov 2013 11:20:02 +0000 (13:20 +0200)]
usb: usb_perf_raw: Reload necessary modules with appropriate parameters

Parameters are suited for better throughput measurements.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agousb: usb_test.sh: Improve test parameters for better throughput
Roger Quadros [Thu, 21 Nov 2013 11:20:01 +0000 (13:20 +0200)]
usb: usb_test.sh: Improve test parameters for better throughput

These parameters give a better throughput measurement.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agousb: usb_test.sh: Improve throughput accuracy
Roger Quadros [Fri, 22 Nov 2013 15:05:06 +0000 (17:05 +0200)]
usb: usb_test.sh: Improve throughput accuracy

Use the time returned by testusb instead of measuring our own
time as that is more accurate and doesn't include time required
for searching for the test USB device. This produces more accurate
throughput measurements.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agousb: usb-test.sh: remove undefined check_config
Roger Quadros [Thu, 21 Nov 2013 11:19:59 +0000 (13:19 +0200)]
usb: usb-test.sh: remove undefined check_config

Gets rid of the following warning message

/opt/ltp/testcases/bin/ddt/usb/usb_test.sh: line 151: check_config: command not found

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agousb: testusb: Fail if operation not supported
Roger Quadros [Thu, 21 Nov 2013 11:19:58 +0000 (13:19 +0200)]
usb: testusb: Fail if operation not supported

ISO test cases were falsely passing all this while as we were
not returning error on a not supported error.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd gpio test support in gpio.sh for am43xx-gpevm
Yan Liu [Fri, 20 Dec 2013 16:24:04 +0000 (11:24 -0500)]
Add gpio test support in gpio.sh for am43xx-gpevm

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd emmc into am43xx-gpevm platform file
Yan Liu [Wed, 18 Dec 2013 01:53:39 +0000 (20:53 -0500)]
Add emmc into am43xx-gpevm platform file

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agochange nand stress test type to XL to increate the timeout
Yan Liu [Sat, 14 Dec 2013 16:04:58 +0000 (11:04 -0500)]
change nand stress test type to XL to increate the timeout

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoMD5 and SHA modes to use async mode tests
Aparna Balasubramanian [Thu, 12 Dec 2013 19:06:25 +0000 (13:06 -0600)]
MD5 and SHA modes to use async mode tests

Modifies md5 and sha ltp tests to use async mode rather than sync mode since it was indicated that crypto drivers do not support hardware acceleration in sync mode.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoFile defines Scenarios for IPC related test.
Yebio Mesfin [Tue, 10 Dec 2013 17:04:56 +0000 (13:34 -0330)]
File defines Scenarios for IPC related test.

IPC_S_FUNC_MBOX scenario does mailbox loopback test.
The scenario does clear dmesg, insert kernel module,
get dmesg and verify that valid data is recieved.

Signed-off-by: Yebio Mesfin <ymesfin@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoList Audio devices in alsa test cases
Alejandro Hernandez [Tue, 10 Dec 2013 17:49:52 +0000 (12:49 -0500)]
List Audio devices in alsa test cases

This patch adds the printout of aplay -l and arecord -l to the
alsa tests.

Signed-off-by: Alejandro Hernandez <ajhernandez@ti.com>
Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoIPC: MailBoox loopback test.
Yebio Mesfin [Mon, 9 Dec 2013 18:19:50 +0000 (14:49 -0330)]
IPC: MailBoox loopback test.

The test application does mailbox related configuration, assumes hardware
loopback setup in dtb file, send test data and receives the data back
using the callback function.
files modified are:
root  Makefile
testcases/ddt/ipc_test_suite/Makefile
testcases/ddt/ipc_test_suite/src/kernel/Makefile
testcases/ddt/ipc_test_suite/src/kernel/main.c

Signed-off-by: Yebio Mesfin <ymesfin@ti.com>
Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoChanging scope and modifying hardware requirements for weekly tests
Aparna Balasubramanian [Sun, 8 Dec 2013 17:45:19 +0000 (11:45 -0600)]
Changing scope and modifying hardware requirements for weekly tests

Changes scope to from L to XL or M to L to take care of new duration
definitions. Also, adds hardware requirements for some of the system_usb
tests which were missing them. Splitting system_usb_cpufreq into
system_usbmsc_cpufreq and system_usbiso_cpufreq to take care of different
hardware requirements in each case.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoChecking interrupt count for crypto tests
Aparna Balasubramanian [Sun, 8 Dec 2013 15:46:14 +0000 (09:46 -0600)]
Checking interrupt count for crypto tests

Adds script to determine hardware IP for crypto and corresponding check for
IRQ count increase in test case definition.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoAdd cpuidle stress tests
Carlos Hernandez [Mon, 9 Dec 2013 22:26:07 +0000 (17:26 -0500)]
Add cpuidle stress tests

This test added based on customer request to check board after
being idle for 2 days.

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoAdd Linaro's cpuidle tests
Carlos Hernandez [Mon, 9 Dec 2013 21:46:23 +0000 (16:46 -0500)]
Add Linaro's cpuidle tests

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agommc_tarball test: change the tarball source
Yan Liu [Sat, 7 Dec 2013 17:20:13 +0000 (12:20 -0500)]
mmc_tarball test: change the tarball source

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoForcing musb module to be removed before suspend
Aparna Balasubramanian [Sun, 8 Dec 2013 02:03:01 +0000 (20:03 -0600)]
Forcing musb module to be removed before suspend

In the case of am335x-based targets, musb module needs to be
removed forcibly before a suspend can be performed succesfully.
In case the test case definition does not explicitly set the
usb_remove and usb_module flags, this change will take care of
setting default usb_remove to 1 and usb_module to appropriate
musb module name for am335x-based targets.

Tested with am335x-evm and dra7xx-evm.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoModify usb eth test case names
Carlos Hernandez [Sat, 7 Dec 2013 22:42:14 +0000 (17:42 -0500)]
Modify usb eth test case names

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoddt/usbhost_eth_ping: Make tests name compliant
Carlos Hernandez [Sat, 7 Dec 2013 22:22:07 +0000 (17:22 -0500)]
ddt/usbhost_eth_ping: Make tests name compliant

The test cases were not following the naming convention of
AREA_SCOPE_TYPE_*

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoddt/system_usbhost: Add missing test scenario metadata
Carlos Hernandez [Sat, 7 Dec 2013 22:21:05 +0000 (17:21 -0500)]
ddt/system_usbhost: Add missing test scenario metadata

Add missing @name, @desc, @requires and @setup_requires.

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoddt/smp_watchdog_cpu_affinity: Add @name annotation
Carlos Hernandez [Sat, 7 Dec 2013 22:19:55 +0000 (17:19 -0500)]
ddt/smp_watchdog_cpu_affinity: Add @name annotation

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoUpdate README-DDT
Carlos Hernandez [Sat, 7 Dec 2013 21:34:35 +0000 (16:34 -0500)]
Update README-DDT

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoModified gpio script to be able to test any gpio banks
Yan Liu [Wed, 4 Dec 2013 22:46:42 +0000 (17:46 -0500)]
Modified gpio script to be able to test any gpio banks

Before the script test all gpio banks. Since not all gpio banks are being enabled in
kernel, the script is modified to only test enabled gpio banks.

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd more spi performance test to test larger size
Yan Liu [Wed, 4 Dec 2013 22:46:04 +0000 (17:46 -0500)]
Add more spi performance test to test larger size

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd qspi modular support for am43xx-epos
Yan Liu [Wed, 27 Nov 2013 19:18:20 +0000 (14:18 -0500)]
Add qspi modular support for am43xx-epos

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd Linaro's cpufreq tests
Carlos Hernandez [Wed, 20 Nov 2013 20:32:56 +0000 (15:32 -0500)]
Add Linaro's cpufreq tests

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agofunctions.sh: Fix kill_memtest function
Carlos Hernandez [Tue, 19 Nov 2013 20:45:41 +0000 (15:45 -0500)]
functions.sh: Fix kill_memtest function

Properly killed memtester during test clean up.
Also make sure that show_test_status returns non zero in case of
test failure.

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agofunctions.sh: Add test_status_show()
Carlos Hernandez [Tue, 19 Nov 2013 15:55:12 +0000 (10:55 -0500)]
functions.sh: Add test_status_show()

Update functions.sh per latest Linaro version

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoPowermgr - suspend/resume scenarios with usb
Aparna Balasubramanian [Fri, 22 Nov 2013 22:47:48 +0000 (16:47 -0600)]
Powermgr - suspend/resume scenarios with usb

Changes to support suspend resume scenarios when usb device is connected
to host port.
1) Enhances suspend function in common.sh to take usb_remove flag and
   corresponding usb module.

2) Adds tests to existing powermgr_suspend test suite to ignore suspend
failure when usb device is connected to host port.

3) Adds tests to explicitly remove usbhost modules before suspending

4) Adds tests to be run on setup with nousbhost

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoModule names for ti_cpsw and musb
Aparna Balasubramanian [Fri, 22 Nov 2013 22:40:04 +0000 (16:40 -0600)]
Module names for ti_cpsw and musb

Adds the correct module names for ti_cpsw and musb. Without these changes, the
modular tests for these drivers were having issues running. Also, adding eth
insmod/rmmod stress tests.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd qspi modular support into ltp-ddt for dra7xx-evm
Yan Liu [Tue, 19 Nov 2013 22:35:56 +0000 (17:35 -0500)]
Add qspi modular support into ltp-ddt for dra7xx-evm

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoFix bug in nandtests
Yan Liu [Tue, 19 Nov 2013 22:34:55 +0000 (17:34 -0500)]
Fix bug in nandtests

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoEth LTP - change of scope from M to L
Aparna Balasubramanian [Thu, 14 Nov 2013 15:43:27 +0000 (09:43 -0600)]
Eth LTP - change of scope from M to L

Changing scope of some medium(M) scope FUNC ethernet LTP tests to STRESS scope
so that a longer timeout is used when test is exported to testlink database.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoMD5 crypto tests to am43xx and dra7xx targets
Aparna Balasubramanian [Wed, 13 Nov 2013 20:16:08 +0000 (14:16 -0600)]
MD5 crypto tests to am43xx and dra7xx targets

Addition of MD5 crypto to am43xx and dra7xx platform files.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoEnhance usbhost audio device search logic
Aparna Balasubramanian [Tue, 12 Nov 2013 20:59:21 +0000 (14:59 -0600)]
Enhance usbhost audio device search logic

Adding enhancements to usbhost audio search logic so that in case
of using a usb camera which has sound card, the audio search logic actually
checks that the sound card used is actually that of an audio device - that it has a play and record card associated with it.

Tested with xhci/ehci on omap5evm and for the following tests which should
cover all affected scenarios. Checked with and without camera connected.

USBXHCIHOST_S_FUNC_AUDIO_LOOPBACK_WITH_VIDEO_CAPTURE
USBHOST_S_FUNC_AUDIO_PLAYBACK_ACCESSTYPE_NONINTER_01
USBHOST_S_FUNC_AUDIO_CAPTURE_ACCESSTYPE_NONINTER_01

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoMakefile for crypto directory
Aparna Balasubramanian [Tue, 12 Nov 2013 17:27:56 +0000 (11:27 -0600)]
Makefile for crypto directory

Adding Makefile for crypto directory under testcases/ddt/scripts/crypto
Without this file, the crypto shell script does not get built
into the ltp-ddt filesystem.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdding sha224, sha384, and sha512 tests.
Aparna Balasubramanian [Tue, 12 Nov 2013 14:49:10 +0000 (08:49 -0600)]
Adding sha224, sha384, and sha512 tests.

Tests for sha224, sha384 and sha512 with appropriate changes to
platform files which support these modes. Also, adds crypto support
for am43xx platform files.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
V2:
diffstat: Fixed @requires in crypto_sha384 based on review feedback.
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoCrypto wrapper and test changes
Aparna Balasubramanian [Mon, 11 Nov 2013 19:45:16 +0000 (13:45 -0600)]
Crypto wrapper and test changes

Includes:
1) Splitting up of crypto tests into different files to take care
of supported crypto mode in requires

2) Adding appropriate supported crypto modes to individual platform
files so that only supported modes for each platform are imported into
testlink.

3) Removing cryptos from omap5-evm platform file since no hardware crypto
mode is supported on that platform.

4) Modifying crypto wrapper to take care of additional errors which can
be ignored.

5) Removing crypto in runtest/ddt since test cases are now split
into separate files as in 1) above.

Tested on am335x-evm and dra7xx-evm.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd gpio ltp-ddt support for am43xx-epos
Yan Liu [Mon, 11 Nov 2013 16:01:07 +0000 (11:01 -0500)]
Add gpio ltp-ddt support for am43xx-epos

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoFix the typo errors in am43xx platform files to make the platform name consistent
Yan Liu [Mon, 11 Nov 2013 15:59:31 +0000 (10:59 -0500)]
Fix the typo errors in am43xx platform files to make the platform name consistent

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd gpio test support in ltp-ddt
Yan Liu [Thu, 7 Nov 2013 19:33:04 +0000 (14:33 -0500)]
Add gpio test support in ltp-ddt

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agowatchdog: Fix the buffer and buffer size for write operation
Lokesh Vutla [Wed, 6 Nov 2013 06:57:23 +0000 (12:27 +0530)]
watchdog: Fix the buffer and buffer size for write operation

Currently write operation is passing a NULL buffer with length as 1.
Correcting the same.
While passing buffer we have two option:
-> either pass "\0" with length as 1
-> Pass "C\0" with length 2.( This is the magic character that the
driver expectes to enable WDOG_ALLOW_RELEASE flag)

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoWrapper for crypto tests
Aparna Balasubramanian [Tue, 5 Nov 2013 22:41:01 +0000 (16:41 -0600)]
Wrapper for crypto tests

Adding wrapper for crypto tests which use tcrypt and do not provide
a way of selecting a subset of supported algorithms.
Corresponding change to test cases is also included here.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoAdd -q option to flash_erase command in nandecc test script
Yan Liu [Tue, 29 Oct 2013 19:06:51 +0000 (15:06 -0400)]
Add -q option to flash_erase command in nandecc test script

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoTypo in eth_parallel_processing
Aparna Balasubramanian [Tue, 29 Oct 2013 18:25:24 +0000 (13:25 -0500)]
Typo in eth_parallel_processing

Fixes typo in eth_parallel_processing where the 'S' scope test had the /nfs/mount instead of /mnt/nfs_mount

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoFixed a bug in blk_device_filesystem script; also modify sanity perf test
Yan Liu [Fri, 25 Oct 2013 16:26:20 +0000 (12:26 -0400)]
Fixed a bug in blk_device_filesystem script; also modify sanity perf test

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoModifying MUSB modular config name
Aparna Balasubramanian [Fri, 25 Oct 2013 15:51:39 +0000 (10:51 -0500)]
Modifying MUSB modular config name

Modifying the usb_cnt_interface name to musb instead of ti81xx.
When probing for the right usb node in get_blk_device_node as follows:
ls /dev/disk/by-path/*-part1|grep -i "$usb_cnt_interface"
ti81xx is not present in the path any more.
Also adding beaglebone-black in the list of platforms which require this change.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoLTP-DDT: platforms files for am43xx derivatives
Aparna Balasubramanian [Thu, 24 Oct 2013 02:13:33 +0000 (21:13 -0500)]
LTP-DDT: platforms files for am43xx derivatives

Adding am43xx-epos and am43xx-gpevm platforms files
and removing am437x-evm.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd gpio to beaglebone and beaglebone-black platform files
Yan Liu [Thu, 24 Oct 2013 15:12:02 +0000 (11:12 -0400)]
Add gpio to beaglebone and beaglebone-black platform files

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoFiles are updated to match brightness index value.
Yebio Mesfin [Tue, 22 Oct 2013 20:30:03 +0000 (18:00 -0230)]
Files are updated to match brightness index value.

According to the new implementation, brightness level
is configured using index value of range [0-8], Unlike
the old implementation which was based on levels[0-110].
So the testcases will pass 0 to 8 instead of 0 to 110.

Signed-off-by: Yebio Mesfin <ymesfin@ti.com>
Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoAM335x-SK: Add crypto to platform file
Carlos Hernandez [Wed, 23 Oct 2013 12:53:13 +0000 (08:53 -0400)]
AM335x-SK: Add crypto to platform file

Signed-off-by: Carlos Hernandez <ceh@ti.com>
7 years agoFix flash erase command error
Yan Liu [Tue, 22 Oct 2013 21:13:03 +0000 (17:13 -0400)]
Fix flash erase command error

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoModified nand related scripts to make it easier debug;
Yan Liu [Tue, 22 Oct 2013 15:22:22 +0000 (11:22 -0400)]
Modified nand related scripts to make it easier debug;
also skip mkfs part when run modular dd rw tests.

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd flash erase to make sure the nand test will be not affected by the previous run
Yan Liu [Mon, 21 Oct 2013 19:14:37 +0000 (15:14 -0400)]
Add flash erase to make sure the nand test will be not affected by the previous run

Signed-off-by: Yan Liu <yan-liu@ti.com>
7 years agoAdd gpio support for BB-black, SK and BBW
Yan Liu [Sat, 19 Oct 2013 14:34:07 +0000 (10:34 -0400)]
Add gpio support for BB-black, SK and BBW

Signed-off-by: Yan Liu <yan-liu@ti.com>