[BACK]Return to t_cgd.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / tests / dev / cgd

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/tests/dev/cgd/t_cgd.sh between version 1.4 and 1.5

version 1.4, 2010/12/30 16:58:07 version 1.5, 2011/01/03 09:37:42
Line 25 
Line 25 
 # POSSIBILITY OF SUCH DAMAGE.  # POSSIBILITY OF SUCH DAMAGE.
 #  #
   
   rawpart=`sysctl -n kern.rawpartition | tr '01234' 'abcde'`
   rawcgd=/dev/rcgd0${rawpart}
 cgdserver=\  cgdserver=\
 "rump_server -lrumpvfs -lrumpkern_crypto -lrumpdev -lrumpdev_disk -lrumpdev_cgd"  "rump_server -lrumpvfs -lrumpkern_crypto -lrumpdev -lrumpdev_disk -lrumpdev_cgd"
   
Line 45  basic_body()
Line 47  basic_body()
         export RUMP_SERVER=unix://csock          export RUMP_SERVER=unix://csock
         atf_check -s exit:0 sh -c "echo 12345 | \          atf_check -s exit:0 sh -c "echo 12345 | \
             rump.cgdconfig -p cgd0 /dev/dk ${d}/paramsfile"              rump.cgdconfig -p cgd0 /dev/dk ${d}/paramsfile"
         atf_check -s exit:0 -e ignore dd if=${d}/t_cgd rof=/dev/rcgd0d count=2          atf_check -s exit:0 -e ignore dd if=${d}/t_cgd rof=${rawcgd} count=2
         atf_check -s exit:0 -e ignore dd if=${d}/t_cgd of=testfile count=2          atf_check -s exit:0 -e ignore dd if=${d}/t_cgd of=testfile count=2
         atf_check -s exit:0 -e ignore -o file:testfile \          atf_check -s exit:0 -e ignore -o file:testfile dd rif=${rawcgd} count=2
             dd rif=/dev/rcgd0d count=2  
 }  }
   
 basic_cleanup()  basic_cleanup()
Line 75  wrongpass_body()
Line 76  wrongpass_body()
         export RUMP_SERVER=unix://csock          export RUMP_SERVER=unix://csock
         atf_check -s exit:0 sh -c "echo 12345 | \          atf_check -s exit:0 sh -c "echo 12345 | \
             rump.cgdconfig -p cgd0 /dev/dk ${d}/paramsfile"              rump.cgdconfig -p cgd0 /dev/dk ${d}/paramsfile"
         atf_check -s exit:0 -e ignore dd if=${d}/t_cgd rof=/dev/rcgd0d count=2          atf_check -s exit:0 -e ignore dd if=${d}/t_cgd rof=${rawcgd} count=2
   
         # unconfig and reconfig cgd          # unconfig and reconfig cgd
         atf_check -s exit:0 rump.cgdconfig -u cgd0          atf_check -s exit:0 rump.cgdconfig -u cgd0
Line 84  wrongpass_body()
Line 85  wrongpass_body()
   
         atf_check -s exit:0 -e ignore dd if=${d}/t_cgd of=testfile count=2          atf_check -s exit:0 -e ignore dd if=${d}/t_cgd of=testfile count=2
         atf_check -s exit:0 -e ignore -o not-file:testfile \          atf_check -s exit:0 -e ignore -o not-file:testfile \
             dd rif=/dev/rcgd0d count=2              dd rif=${rawcgd} count=2
 }  }
   
 wrongpass_cleanup()  wrongpass_cleanup()

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

CVSweb <webmaster@jp.NetBSD.org>