Hi,<br><br>I have doubt in executing raw.write tests using lxc-execute.<br><br>When I execute it without lxc-execute it works fine i.e it performs raw.write testing.<br><br><font size="4"><span style="color: rgb(255, 0, 0);">command :: root@nishant:/home/nishant/Desktop/samba-4.0.0alpha15# bin/smbtorture //localhost/ubuntu -Ubase%base_system raw.write</span></font><br>
<br>This command works fine. We can see the o/p of this also,<br><br>/***************************************************************************************************************************/<br>O/P::<br><br>Inside main() of smbtorture<br>
<br>Indside torture_raw_write<br>outside torture_raw_write<br>The value of print_testsuite_list is :: 0<br><br>The argc_new is 3 and argc is 4<br><br>The list_tests is ::0<br>In for loop ::bin/smbtorture::<br><br>In for loop:://localhost/ubuntu::<br>
<br>In for loop::raw.write::<br><br>In for loop(null)::<br><br>Using seed 1320930423<br>Inside smbtorture.c before subunit_ops_calling....<br><br><br>Inside smbtorture.c after subunit_ops_calling....<br><br><br>Ui_ops_name is 'subunit'<br>
<br><br>The basedir is (null)<br><br>The outputdir is :: /home/nishant/Desktop/samba-4.0.0alpha15/smbtortureXXXXXX<br><br>The argc_new is 3The new argv inside loop is :: raw.write<br><br> and i is 2time: 2011-11-10 18:37:03.361497<br>
Before running the specific test........<br>We are running the test_suite in non restricted.........<br>Inside file subunit.c and func :: suite_start<br><br>Inside file subunit.c and func :: suite_start and suite_name :: write<br>
<br>progress: 4<br>Inside file subunit.c and func subunit_test_name:: test_name :: write and test_case_name :: write<br><br>Inside file subunit.c and func subunit_test_start:: test_name :: write and test_case_name :: write<br>
<br>test: write<br>time: 2011-11-10 18:37:03.361930<br>Inside test_write :: The base_dir is \testwrite\test.txt<br><br>Inside RAW.WRITE (test_write)....and test_case name is :: write<br><br>Inside RAW.WRITE (test_write)....and test name is :: write<br>
<br>Testing RAW_WRITE_WRITE<br>Inside file subunit.c and func subunit_test_name:: test_name :: write and test_case_name :: write<br><br>time: 2011-11-10 18:37:03.372680<br>failure: write [<br>../source4/torture/raw/write.c:129: Failed to create \testwrite\test.txt - NT_STATUS_OBJECT_PATH_NOT_FOUND<br>
]<br>Inside file subunit.c and func subunit_test_name:: test_name :: write unlock and test_case_name :: write unlock<br><br>Inside file subunit.c and func subunit_test_start:: test_name :: write unlock and test_case_name :: write unlock<br>
<br>test: write unlock<br>time: 2011-11-10 18:37:03.372749<br>Inside RAW.WRITE (test_writeunlock)....and test_case name is :: write unlock<br><br>Inside RAW.WRITE (test_writeunlock)....and test name is :: write unlock<br>
<br>inside writeunlock<br>Testing RAW_WRITE_WRITEUNLOCK<br>Trying zero write<br>Trying small write<br>Inside check_buffer<br>outside check_buffer<br>Inside check_buffer<br>outside check_buffer<br>Trying large write<br>Inside check_buffer<br>
outside check_buffer<br>Trying bad fnum<br>Setting file as sparse<br>Trying 2^32 offset<br>Inside check_buffer<br>outside check_buffer<br>outside writeunlock<br>Inside file subunit.c and func subunit_test_name:: test_name :: write unlock and test_case_name :: write unlock<br>
<br>time: 2011-11-10 18:37:03.395429<br>success: write unlock<br>Inside file subunit.c and func subunit_test_name:: test_name :: write close and test_case_name :: write close<br><br>Inside file subunit.c and func subunit_test_start:: test_name :: write close and test_case_name :: write close<br>
<br>test: write close<br>time: 2011-11-10 18:37:03.395522<br>Inside RAW.WRITE (test_writeclose)....and test_case name is :: write close<br><br>Inside RAW.WRITE (test_writeclose)....and test name is :: write close<br><br>inside write_close<br>
Testing RAW_WRITE_WRITECLOSE<br>Trying zero write<br>Trying small write<br>Inside check_buffer<br>outside check_buffer<br>Inside check_buffer<br>outside check_buffer<br>Trying large write<br>Inside check_buffer<br>outside check_buffer<br>
Trying bad fnum<br>Setting file as sparse<br>Trying 2^32 offset<br>Inside check_buffer<br>outside check_buffer<br>outside write_close<br>Inside file subunit.c and func subunit_test_name:: test_name :: write close and test_case_name :: write close<br>
<br>time: 2011-11-10 18:37:03.423069<br>success: write close<br>Inside file subunit.c and func subunit_test_name:: test_name :: writex and test_case_name :: writex<br><br>Inside file subunit.c and func subunit_test_start:: test_name :: writex and test_case_name :: writex<br>
<br>test: writex<br>time: 2011-11-10 18:37:03.423138<br>Inside RAW.WRITE (test_writex)....and test_case name is :: writex<br><br>Inside RAW.WRITE (test_writex)....and test name is :: writex<br><br>Inside test_writex<br>dangerous not set - limiting range of test to 2^33<br>
Testing RAW_WRITE_WRITEX<br>Trying zero write<br>Trying small write<br>Inside check_buffer<br>outside check_buffer<br>Trying large write<br>Inside check_buffer<br>outside check_buffer<br>Trying bad fnum<br>Testing wmode<br>
Trying locked region<br>Setting file as sparse<br>Trying 2^32 offset<br>Inside check_buffer<br>outside check_buffer<br>limit is 2^33<br>outside test_writex<br>Inside file subunit.c and func subunit_test_name:: test_name :: writex and test_case_name :: writex<br>
<br>time: 2011-11-10 18:37:03.456223<br>success: writex<br>Before the torture_deltree_outputdir<br><br>/***************************************************************************************************************************/<br>
<br><font size="4"><b>But it is not working when i use lxc-execute command to run raw.test.</b></font><br><br><font size="4"><b style="color: rgb(255, 0, 0);">Command ::root@nishant:/home/nishant/Desktop/samba-4.0.0alpha15# lxc-execute -n base -f /home/nishant/ubuntu.conf -- bin/smbtorture //localhost/ubuntu -Ubase%base_system raw.write</b></font><br>
<br><br>/***************************************************************************************************************************/<br>O/P::<br>Inside main() of smbtorture<br><br>Indside torture_raw_write<br>outside torture_raw_write<br>
The value of print_testsuite_list is :: 0<br><br>The argc_new is 3 and argc is 4<br><br>The list_tests is ::0<br>In for loop ::bin/smbtorture::<br><br>In for loop:://localhost/ubuntu::<br><br>In for loop ::raw.write::<br>
<br>In for loop ::(null)::<br><br>Using seed 1320930543<br>Inside smbtorture.c before subunit_ops_calling....<br><br><br>Inside smbtorture.c after subunit_ops_calling....<br><br><br>Ui_ops_name is 'subunit'<br><br>
<br>The basedir is (null)<br><br>The outputdir is :: /home/nishant/Desktop/samba-4.0.0alpha15/smbtortureXXXXXX<br><br>The argc_new is 3The new argv inside loop is :: raw.write<br><br> and i is 2time: 2011-11-10 18:39:03.638757<br>
Before running the specific test........<br>We are running the test_suite in non restricted.........<br>Inside file subunit.c and func :: suite_start<br><br>Inside file subunit.c and func :: suite_start and suite_name :: write<br>
<br>progress: 4<br>Inside file subunit.c and func subunit_test_name:: test_name :: write and test_case_name :: write<br><br>Inside file subunit.c and func subunit_test_start:: test_name :: write and test_case_name :: write<br>
<br>test: write<br>time: 2011-11-10 18:39:03.639188<br>Failed to open connection - NT_STATUS_CONNECTION_REFUSED<br>Inside file subunit.c and func subunit_test_name:: test_name :: write and test_case_name :: write<br><br>time: 2011-11-10 18:39:03.639988<br>
error: write [<br>Unknown error/failure<br>]<br>Inside file subunit.c and func subunit_test_name:: test_name :: write unlock and test_case_name :: write unlock<br><br>Inside file subunit.c and func subunit_test_start:: test_name :: write unlock and test_case_name :: write unlock<br>
<br>test: write unlock<br>time: 2011-11-10 18:39:03.640023<br>Failed to open connection - NT_STATUS_CONNECTION_REFUSED<br>Inside file subunit.c and func subunit_test_name:: test_name :: write unlock and test_case_name :: write unlock<br>
<br>time: 2011-11-10 18:39:03.640247<br>error: write unlock [<br>Unknown error/failure<br>]<br><br>/******************************************************************************************************************************************/<br>
<br><br><b>I am finding the solution to this problem from last 4 weeks, but unable to find solution.</b><br><br>Please Help me ASAP.<br><br><br>Regards,<br>Nishant Mungse<br><br><br><br>