Merge lp:~mreed8855/charms/trusty/autotest/custom_test into lp:~mreed8855/charms/trusty/autotest/trunk

Proposed by Michael Reed
Status: Needs review
Proposed branch: lp:~mreed8855/charms/trusty/autotest/custom_test
Merge into: lp:~mreed8855/charms/trusty/autotest/trunk
Diff against target: 72 lines (+21/-1)
4 files modified
actions.yaml (+4/-0)
actions/custom (+1/-1)
config.yaml (+4/-0)
hooks/install (+12/-0)
To merge this branch: bzr merge lp:~mreed8855/charms/trusty/autotest/custom_test
Reviewer Review Type Date Requested Status
Michael Reed Pending
Review via email: mp+317505@code.launchpad.net

Description of the change

- Added the option to upload custom tests to the autotest/client/tests directory
- Updated the custom script in the actions directory to run the custom tests

To post a comment you must log in.

Unmerged revisions

6. By Michael Reed

-Modified the "custom" script in the actions directory to take multiple test names
-added a config option to upload custom made tests for autotest. They will be uploaded into the
autotest/client/tests directory

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'actions.yaml'
2--- actions.yaml 2016-02-19 15:14:48 +0000
3+++ actions.yaml 2017-02-16 15:57:24 +0000
4@@ -1,5 +1,9 @@
5 custom:
6 description: "Custom Autobench tests"
7+ params:
8+ testnames:
9+ type: string
10+ description: "List specfic tests that do not have actions defined"
11 dbench:
12 description: A tool to generate I/O workloads to either a filesystem.
13 stress:
14
15=== modified file 'actions/custom'
16--- actions/custom 2015-11-16 05:57:01 +0000
17+++ actions/custom 2017-02-16 15:57:24 +0000
18@@ -7,5 +7,5 @@
19
20 . actions/benchmark
21
22-params=`action-get tests`
23+params=`action-get testnames`
24 run_benchmark $params
25
26=== modified file 'config.yaml'
27--- config.yaml 2016-02-15 14:23:06 +0000
28+++ config.yaml 2017-02-16 15:57:24 +0000
29@@ -7,3 +7,7 @@
30 type: string
31 default: "git://kernel.ubuntu.com/ubuntu/autotest-client-tests"
32 description: "Location of the autotest client testcases"
33+ autotest-custom-tests:
34+ type: string
35+ default: "https://github.com/mreed8855/custom-tests.git"
36+ description: "Location of the custom autotest client testcases"
37
38=== modified file 'hooks/install'
39--- hooks/install 2015-11-16 05:57:01 +0000
40+++ hooks/install 2017-02-16 15:57:24 +0000
41@@ -9,6 +9,9 @@
42
43 AUTOTEST_SERVER=`config-get autotest-server`
44 AUTOTEST_CLIENT=`config-get autotest-client`
45+AUTOTEST_CUSTOM_TESTS=`config-get autotest-custom-tests`
46+
47+# CUSTOM_TESTS_DIR="custom-tests"
48
49 LOG_FILE_STATUS="/tmp/upstart.log"
50
51@@ -17,12 +20,21 @@
52
53 git clone ${AUTOTEST_SERVER} 2>&1 | tee -a ${LOG_FILE_STATUS}
54 git clone ${AUTOTEST_CLIENT} 2>&1 | tee -a ${LOG_FILE_STATUS}
55+git clone ${AUTOTEST_CUSTOM_TESTS} 2>&1 | tee -a ${LOG_FILE_STATUS}
56+# if [ -z ${AUTOTEST_CUSTOM_TESTS} ]; then
57+# git clone ${AUTOTEST_CUSTOM_TESTS} 2>&1 | tee -a ${LOG_FILE_STATUS}
58+# fi
59
60 # Set for Autotest server
61 export AUTODIR=$CHARM_DIR/.tmp/autotest/
62 mkdir -p $CHARM_DIR/.tmp/autotest/
63 mv autotest/* $CHARM_DIR/.tmp/autotest/
64 mv autotest-client-tests/* $CHARM_DIR/.tmp/autotest/client/tests/
65+mv custom-tests/* $CHARM_DIR/.tmp/autotest/client/tests/
66+
67+#if [ -d "CUSTOM_TESTS_DIR" ]; then
68+# mv custom-tests/* $CHARM_DIR/.tmp/autotest/client/tests/
69+#fi
70
71 # missing file for stress.py
72 wget http://people.canonical.com/~mreed/autotest/utils_memory.py

Subscribers

People subscribed via source and target branches

to all changes: