[Fuego] [PATCH 2/6] curl: add test_pre_check for command "curl"
Liu Wenlong
liuwl.fnst at cn.fujitsu.com
Mon Nov 6 15:42:32 UTC 2017
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
More information about the Fuego
mailing list