Advertisement
Guest User

a800 100c EXMEM 1.0 llibtst.log

a guest
Mar 11th, 2012
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.94 KB | None | 0 0
  1. test log opened
  2. platform: a800 100c
  3. version: CHDK 1.0.0 built on Mar 11 2012 15:07:27
  4. os: dryos platformid: 12838
  5. ***test io***
  6. file info for io.input: closed file!
  7. file info for io.output: valid file
  8. ptr: 2116136 fd: 3 len: 214 pos: 214
  9. raw vals: 0:3 4:214 8:1 12:214 16:1 20:1 24:270636512 28:0 32:1819029313
  10. io.open("A/iotest0.txt","w+b"): OK PASS
  11. A/iotest0.txt:write(...): OK PASS
  12. A/iotest0.txt:seek("set",4): OK 4 PASS
  13. A/iotest0.txt:read(5): string [slick]
  14. A/iotest0.txt:seek("nil",nil): OK 9 PASS
  15. A/iotest0.txt:seek("cur",-5): OK 4 PASS
  16. A/iotest0.txt:write(...): OK PASS
  17. A/iotest0.txt:seek("end",nil): OK 44 PASS
  18. A/iotest0.txt:write(...): OK PASS
  19. A/iotest0.txt:flush(): OK PASS
  20. A/iotest0.txt:seek("set",nil): OK 0 PASS
  21. test file:lines()
  22. 0: [the quick brown fox jumps over the lazy dog]
  23. 1: [1]
  24. 2: [2a 3 1234567890 b]
  25. A/iotest0.txt:seek("set",nil): OK 0 PASS
  26. A/iotest0.txt:write(...): OK PASS
  27. A/iotest0.txt:seek("set",nil): OK 0 PASS
  28. test file:read("*a")
  29. A/iotest0.txt:read(*a): string [
  30. 1
  31. 2a 3 1234567890 b]
  32. A/iotest0.txt:seek("set",nil): OK 0 PASS
  33. testing file:read("*n")
  34. A/iotest0.txt:read(*n): number [1]
  35. A/iotest0.txt:seek("nil",nil): OK 45 NA
  36. A/iotest0.txt:read(*n): number [2]
  37. A/iotest0.txt:seek("nil",nil): OK 47 NA
  38. A/iotest0.txt:read(*n): <no results>
  39. A/iotest0.txt:seek("nil",nil): OK 47 NA
  40. A/iotest0.txt:read(1): string [a]
  41. A/iotest0.txt:seek("nil",nil): OK 48 NA
  42. A/iotest0.txt:read(*n): number [3]
  43. A/iotest0.txt:seek("nil",nil): OK 52 NA
  44. A/iotest0.txt:read(*n): number [1234567890]
  45. A/iotest0.txt:seek("nil",nil): OK 63 NA
  46. A/iotest0.txt:read(*n): <no results>
  47. A/iotest0.txt:seek("nil",nil): OK 70 NA
  48. A/iotest0.txt:read(1): string [b]
  49. A/iotest0.txt:seek("nil",nil): OK 71 NA
  50. A/iotest0.txt:read(*n): <no results>
  51. A/iotest0.txt:seek("nil",nil): OK 71 NA
  52. A/iotest0.txt:read(1): <no results>
  53. A/iotest0.txt:seek("nil",nil): OK 71 NA
  54. A/iotest0.txt:close(): OK PASS
  55. test open missing file
  56. io.open("A/bogus","r"): ERR msg=A/bogus: error PASS
  57. test open dir
  58. io.open("A/CHDK","r"): ERR msg=A/CHDK: error PASS
  59. io.open("A/iotest0.txt","r"): OK PASS
  60. test invalid seeks
  61. A/iotest0.txt:seek("set",-1): ERR nil PASS
  62. A/iotest0.txt:seek("end",100): ERR nil PASS
  63. A/iotest0.txt:close(): OK PASS
  64. ***end io OK***
  65.  
  66. ***test os***
  67. current date Sun Mar 11 16:00:11 2012
  68. os.time(): OK 1331481611 PASS
  69. os.time({day=1,year=1980,month=1,}): OK 315576000 PASS
  70. os.time({day=1,year=1066,month=1,}): ERR PASS
  71. %a [Sun]
  72. %A [Sunday]
  73. %b [Mar]
  74. %B [March]
  75. %c [Sun Mar 11 16:00:11 2012]
  76. %d [11]
  77. %H [16]
  78. %I [04]
  79. %j [071]
  80. %m [03]
  81. %M [00]
  82. %p [PM]
  83. %S [11]
  84. %U [11]
  85. %w [0]
  86. %W [10]
  87. %x [03/11/12]
  88. %X [16:00:11]
  89. %y [12]
  90. %Y [2012]
  91. %Z [%Z]
  92. %% [%]
  93. os.mkdir("A/MDTST0"): OK PASS
  94. io.open("A/MDTST0/TEST0.DAT","wb"): OK PASS
  95. A/MDTST0/TEST0.DAT:write(...): OK PASS
  96. A/MDTST0/TEST0.DAT:close(): OK PASS
  97. os.stat("A/MDTST0/TEST0.DAT"): OK PASS
  98. {
  99. dev=nil
  100. mode=nil
  101. size=4
  102. atime=nil
  103. mtime=1331481610
  104. ctime=1331481610
  105. blksize=nil
  106. blocks=nil
  107. attrib=32
  108. is_dir=false
  109. is_file=true
  110. }
  111. os.utime("A/MDTST0/TEST0.DAT",nil,nil): OK PASS
  112. os.stat("A/MDTST0/TEST0.DAT"): OK PASS
  113. {
  114. dev=nil
  115. mode=nil
  116. size=4
  117. atime=nil
  118. mtime=1331481610
  119. ctime=1331481610
  120. blksize=nil
  121. blocks=nil
  122. attrib=32
  123. is_dir=false
  124. is_file=true
  125. }
  126. os.utime("A/MDTST0/TEST0.DAT",441763200,472780800): OK PASS
  127. os.stat("A/MDTST0/TEST0.DAT"): OK PASS
  128. {
  129. dev=nil
  130. mode=nil
  131. size=4
  132. atime=nil
  133. mtime=441763200
  134. ctime=1331481610
  135. blksize=nil
  136. blocks=nil
  137. attrib=32
  138. is_dir=false
  139. is_file=true
  140. }
  141. os.stat("A/MDTST0"): OK PASS
  142. {
  143. dev=nil
  144. mode=nil
  145. size=0
  146. atime=nil
  147. mtime=1331481610
  148. ctime=1331481610
  149. blksize=nil
  150. blocks=nil
  151. attrib=16
  152. is_dir=true
  153. is_file=false
  154. }
  155. os.rename("A/MDTST0/TEST0.DAT","A/MDTST0/TEST1.DAT): OK PASS
  156. os.listdir("A/MDTST0",nil): OK PASS
  157. {
  158. 1="TEST1.DAT"
  159. }
  160. os.listdir("A/MDTST0",true): OK PASS
  161. {
  162. 1="."
  163. 2=".."
  164. 3="TEST1.DAT"
  165. }
  166. os.remove("A/MDTST0): ERR A/MDTST0: error PASS
  167. os.remove("A/bogus): ERR A/bogus: error PASS
  168. os.listdir("A/bogus",nil): ERR A/bogus: error PASS
  169. os.listdir("A/llibtst.log",nil): OK NA
  170. {
  171. }
  172. os.stat("A/bogus"): ERR A/bogus: error PASS
  173. os.utime("A/bogus",nil,nil): ERR A/bogus: error PASS
  174. os.rename("A/bogus","A/blah): ERR A/bogus: error PASS
  175. os.mkdir("A/CHDK"): ERR A/CHDK: error PASS
  176. os.remove("A/MDTST0/TEST1.DAT): OK PASS
  177. os.remove("A/MDTST0): OK PASS
  178. os.remove("A/iotest0.txt): OK NA
  179. ***end os OK***
  180.  
  181. ***test string***
  182. string.byte("test",2): OK 101 PASS
  183. string.char(116,101,115,116): OK test PASS
  184. dump/load: OK test123 PASS
  185. string.find("test 1 2 3F!?","t%s(%d) 2 (%x%x%p%p)$"): OK 4 13 1 3F!? PASS
  186. string.format("%c %d %x %s",100,100,100,"test"): OK d 100 64 test PASS
  187. string.len("\000test"): OK 5 PASS
  188. string.lower("TESTtest"): OK testtest PASS
  189. string.upper("TESTtest"): OK TESTTEST PASS
  190. string.rep("test",2): OK testtest PASS
  191. string.reverse("123"): OK 321 PASS
  192. string.sub("test",-3): OK est PASS
  193. ***end string OK***
  194.  
  195. close test log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement