commandline session $cat test5.pl #!/usr/bin/perl use strict; use warnings; my $result; $result = `/usr/bin/concalc 1 + 1`; print $result; if ( $result == 1 ) { print “okn”; } else { print “not okn”; } $result = `/usr/bin/concalc 2 + 2`; if ( $result == 4 ) { print “okn”; } else { print “not …
Category Archives: Uncategorized
Perl Testing using system function
commandline session $cat test4.pl #!/usr/bin/perl use strict; use warnings; system “echo 1 > 1”; print “n”; system “echo 2 > 2”; print “n”; system “echo hello”; print “n”; $perl test4.pl hello $cat 1 1 $cat 2 2 $
TEST WITH Perl extension for ICalendar date objects
commandline session $cat test3.pl #!/usr/bin/perl -w use Test::Simple tests => 2; use Date::ICal; my $ical = Date::ICal->new; # create an object ok( defined $ical ); # check that we got something ok( $ical->isa(‘Date::ICal’) ); # and it’s the right class $perl test3.pl 1..2 ok 1 ok 2 $
TESTING WITH Perl
commandline session $perl test1.pl 1..1 ok 1 $cat test1.pl #!/usr/bin/perl -w print “1..1n”; print 1 + 1 == 2 ? “ok 1n” : “not ok 1n”; $perl 1+1 $perl -e No code specified for -e. $perl -d Loading DB routines from perl5db.pl version 1.33 Editor support available. Enter h or `h h’ for help, or …
Linux KERNEL TESTING asynctest
commandline session $sudo autotest-local run asynctest/ 18:58:57 INFO | Writing results to /usr/local/lib/python2.7/dist-packages/autotest/client/results/default 18:58:58 INFO | START —- —- timestamp=13625710038 localtime=Mar 06 18:58:58 18:58:58 INFO | START asynctest asynctest timestamp=13625710038 localtime=Mar 06 18:58:58 18:59:00 INFO | Process 1 stdout is now hi 18:59:00 INFO | hi 18:59:00 INFO | 18:59:02 INFO | Process 1 result …
R Plotting a Function Curve
commandline session > curve(x^3 – 5*x, from=-4, to=4) > png(file=”RcurveA.png”) > curve(x^3 – 5*x, from=-4, to=4) > dev.off() null device 1 > png(file=”RcurveB.png”) > curve(x^3 – 5*x, from=-4, to=0) > dev.off() null device 1 > png(file=”RcurveC.png”) > curve(x^3 – 5*x, from=10, to=50) > dev.off() null device 1 >
R boxplot fsstress Linux Kernel Test
commandline session > chown creat dread dwrite fdata fdatasync fsync getdents link mkdir mknod read readlink rename link mkdir mknod read readlink rmdir stat symlink sync truncate unlink write boxplot(chown,creat,dread,dwrite,fdatasync,fsync,getdents,link,mkdir,mknod,read,readlink,rename,rmdir,stat,symlink,sync,truncate,unlink,write) > boxplot(chown,creat,dread,dwrite,fdatasync,fsync,getdents,link,mkdir,mknod,read,readlink,rename,rmdir,stat,symlink,sync,truncate,unlink,write) > png(file=”Rfsstress.png”) > boxplot(chown,creat,dread,dwrite,fdatasync,fsync,getdents,link,mkdir,mknod,read,readlink,rename,rmdir,stat,symlink,sync,truncate,unlink,write) > dev.off function (which = dev.cur()) { if (which == 1) stop(“cannot shut down device 1 (the null device)”) …
fsstress ZEROS FREQUENCIES OF ALL OPERATIONS
commandline session $sudo ./fsstress -z -c -S -d /home/jeffrin/fs/ -p 100 -n 100 chown 0/0 write op creat 0/0 write op dread 0/0 dwrite 0/0 write op fdatasync 0/0 write op fsync 0/0 write op getdents 0/0 link 0/0 write op mkdir 0/0 write op mknod 0/0 write op read 0/0 readlink 0/0 rename 0/0 …
Continue reading “fsstress ZEROS FREQUENCIES OF ALL OPERATIONS”
Linux KERNEL TESTING fsstress
commandline session $sudo ./fsstress -c -S -d /home/jeffrin/fs/ -p 100 -n 100 chown 3/39 write op creat 4/39 write op dread 4/39 dwrite 4/39 write op fdatasync 1/39 write op fsync 1/39 write op getdents 1/39 link 1/39 write op mkdir 2/39 write op mknod 2/39 write op read 1/39 readlink 1/39 rename 2/39 write …
R DATAVISUAL barplot
commandline session > test labeli barplot(labeli,test) Error in -0.01 * height : non-numeric argument to binary operator > barplot(test) > barplot(labeli) Error in -0.01 * height : non-numeric argument to binary operator > datavisual library(nutshell) Error in library(nutshell) : there is no package called ‘nutshell’ > barplot(datavisual) Error in barplot.default(datavisual) : ‘height’ must be a …