Add a new test suite called Functional.busybox.
PATCH 1/1 Add a new test suite called Functional.busybox.
--- engine/tests/Functional.busybox/fuego_test.sh | 17 +++++++++++++++++ engine/tests/Functional.busybox/spec.json | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100755 engine/tests/Functional.busybox/fuego_test.sh create mode 100644 engine/tests/Functional.busybox/spec.json
engine/tests/Functional.busybox/fuego_test.sh new file +17 -0
@@ -0,0 +1,17 @@ +tarball=busybox.tar.gz + + +function test_deploy { + put $TEST_HOME/busybox_test.sh $BOARD_TESTDIR/fuego.$TESTDIR/ + put -r $TEST_HOME/testsuits $BOARD_TESTDIR/fuego.$TESTDIR/ +} + +function test_run { + report "cd $BOARD_TESTDIR/fuego.$TESTDIR; export test_tcpip_host=$SRV_IP; export test_port_host=$SRV_PORT; export httproot_dir_host=fuego/userContent/readme.txt; sh -v busybox_test.sh" +} + +function test_processing { + log_compare "$TESTDIR" "89" "pass" "p" +} + +
engine/tests/Functional.busybox/spec.json new file +7 -0
@@ -0,0 +1,7 @@ +{ + "testName": "Functional.busybox", + "specs": { + "default": {} + } +} +
Signature · 1 line
1.8.3.1
Hi Tim,
I'm very sorry, there is a problem with the previous patch, please ignore it. The modified patch has been sent as an attachment. Please confirm it.
Best regards.
-----Original Message-----
From: Wang, Mingyu/王 鸣瑜
Sent: Friday, May 18, 2018 10:39 PM
To: [email protected]
Cc: Wang, Mingyu/王 鸣瑜 <[email protected]>
Subject: [PATCH] Add a new test suite called Functional.busybox.
--- engine/tests/Functional.busybox/fuego_test.sh | 17 +++++++++++++++++ engine/tests/Functional.busybox/spec.json | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100755 engine/tests/Functional.busybox/fuego_test.sh create mode 100644 engine/tests/Functional.busybox/spec.json
engine/tests/Functional.busybox/fuego_test.sh new file +16 -0
@@ -0,0 +1,17 @@ +tarball=busybox.tar.gz + + +function test_deploy { + put $TEST_HOME/busybox_test.sh $BOARD_TESTDIR/fuego.$TESTDIR/ + put -r $TEST_HOME/testsuits $BOARD_TESTDIR/fuego.$TESTDIR/ } + +function test_run { + report "cd $BOARD_TESTDIR/fuego.$TESTDIR; export test_tcpip_host=$SRV_IP; export test_port_host=$SRV_PORT; export httproot_dir_host=fuego/userContent/readme.txt; sh -v busybox_test.sh" +} + +function test_processing { + log_compare "$TESTDIR" "89" "pass" "p" +} + +
engine/tests/Functional.busybox/spec.json new file +7 -0
@@ -0,0 +1,7 @@ +{ + "testName": "Functional.busybox", + "specs": { + "default": {} + } +} +
--
1.8.3.1
From a035c791df125260735a7fe09313db76bfe6c4e4 Mon Sep 17 00:00:00 2001
From: Wang Mingyu <[email protected]>
Date: Fri, 18 May 2018 09:23:58 -0700
Subject: [PATCH] Add a new test suite called Functional.busybox.
--- engine/tests/Functional.busybox/fuego_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
engine/tests/Functional.busybox/fuego_test.sh +1 -1
@@ -2,7 +2,7 @@ tarball=busybox.tar.gz function test_deploy { - put $TEST_HOME/busybox_test.sh $BOARD_TESTDIR/fuego.$TESTDIR/ + put busybox_test.sh $BOARD_TESTDIR/fuego.$TESTDIR/ put -r $TEST_HOME/testsuits $BOARD_TESTDIR/fuego.$TESTDIR/ }
Signature · 1 line
1.8.3.1
Thanks for the patches! We always appreciate contributions. Please see my comments inline below.
Quoted 4 lines
-----Original Message-----
From: Wang, Mingyu
I'm very sorry, there is a problem with the previous patch, please ignore it. The modified patch has been sent as an attachment. Please confirm it.
It sounded like the new patch would be a complete replacement of the earlier patch, but the patch that was attached was just a change of part of the commit. It did not apply by itself.
In any event, here is some feedback...
Quoted 24 lines
-----Original Message-----
From: Wang, Mingyu/王 鸣瑜
Sent: Friday, May 18, 2018 10:39 PM
To: [email protected]
Cc: Wang, Mingyu/王 鸣瑜 <[email protected]>
Subject: [PATCH] Add a new test suite called Functional.busybox.Signed-off-by Wang Mingyu <[email protected]>--- engine/tests/Functional.busybox/fuego_test.sh | 17 +++++++++++++++++ engine/tests/Functional.busybox/spec.json | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100755 engine/tests/Functional.busybox/fuego_test.sh create mode 100644 engine/tests/Functional.busybox/spec.jsonengine/tests/Functional.busybox/fuego_test.sh new file +0
-0
engine/tests/Functional.busybox/fuego_test.sh line 1
Quoted 1 line
engine/tests/Functional.busybox/fuego_test.sh new file +1
-0@@ -0,0 +1,17 @@ +tarball=busybox.tar.gz
I looked at the contents of the tarball. This particular tarball only holds a single shell script. In this case, it is better to just have it in the $TEST_HOME directory, and not use a tarball at all. My recommendation would be to add busybox_test.sh to $TESTHOME, and remove this tarball line.
engine/tests/Functional.busybox/fuego_test.sh line 3
Quoted 2 lines
engine/tests/Functional.busybox/fuego_test.sh new file +2
-0+ +
(minor) my preference would be only 1 blank line here.
engine/tests/Functional.busybox/fuego_test.sh line 5
Quoted 2 lines
engine/tests/Functional.busybox/fuego_test.sh new file +2
-0+function test_deploy { + put $TEST_HOME/busybox_test.sh $BOARD_TESTDIR/fuego.$TESTDIR/
I'd leave this as is (not change it like your followup patch)
Quoted 6 lines
engine/tests/Functional.busybox/fuego_test.sh new file +4
-0+ put -r $TEST_HOME/testsuits $BOARD_TESTDIR/fuego.$TESTDIR/ } + +function test_run { + report "cd $BOARD_TESTDIR/fuego.$TESTDIR; exporttest_tcpip_host=$SRV_IP; export test_port_host=$SRV_PORT; export httproot_dir_host=fuego/userContent/readme.txt; sh -v
busybox_test.sh"
Some line continuations would be good here to keep this from getting too long. e.g.
report "cd $BOARD_TESTDIR/fuego.$TESTDIR; \
export test_tcpip_host=$SRV_IP ; \
export test_port_host=$SRV_PORT; \
export httproot_dir_host=fuego/userContent/readme.txt; \
sh -v busybox_test.sh"I know other tests have some pretty long lines, but I'd like for new tests to be better at having shorter lines.
engine/tests/Functional.busybox/fuego_test.sh line 13
Quoted 4 lines
engine/tests/Functional.busybox/fuego_test.sh new file +4
-0+} + +function test_processing { + log_compare "$TESTDIR" "89" "pass" "p"
Is 89 the right number for the tests you have submitted so far?
Quoted 18 lines
engine/tests/Functional.busybox/fuego_test.sh new file +3
-0+} + +engine/tests/Functional.busybox/spec.json new file +7
-1@@ -0,0 +1,7 @@ +{ + "testName": "Functional.busybox", + "specs": { + "default": {} + } +} + --
Quoted 2 lines
1.8.3.1
Looks good.
Did you want me to apply this, and fix it up myself, or do you want to fix it and send new patches?
-- Tim
Hi Tim,
Thank you for your comments, they are helpful.
Quoted 4 lines
I looked at the contents of the tarball. This particular tarball only holds a single shell script. In this case, it is better to just have it in the $TEST_HOME directory, and not use a tarball at all. My recommendation would be to add
busybox_test.shto $TESTHOME, and remove this tarball line.
The tarball has been deleted.
Quoted 3 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+ +(minor) my preference would be only 1 blank line here.
One blank line have been deleted.
Quoted 9 lines
Some line continuations would be good here to keep this from getting too long. e.g.
report "cd $BOARD_TESTDIR/fuego.$TESTDIR; \ export test_tcpip_host=$SRV_IP ; \ export test_port_host=$SRV_PORT; \ export httproot_dir_host=fuego/userContent/readme.txt; \ sh -v busybox_test.sh"I know other tests have some pretty long lines, but I'd like for new tests to be better at having shorter lines.
It has been revised to short lines according to the opinion.
Quoted 5 lines
engine/tests/Functional.busybox/fuego_test.sh new file +4
-0+} + +function test_processing { + log_compare "$TESTDIR" "89" "pass" "p"Is 89 the right number for the tests you have submitted so far?
There are 89 test cases that I want to submit. This time only submitted 4 of them. The number has been modified to 4. and when other test cases are submitted, the number will be modified according to the actual number of cases that are submitted.
Quoted 2 lines
Did you want me to apply this, and fix it up myself, or do you want to fix it and send new patches?
I will fix it by myself and send new patches.
--Wangmy
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Saturday, May 19, 2018 9:23 AM
To: Wang, Mingyu/王 鸣瑜 <[email protected]>; [email protected]
Subject: RE: [PATCH] Add a new test suite called Functional.busybox.
Thanks for the patches! We always appreciate contributions. Please see my comments inline below.
Quoted 4 lines
-----Original Message-----
From: Wang, Mingyu
I'm very sorry, there is a problem with the previous patch, please ignore it. The modified patch has been sent as an attachment. Please confirm it.
It sounded like the new patch would be a complete replacement of the earlier patch, but the patch that was attached was just a change of part of the commit. It did not apply by itself.
In any event, here is some feedback...
Quoted 24 lines
-----Original Message-----
From: Wang, Mingyu/王 鸣瑜
Sent: Friday, May 18, 2018 10:39 PM
To: [email protected]
Cc: Wang, Mingyu/王 鸣瑜 <[email protected]>
Subject: [PATCH] Add a new test suite called Functional.busybox.Signed-off-by Wang Mingyu <[email protected]>--- engine/tests/Functional.busybox/fuego_test.sh | 17 +++++++++++++++++ engine/tests/Functional.busybox/spec.json | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100755 engine/tests/Functional.busybox/fuego_test.sh create mode 100644 engine/tests/Functional.busybox/spec.jsonengine/tests/Functional.busybox/fuego_test.sh new file +0
-0
engine/tests/Functional.busybox/fuego_test.sh line 1
Quoted 1 line
engine/tests/Functional.busybox/fuego_test.sh new file +1
-0@@ -0,0 +1,17 @@ +tarball=busybox.tar.gz
I looked at the contents of the tarball. This particular tarball only holds a single shell script. In this case, it is better to just have it in the $TEST_HOME directory, and not use a tarball at all. My recommendation would be to add busybox_test.sh to $TESTHOME, and remove this tarball line.
engine/tests/Functional.busybox/fuego_test.sh line 3
Quoted 2 lines
engine/tests/Functional.busybox/fuego_test.sh new file +2
-0+ +
(minor) my preference would be only 1 blank line here.
engine/tests/Functional.busybox/fuego_test.sh line 5
Quoted 2 lines
engine/tests/Functional.busybox/fuego_test.sh new file +2
-0+function test_deploy { + put $TEST_HOME/busybox_test.sh $BOARD_TESTDIR/fuego.$TESTDIR/
I'd leave this as is (not change it like your followup patch)
Quoted 6 lines
engine/tests/Functional.busybox/fuego_test.sh new file +4
-0+ put -r $TEST_HOME/testsuits $BOARD_TESTDIR/fuego.$TESTDIR/ } + +function test_run { + report "cd $BOARD_TESTDIR/fuego.$TESTDIR; exporttest_tcpip_host=$SRV_IP; export test_port_host=$SRV_PORT; export httproot_dir_host=fuego/userContent/readme.txt; sh -v
busybox_test.sh"
Some line continuations would be good here to keep this from getting too long. e.g.
report "cd $BOARD_TESTDIR/fuego.$TESTDIR; \
export test_tcpip_host=$SRV_IP ; \
export test_port_host=$SRV_PORT; \
export httproot_dir_host=fuego/userContent/readme.txt; \
sh -v busybox_test.sh"I know other tests have some pretty long lines, but I'd like for new tests to be better at having shorter lines.
engine/tests/Functional.busybox/fuego_test.sh line 13
Quoted 4 lines
engine/tests/Functional.busybox/fuego_test.sh new file +4
-0+} + +function test_processing { + log_compare "$TESTDIR" "89" "pass" "p"
Is 89 the right number for the tests you have submitted so far?
Quoted 18 lines
engine/tests/Functional.busybox/fuego_test.sh new file +3
-0+} + +engine/tests/Functional.busybox/spec.json new file +7
-1@@ -0,0 +1,7 @@ +{ + "testName": "Functional.busybox", + "specs": { + "default": {} + } +} + --
Quoted 2 lines
1.8.3.1
Looks good.
Did you want me to apply this, and fix it up myself, or do you want to fix it and send new patches?
-- Tim