From 812570e841f3aa6fb4897f3d96dff7b0d315cdf1 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Sun, 21 Dec 2014 09:24:54 +0100 Subject: [PATCH] tests: deprecate docker-test.sh --compile option It is redundant with the run-make-check.sh script and imposes additional limitations. Signed-off-by: Loic Dachary --- src/test/docker-test-helper.sh | 44 ++-------------------------------- 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/src/test/docker-test-helper.sh b/src/test/docker-test-helper.sh index 2b64baa3e9838..108f4b012cbbc 100755 --- a/src/test/docker-test-helper.sh +++ b/src/test/docker-test-helper.sh @@ -21,28 +21,6 @@ function get_image_name() { echo ceph-$os_type-$os_version } -function compile_ubuntu() { - cat < $compile - if ! $cmd --workdir $downstream $user $image bash $compile ; then - status=1 - fi - rm $compile else if ! $cmd --workdir $downstream/src $user $dev $image "$@" ; then status=1 @@ -210,7 +181,6 @@ $0 [options] command args ... [--all types+versions] list of docker image repositories and tags [--shell] run an interactive shell in the container - [--compile] run ./autogen.sh && ./configure && make in the specified types+versions [--remove-all] remove the container and the image for the specified types+versions [--dev] run the container with --volume /dev:/dev @@ -274,10 +244,7 @@ The --os-type and --os-version must be exactly as displayed by docker images: The --os-type value can be any string in the REPOSITORY column, the --os-version can be any string in the TAG column. -The --shell, --compile and --remove actions are mutually exclusive. - -Compile in centos7 -docker-test.sh --os-type centos --os-version centos7 --compile +The --shell and --remove actions are mutually exclusive. Run make check in centos7 docker-test.sh --os-type centos --os-version centos7 -- make check @@ -300,7 +267,7 @@ function main_docker() { fi local temp - temp=$(getopt -o scdht:v:u:o:a: --long remove-all,verbose,shell,compile,dev,help,os-type:,os-version:,user:,opts:,all: -n $0 -- "$@") || return 1 + temp=$(getopt -o scdht:v:u:o:a: --long remove-all,verbose,shell,dev,help,os-type:,os-version:,user:,opts:,all: -n $0 -- "$@") || return 1 eval set -- "$temp" @@ -309,7 +276,6 @@ function main_docker() { local all local remove=false local shell=false - local compile=false local dev=false local user=$USER local opts @@ -328,10 +294,6 @@ function main_docker() { shell=true shift ;; - -c|--compile) - compile=true - shift - ;; -d|--dev) dev=true shift @@ -384,8 +346,6 @@ function main_docker() { remove_all $os_type $os_version || return 1 elif $shell ; then run_in_docker $os_type $os_version $dev $user "$opts" bash || return 1 - elif $compile ; then - run_in_docker $os_type $os_version $dev $user "$opts" compile || return 1 else run_in_docker $os_type $os_version $dev $user "$opts" "$@" || return 1 fi -- 2.39.5