[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/storage/Log
README.txt, 1.1.2.1, 1.1.2.2 RandRWAppC.nc, 1.1.2.1,
1.1.2.2 RandRWC.nc, 1.1.2.3, 1.1.2.4
David Gay
idgay at users.sourceforge.net
Wed May 31 16:33:49 PDT 2006
Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/storage/Log
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv9583/Log
Modified Files:
Tag: tinyos-2_0_devel-BRANCH
README.txt RandRWAppC.nc RandRWC.nc
Log Message:
test app updates
Index: README.txt
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/storage/Log/Attic/README.txt,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** README.txt 23 May 2006 21:57:20 -0000 1.1.2.1
--- README.txt 31 May 2006 23:33:47 -0000 1.1.2.2
***************
*** 10,17 ****
The mote id controls a random seed used in the test (k), and the actual
test performed
! k * 4: erase the log
! k * 4 + 1: erase the log and write some data
k * 4 + 2: read the log
! k * 4 + 3: write more data to the log
The read test expects to see one or more consecutive results of the
--- 10,17 ----
The mote id controls a random seed used in the test (k), and the actual
test performed
! k * 4: perform a full test
! k * 4 + 1: erase the log
k * 4 + 2: read the log
! k * 4 + 3: write some data to the log
The read test expects to see one or more consecutive results of the
***************
*** 19,26 ****
So, for instance, you could run the test with mote id = 5, then 7 twice
to erase the log and write 3 copies of the data sequence for k = 1, then
! run with mote id = 6 to test all these writes.
A successful test will turn on the green led. A failed test will turn on
! the red led. The yellow led is turned on after erase is complete.
Tools:
--- 19,27 ----
So, for instance, you could run the test with mote id = 5, then 7 twice
to erase the log and write 3 copies of the data sequence for k = 1, then
! run with mote id = 6 to test all these writes. Or you can just run the
! test with mote id = 4 to do a complete test.
A successful test will turn on the green led. A failed test will turn on
! the red led. The yellow led blinks during the steps of the full test.
Tools:
Index: RandRWAppC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/storage/Log/Attic/RandRWAppC.nc,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** RandRWAppC.nc 23 May 2006 21:57:20 -0000 1.1.2.1
--- RandRWAppC.nc 31 May 2006 23:33:47 -0000 1.1.2.2
***************
*** 23,27 ****
MainC.Boot <- RandRWC;
- MainC.SoftwareInit -> SerialActiveMessageC;
RandRWC.SerialControl -> SerialActiveMessageC;
--- 23,26 ----
Index: RandRWC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/storage/Log/Attic/RandRWC.nc,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** RandRWC.nc 24 May 2006 16:13:45 -0000 1.1.2.3
--- RandRWC.nc 31 May 2006 23:33:47 -0000 1.1.2.4
***************
*** 123,127 ****
event void LogRead.readDone(void* buf, storage_len_t rlen, error_t result) __attribute__((noinline)) {
! if (result == ESIZE && rlen == 0 /*&& count == 1*/)
done();
else if (scheck(result) && bcheck(rlen == len && buf == rdata && memcmp(data + offset, rdata, rlen) == 0))
--- 123,127 ----
event void LogRead.readDone(void* buf, storage_len_t rlen, error_t result) __attribute__((noinline)) {
! if (len != 0 && rlen == 0)
done();
else if (scheck(result) && bcheck(rlen == len && buf == rdata && memcmp(data + offset, rdata, rlen) == 0))
More information about the Tinyos-2-commits
mailing list