summaryrefslogtreecommitdiff
path: root/automated/linux/dockerized-tests/README.MD
blob: 4d3dab69dc1e905b954817ec77e45e700ca50a0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Usage of dockerized tests

## Local execution
### Issue commands manually
  Without customized test parameters:
  ```
  # docker run --privileged --init linaro/testdef-arm64-debian-stretch:2018.08 test-runner -d automated/linux/smoke/smoke.yaml
  ```

  With customized test parameters:
  ```
  # docker run --privileged --init linaro/testdef-arm64-debian-stretch:2018.08 test-runner -d automated/linux/ltp/ltp.yaml -r TST_CMDFILES=syscalls SKIPFILE=skipfile-lkft.yaml BOARD=hi6220-hikey BRANCH=4.16 ENVIRONMENT=production
  ```

### Using local-run.sh
   ```
   # ./local-run.sh -d linaro/testdef-arm64-debian-stretch:2018.08 -t automated/linux/dd-wr-speed/dd-wr-speed.yaml -r ITERATION=3
   ```
## Test run in LAVA
   Test action example:
   ```
   - test:
     namespace: hikey
     timeout:
       minutes: 120
     definitions:
     - repository: https://git.linaro.org/qa/test-definitions.git
       from: git
       path: automated/linux/dockerized-tests/local-run.yaml
       name: smoke
       parameters:
         DOCKER_IMG: "linaro/testdef-arm64-debian-stretch:2018.08"
         TEST: automated/linux/smoke/smoke.yaml
       timeout:
         # The first test needs time to pull and extract docker image.
         minutes: 30
     - repository: https://git.linaro.org/qa/test-definitions.git
       from: git
       path: automated/linux/dockerized-tests/local-run.yaml
       name: ltp-syscalls
       parameters:
         DOCKER_IMG: "linaro/testdef-arm64-debian-stretch:2018.08"
         TEST: automated/linux/ltp/ltp.yaml
         TESTDEF_PARAMS: "TST_CMDFILES='syscalls' SKIPFILE='skipfile-lkft.yaml' BOARD='hi6220-hikey' BRANCH='4.16' ENVIRONMENT='production'"
       timeout:
         minutes: 90
    ```
## Drive test run via SSH
  The same as local-run, but use over-ssh.yaml and over-ssh.sh instead and provide required additional parameters.
  ```
  TARGET_IP: ""
  SSH_USER: ""
  SSH_PASSWD: ""
  ```

## Dockerfiles

  [stretch-arm64-testdef](https://git.linaro.org/ci/dockerfiles.git/tree/stretch-arm64-testdef)

  [stretch-armhf-testdef](https://git.linaro.org/ci/dockerfiles.git/tree/stretch-armhf-testdef)

## Jenkins build job for new tag on qa/test-definitions
  [testdef-docker-image](https://ci.linaro.org/job/testdef-docker-image/)