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
=== modified file 'actions.yaml'
--- actions.yaml 2016-02-19 15:14:48 +0000
+++ actions.yaml 2017-02-16 15:57:24 +0000
@@ -1,5 +1,9 @@
1custom:1custom:
2 description: "Custom Autobench tests"2 description: "Custom Autobench tests"
3 params:
4 testnames:
5 type: string
6 description: "List specfic tests that do not have actions defined"
3dbench:7dbench:
4 description: A tool to generate I/O workloads to either a filesystem.8 description: A tool to generate I/O workloads to either a filesystem.
5stress:9stress:
610
=== modified file 'actions/custom'
--- actions/custom 2015-11-16 05:57:01 +0000
+++ actions/custom 2017-02-16 15:57:24 +0000
@@ -7,5 +7,5 @@
77
8. actions/benchmark8. actions/benchmark
99
10params=`action-get tests`10params=`action-get testnames`
11run_benchmark $params11run_benchmark $params
1212
=== modified file 'config.yaml'
--- config.yaml 2016-02-15 14:23:06 +0000
+++ config.yaml 2017-02-16 15:57:24 +0000
@@ -7,3 +7,7 @@
7 type: string7 type: string
8 default: "git://kernel.ubuntu.com/ubuntu/autotest-client-tests"8 default: "git://kernel.ubuntu.com/ubuntu/autotest-client-tests"
9 description: "Location of the autotest client testcases"9 description: "Location of the autotest client testcases"
10 autotest-custom-tests:
11 type: string
12 default: "https://github.com/mreed8855/custom-tests.git"
13 description: "Location of the custom autotest client testcases"
1014
=== modified file 'hooks/install'
--- hooks/install 2015-11-16 05:57:01 +0000
+++ hooks/install 2017-02-16 15:57:24 +0000
@@ -9,6 +9,9 @@
99
10AUTOTEST_SERVER=`config-get autotest-server`10AUTOTEST_SERVER=`config-get autotest-server`
11AUTOTEST_CLIENT=`config-get autotest-client`11AUTOTEST_CLIENT=`config-get autotest-client`
12AUTOTEST_CUSTOM_TESTS=`config-get autotest-custom-tests`
13
14# CUSTOM_TESTS_DIR="custom-tests"
1215
13LOG_FILE_STATUS="/tmp/upstart.log"16LOG_FILE_STATUS="/tmp/upstart.log"
1417
@@ -17,12 +20,21 @@
1720
18git clone ${AUTOTEST_SERVER} 2>&1 | tee -a ${LOG_FILE_STATUS}21git clone ${AUTOTEST_SERVER} 2>&1 | tee -a ${LOG_FILE_STATUS}
19git clone ${AUTOTEST_CLIENT} 2>&1 | tee -a ${LOG_FILE_STATUS}22git clone ${AUTOTEST_CLIENT} 2>&1 | tee -a ${LOG_FILE_STATUS}
23git clone ${AUTOTEST_CUSTOM_TESTS} 2>&1 | tee -a ${LOG_FILE_STATUS}
24# if [ -z ${AUTOTEST_CUSTOM_TESTS} ]; then
25# git clone ${AUTOTEST_CUSTOM_TESTS} 2>&1 | tee -a ${LOG_FILE_STATUS}
26# fi
2027
21# Set for Autotest server 28# Set for Autotest server
22export AUTODIR=$CHARM_DIR/.tmp/autotest/29export AUTODIR=$CHARM_DIR/.tmp/autotest/
23mkdir -p $CHARM_DIR/.tmp/autotest/30mkdir -p $CHARM_DIR/.tmp/autotest/
24mv autotest/* $CHARM_DIR/.tmp/autotest/31mv autotest/* $CHARM_DIR/.tmp/autotest/
25mv autotest-client-tests/* $CHARM_DIR/.tmp/autotest/client/tests/32mv autotest-client-tests/* $CHARM_DIR/.tmp/autotest/client/tests/
33mv custom-tests/* $CHARM_DIR/.tmp/autotest/client/tests/
34
35#if [ -d "CUSTOM_TESTS_DIR" ]; then
36# mv custom-tests/* $CHARM_DIR/.tmp/autotest/client/tests/
37#fi
2638
27# missing file for stress.py39# missing file for stress.py
28wget http://people.canonical.com/~mreed/autotest/utils_memory.py40wget http://people.canonical.com/~mreed/autotest/utils_memory.py

Subscribers

People subscribed via source and target branches

to all changes: