Skip to contentSkip to conversation

mv/mv_tests.sh: Add test02 to test "mv -b"

PATCH Superseded Cui Bixuan 2 participants 4 messages Apr 9, 2015 – Apr 15, 2015

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Cui Bixuan

author
#0 lore raw

PATCH 1/1 mv/mv_tests.sh: Add test02 to test "mv -b"

Add test02 to test "mv -b".
Run it in ubuntu 12.02:

<<<test_start>>>
tag=mv_tests01 stime=1428322533
cmdline="mv_tests.sh"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop

mv          0  TINFO  :  INIT: Inititalizing tests.
mv01        0  TINFO  :  Test #1: mv <dir1> <dir2> will move dir1 to dir2 and all its contents
mv01        0  TINFO  :  Test #1: Creating 10 directories.
mv01        0  TINFO  :  Test #1: filling each dir with 10 files.
mv01        0  TINFO  :  Test #1: creating output file
mv01        0  TINFO  :  Test #1: creating expected output file
mv01        0  TINFO  :  Test #1: comparing expected out and actual output file
mv01        0  TINFO  :  Test #1: expected same as actual
mv01        1  TPASS  :  Test #1: mv success
mv          0  TINFO  :  INIT: Inititalizing tests.
mv02        0  TINFO  :  Test #2: mv -b <file1> <file2> will move dir1 to dir2 and backup the file2
mv02        1  TPASS  :  Test #2: mv -b success

<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=0 corefile=no cutime=1 cstime=8
<<<test_end>>>

---
 .../commands/fileutils/mv/00_Descriptions.txt      |    3 +-
 testcases/commands/fileutils/mv/mv_tests.sh        |   82 +++++++++++++++++++-
 2 files changed, 83 insertions(+), 2 deletions(-)
testcases/commands/fileutils/mv/00_Descriptions.txt +2 -1
index 6d52868..57199bf 100644
@@ -1,3 +1,4 @@
 test01
 	mv <dir1> <dir2> will move dir1 to dir2 and all its contents.
-
+test02
+	mv -b <file1> <file2> will move file1 to file2 and backup the file2.
testcases/commands/fileutils/mv/mv_tests.sh +81 -1

100 lines not on this page · raw message

Signature · 13 lines
1.6.0.2


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw

Hi!

Quoted 22 lines · Cui Bixuan

Add test02 to test "mv -b".
Run it in ubuntu 12.02:

<<<test_start>>>
tag=mv_tests01 stime=1428322533
cmdline="mv_tests.sh"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop

mv          0  TINFO  :  INIT: Inititalizing tests.
mv01        0  TINFO  :  Test #1: mv <dir1> <dir2> will move dir1 to dir2 and all its contents
mv01        0  TINFO  :  Test #1: Creating 10 directories.
mv01        0  TINFO  :  Test #1: filling each dir with 10 files.
mv01        0  TINFO  :  Test #1: creating output file
mv01        0  TINFO  :  Test #1: creating expected output file
mv01        0  TINFO  :  Test #1: comparing expected out and actual output file
mv01        0  TINFO  :  Test #1: expected same as actual
mv01        1  TPASS  :  Test #1: mv success
mv          0  TINFO  :  INIT: Inititalizing tests.
mv02        0  TINFO  :  Test #2: mv -b <file1> <file2> will move dir1 to dir2 and backup the file2
mv02        1  TPASS  :  Test #2: mv -b success
Quoted 5 lines

<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=0 corefile=no cutime=1 cstime=8
<<<test_end>>>

It's not a good idea to include test output in the commit message. IMHO, there should be a general description of the new test-case. Also, please check the patch with 'checkpatch.pl' script, fix warnings and errors, then resend.

Thanks,
Alexey

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#2 lore raw

Hi!
Thank you for your advice, I will check it.

Thanks,
Cui bixuan

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#3 lore raw

PATCH v2 1/1 mv/mv_tests.sh: Add test02 to test 'mv -b'

In reply to Alexey Kodanev

Add a new case to test 'mv -b':
* Create file1 and file2
* Mv -b file1 to file2
* Check backup file of file2

---
 .../commands/fileutils/mv/00_Descriptions.txt      |    3 +-
 testcases/commands/fileutils/mv/mv_tests.sh        |   84 ++++++++++++++++++++
 2 files changed, 86 insertions(+), 1 deletions(-)
testcases/commands/fileutils/mv/00_Descriptions.txt +2 -1
index 6d52868..57199bf 100644
@@ -1,3 +1,4 @@
 test01
 	mv <dir1> <dir2> will move dir1 to dir2 and all its contents.
-
+test02
+	mv -b <file1> <file2> will move file1 to file2 and backup the file2.
testcases/commands/fileutils/mv/mv_tests.sh +84 -0

102 lines not on this page · raw message

Signature · 12 lines
1.6.0.2

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list