summaryrefslogtreecommitdiff
path: root/tct
AgeCommit message (Collapse)AuthorFilesLines
2017-01-16Make TITS profile independentAleksander Mistewicz4-6/+6
Overall TITS adjustments Change-Id: I8a9b1255a122efa50a8275a558c0bc01174ad4fa Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-10Add sync after screenshooter installAleksander Mistewicz1-0/+1
Change-Id: I00a5064b78e0008281bb57a9788eb337d5909e1c Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-10Move wait_ssh() to tct/conf/conf.shAleksander Mistewicz2-36/+44
Change-Id: I55f0426b19a503ca998e711d350d5c4249381848 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Add tct/artik_prepare_flash.shAleksander Mistewicz3-0/+110
Change-Id: I1ecf8cf7fe257c2e015ebd631514833afecb494a Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Move wait_sdb() to tct/conf/conf.shAleksander Mistewicz2-22/+32
Change-Id: I49afd4a22c6959f25f7e009ea36fbad589c9aa3e Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Add mbr64 target supportAleksander Mistewicz1-0/+3
mbr64 is a minimal generic x86_64 image. Database update is required. Delete it or run: . tsp/common.sh sqlite3 "${DBPATH}" -batch < tsp/results-values-device.sql Change-Id: I7f4e45b0da4afa06d662c3a6a378076a933a3130 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Add check, install to tct/run/common_test.pyAleksander Mistewicz1-0/+39
Change-Id: Ic7aac3d125e923d559bac7e4b1c3e68af9fa17d7 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Add set_usb_mode to tct/prepare/prepare.shAleksander Mistewicz2-0/+8
Prepare image with set_usb_mode() Change-Id: I7b1109947512d7814ca9ba586824ff7d482dbd04 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Add dyper functions to tct/flash/flash.shAleksander Mistewicz1-0/+30
Change-Id: I300a5c6211c66184e0334f5b16ceae568691fd4f Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Add push to SSH and SDB in tct/run/common_test.pyAleksander Mistewicz1-0/+13
Change-Id: If08193b590ad9ba6728c32cd7105062f2d2ffa18 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Add Screenshot to tct/run/common_test.pyAleksander Mistewicz1-0/+33
Add screenshot_test() to tct/run/common_test.py Add screenshot test to tsp/common_test.yaml Change-Id: I28b9945473ff744bcfe3d8336d5c3e43dfe6ee95 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Add pull to SSH and SDB in tct/run/common_test.pyAleksander Mistewicz1-0/+13
Change-Id: I5f549d1fa9dff3bcc075066521a3cd38f2335a1f Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Add screenshots to tests on odroid imagesAleksander Mistewicz2-0/+10
Link to snapshot's screenshot is created and updated. It will be used for comparison, eventually. Change-Id: I16e70d1a1a746362ff7a43705ee722db608d930a Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-03Add destination argument to ssh_copy and sdb_copyAleksander Mistewicz1-4/+10
It is optional and defaults to "/tmp/smoke.sh". Change-Id: I74db36b9f0066925854fae3d0b4d9079bcfb2f6b Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-03Fake EDID on odroid imagesAleksander Mistewicz3-0/+10
Add tct/prepare/hdmi_force.sh Author of this script: Andrzej Hajda <a.hajda@samsung.com> Any change to this file may break this hack. Add install_hdmi_force to tct/prepare/prepare.sh Change-Id: Ie08f234c2dc8c5f1973d64e933e10e371dbcadc6 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Move "run" section to separate file for minnowAleksander Mistewicz2-19/+64
Change-Id: I56ed1b7142ea80397af7653131d7d89587a126e0 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Replace part of minnow script by get_ip()Aleksander Mistewicz2-5/+15
Move TL_IP_CONF to tct/common.sh Change-Id: I3b78a20e95e237e402da56e3cb053d505f356e41 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Move "run" section to separate file for odroidAleksander Mistewicz2-17/+58
Change-Id: Ia905a23c3975cde0cfadea484db39b1816c711e0 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Show journal entries with error priorityAleksander Mistewicz1-0/+1
Change affects smoke tests only. Change-Id: I95d9729b471c59d709e6eaa4a610a80cf68fe9eb Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Add user session listing to smoke_tests.shAleksander Mistewicz1-0/+4
Change-Id: I88521ff482b619dac3a15727b3dad63191cf3c0c Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Add avocado services in "activating" state testAleksander Mistewicz1-1/+2
systemctl_test takes additional optional argument - state. Default value is 'failed'. Change-Id: Ie244a15f952f0fcde916899ceadf55eab70a284f Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Add listing of services in "activating" stateAleksander Mistewicz1-1/+1
Some services are being restarted before they fail. There are two solutions: * wait until all services activate or fail * list services that are activating 2nd is used until 1st is being developed. Change-Id: Ib60e28ac057d38fa97aea10d42c28410efc2972e Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Force crash-worker to create reportsAleksander Mistewicz1-0/+2
It takes undefined amount of time for dump_systemstate to gather dlog messages. Therefore Avocado test results were uncomparable. Killing the process causes the script crash-manager.sh to create the report (tar archive). dump_systemstate return value is ignored. Change-Id: I978ea523e4925a15591233e12dd65c446958af18 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Unify odroid and minnow sleep valuesAleksander Mistewicz3-13/+18
Sleep values are now stored in: tct/common.sh Test results are now comparable. Change-Id: I32b08ae0b959b01d417665e8b0c487d09917d4f4 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Follow crash-worker path changeAleksander Mistewicz2-3/+4
Change path "/opt/share/crash" to "/opt/usr/share/crash". Change-Id: I6d8480a61912aabc2acbdc7a37b1275b1954594a Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Run Avocado tests on odroid and minnowAleksander Mistewicz2-0/+18
Change-Id: I438d266802b9d9b29e4dd3f7314f3ec1f5776fca Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Add run_avocado_sdb() to tct/run/run.shAleksander Mistewicz1-0/+15
Change-Id: I656c7302ed5fbf79b277890920b9d93b897eeb9d Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Add run_avocado_ssh() to tct/run/run.shAleksander Mistewicz1-0/+17
Change-Id: Id3ede4bad3079cb95404a5f733dcc67b62fb087d Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Add SDB support to tct/run/common_test.pyAleksander Mistewicz1-8/+29
Change-Id: Ic5a135a2763762cacbd0d756e1dea077d545204d Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Add avocado testscript: tct/run/common_test.pyAleksander Mistewicz1-0/+88
Change-Id: I2d0bb33c99a2672175fd06ccc19bd0720ebde1d2 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Preserve SSH session between callsAleksander Mistewicz1-0/+3
Connection time to DUT averages to 28s. After first call each subsequent is near instant. Change-Id: I4fe50406fec06a7468d0e904295a4f7669803b2d Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Fix issues reported by ShellCheck in tctAleksander Mistewicz15-32/+32
ShellCheck: https://github.com/koalaman/shellcheck Command below should not print anything. shellcheck -e SC2164,SC1090,SC2148,SC2010,SC2155,SC2024,SC2086,SC2044 \ $(find tct -name "*.sh") Change-Id: I30d7db0bdd1370d8010b8adbea76bf65f2e07373 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Do not run sshpass and sd-mux-ctrl as rootAleksander Mistewicz3-7/+7
When using sshpass in a container special privileges were required. It is no longer the case as TITS should run bare metal. User should be member of 'plugdev' group. Change-Id: I785c262dae9d78bc0b07759ba6e29df1fe744adc Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-11-02Dump variable name and value to sysctl.result fileAleksander Mistewicz3-3/+16
tct/run/smoke_tests.sh produces some numerical output. This patch makes it easy to store and retreive values as in line below: awk -v KEY="${KEY}" '$1 == KEY {print $2}' $DICT where $KEY is variable name and $DICT is sysctl.result file. Change-Id: I3eee61152a189ad443fa641f5160f516567506f1 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-10-07Fix missing mountpoint directory in mount_image()Aleksander Mistewicz2-2/+2
Remove redundant mkdirs from tct/odroid_prepare_flash_conf.sh Change-Id: I6da51ef4b7e82debf66eea88570b7e997bf7855a Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-10-07Add timeout to copy_ssh and run_smoke_sshAleksander Mistewicz2-2/+2
Change-Id: I64e6f8643cda4e89b5b35b0d472fb548ec3320c8 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-10-07Remove magic HOLDOFF number in resource_locking.pyAleksander Mistewicz1-5/+10
Change-Id: I56cf4cadb695bc12b5494f4fab404ab8905af733 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-10-07Remove magic INC number in resource_locking.pyAleksander Mistewicz1-5/+10
Change-Id: I25ada81e4f2224f8ec23d43c960ff435ad201397 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-10-07Check for UUID files in tct/resource_locking.pyAleksander Mistewicz1-2/+17
Change-Id: Ib593cf3958392807d05d6c07cecb27c93024f581 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-10-07Add "--unlockfailed" to tct/resource_locking.pyAleksander Mistewicz1-0/+13
Change-Id: I6c00f39d69fcf617c0dcbfb266335c5b44a29604 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-10-07Add count files to tct/resource_locking.pyAleksander Mistewicz1-2/+34
Change-Id: Ie06d890490a66616d909f7953c04e3c86df62a95 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-10-07Add "--retrylock" to tct/resource_locking.pyAleksander Mistewicz1-0/+12
Change-Id: I9445f87d19db642c14487c8bde11b48764f1656e Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-10-07Add "--unlock" to tct/resource_locking.pyAleksander Mistewicz1-1/+17
Change-Id: Ib7f21dab314eca65a7ee4a0c85a66f0cce02af05 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-10-07Add "--lock" to tct/resource_locking.pyAleksander Mistewicz1-0/+28
"target" argument is now mandatory. Change-Id: I6dbcd586da1320ee1ee20f131e8290c4e06fdb13 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-09-26Add tct/resource_locking.pyAleksander Mistewicz1-0/+104
Change-Id: I8420edfdc606544bbc41bee93cd314d39e8048b1 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-08-24Switch off a DUT after running smoke testsAleksander Mistewicz2-0/+6
Running Tizen images dramatically reduces sdcard lifetime. Change-Id: I01ba0d05cce99800bb769d52fa823f39bbe4b9bc Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-08-24Add error handling to change_uuid()Aleksander Mistewicz1-3/+7
Change-Id: I51f06e0a797018e230861421b5aa16d8740a3f21 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-08-24Exit script on flash_dd or bmaptool failAleksander Mistewicz2-0/+8
Change-Id: I4c7d230df8719c708b5600266acad8c9c1bcf6cc Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-07-11Add ConnectTimeout to tct/conf/ssh_configAleksander Mistewicz1-0/+1
Change-Id: Ic7b0b03b9cfe56fc5464696c421f42445ab44ffd Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-07-11Add more tests to tct/run/smoke_tests.shAleksander Mistewicz1-1/+5
Change-Id: I19d994cdc074d39d830acf1032b0997749f62bb0 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>