diff options
author | Chase Qi <chase.qi@linaro.org> | 2016-04-28 08:53:53 +0800 |
---|---|---|
committer | Chase Qi <chase.qi@linaro.org> | 2016-04-28 08:53:53 +0800 |
commit | 1230e13f20ddfb7f45106d8373d2ef33ae4ea808 (patch) | |
tree | c2203469f40ce9fd40e08e85415f587569a6d823 | |
parent | 9fd4a7b9da302a41840b989ff43fe48baeb32238 (diff) |
Add aosp-24h-stress-test.yaml
-rwxr-xr-x | 24h-stress-test.sh | 2 | ||||
-rw-r--r-- | aosp-24h-stress-test.yaml | 42 |
2 files changed, 43 insertions, 1 deletions
diff --git a/24h-stress-test.sh b/24h-stress-test.sh index 10a3688..ac3a3bc 100755 --- a/24h-stress-test.sh +++ b/24h-stress-test.sh @@ -130,7 +130,7 @@ stress_oom() dmesg --follow > stress_oom_kern.log 2>&1 & kernel_log=$! # Disable oom-killer on the log collecting process. - echo -17 > /proc/$kernel_log/oom_adj + echo -17 > /proc/$kernel_log/oom_score_adj # Run stress-ng-vm test to trigger oom-killer. # In stress-vm.c file, NO_MEM_RETRIES_MAX has been increased to 1000000000 for OOM stress test. diff --git a/aosp-24h-stress-test.yaml b/aosp-24h-stress-test.yaml new file mode 100644 index 0000000..b7b3608 --- /dev/null +++ b/aosp-24h-stress-test.yaml @@ -0,0 +1,42 @@ +metadata: + name: aosp-24h-stress-test + format: "Lava-Test-Shell Test Definition 1.0" + description: "Run stress_ng, stress_oom and stress_network test on Debian" + maintainer: + - chase.qi@linaro.org + os: + - android + scope: + - stress + devices: + - hi6220-hikey + - apq8016-sbc + +install: + +params: + # Specify test to run. + # Supported tests: stress_ng, stress_oom and stress_network. + TEST: "stress_ng" + # Specify test duration in seconds. + DURATION: "21600" + # Specify network interface, file link and md5 sum for stress_network test. + INTERFACE: "wlan0" + LINK: "http://people.linaro.org/~chase.qi/testdata/stress-network.img" + MD5: "e5c834fbdaa6bfd8eac5eb9404eefdd4" + +run: + steps: + - if [ "$TEST" = "stress_ng" ]; then + - ./aosp-24h-stress-test.sh -t $TEST -d $DURATION + - elif [ "$TEST" = "stress_oom" ]; then + - ./aosp-24h-stress-test.sh -t $TEST -d $DURATION + - elif [ "$TEST" = "stress_network" ]; then + - ./aosp-24h-stress-test.sh -t $TEST -d $DURATION -i $INTERFACE -l $LINK -m $MD5 + - fi + +parse: + pattern: "(?P<test_case_id>.*-*):\\s+(?P<result>(pass|fail))" + fixupdict: + PASS: pass + FAIL: fail |