[Fuego] [PATCH 2/6] curl: add test_pre_check for command "curl"
Bird, Timothy
Tim.Bird at sony.com
Tue Nov 7 19:09:02 UTC 2017
> -----Original Message-----
> From: Liu Wenlong on Monday, November 06, 2017 7:43 AM
>
> This test depends on "curl" being already installed on the target.
>
> Signed-off-by: Liu Wenlong <liuwl.fnst at cn.fujitsu.com>
> ---
> engine/tests/Functional.curl/fuego_test.sh | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/engine/tests/Functional.curl/fuego_test.sh
> b/engine/tests/Functional.curl/fuego_test.sh
> index 90d24dd..582544e 100755
> --- a/engine/tests/Functional.curl/fuego_test.sh
> +++ b/engine/tests/Functional.curl/fuego_test.sh
> @@ -1,3 +1,8 @@
> +function test_pre_check {
> + is_on_target_path curl PROGRAM_CURL
> + assert_define PROGRAM_CURL
> +}
> +
> function test_run {
> report "if curl -o test.html www.baidu.com > /dev/null; then echo 'TEST-1
> OK'; else echo 'TEST-1 FAILED'; fi;\
> if curl -i -r 0-1024 http://www.sina.com.cn -o sina_part1.html > /dev/null;
> then echo 'TEST-2 OK'; else echo 'TEST-2 FAILED'; fi;\
> --
> 2.7.4
Applied. Thanks.
-- Tim
More information about the Fuego
mailing list