Permalink
Browse files

moving tests to tests/correctness folder

  • Loading branch information...
1 parent d110995 commit 4debb4b25740b8dd46ad16f43f04f0fc5b4a23e1 Steve Dekorte committed Mar 30, 2008
Showing with 56 additions and 2 deletions.
  1. +1 −1 Makefile
  2. 0 addons/Blowfish/tests/{ → correctness}/BlowfishTest.io
  3. 0 addons/Blowfish/tests/{ → correctness}/run.io
  4. 0 addons/Box/tests/{ → correctness}/BoxTest.io
  5. 0 addons/Box/tests/{ → correctness}/run.io
  6. 0 addons/CFFI/tests/{ → correctness}/DataTypeTest.io
  7. 0 addons/CFFI/tests/{ → correctness}/PointerTest.io
  8. 0 addons/CFFI/tests/{ → correctness}/run.io
  9. 0 addons/CGI/tests/{ → correctness}/CGITest.io
  10. 0 addons/CGI/tests/{ → correctness}/run.io
  11. 0 addons/Cairo/tests/{ → correctness}/CairoTest.io
  12. 0 addons/Cairo/tests/{ → correctness}/run.io
  13. 0 addons/Contracts/tests/{ → correctness}/ContractsTest.io
  14. 0 addons/DistributedObjects/tests/{ → correctness}/DOTest.io
  15. 0 addons/DistributedObjects/tests/{ → correctness}/run.io
  16. 0 addons/Fnmatch/tests/{ → correctness}/FnmatchTest.io
  17. 0 addons/Fnmatch/tests/{ → correctness}/run.io
  18. 0 addons/LZO/tests/{ → correctness}/LZOTest.io
  19. 0 addons/LZO/tests/{ → correctness}/run.io
  20. 0 addons/Loki/tests/{ → correctness}/testcg.io
  21. 0 addons/MD5/tests/{ → correctness}/MD5Test.io
  22. 0 addons/ODE/tests/{ → correctness}/BoxBodyTest.io
  23. 0 addons/ODE/tests/{ → correctness}/CollideTest.io
  24. 0 addons/ODE/tests/{ → correctness}/CollisionCallbackTest.io
  25. 0 addons/ODE/tests/{ → correctness}/ODEBoxProtoTest.io
  26. 0 addons/ODE/tests/{ → correctness}/ODEBoxTest.io
  27. 0 addons/ODE/tests/{ → correctness}/ODEContactProtoTest.io
  28. 0 addons/ODE/tests/{ → correctness}/ODEPlaneProtoTest.io
  29. 0 addons/ODE/tests/{ → correctness}/ODEPlaneTest.io
  30. 0 addons/ODE/tests/{ → correctness}/ODESimpleSpaceProtoTest.io
  31. 0 addons/ODE/tests/{ → correctness}/ODESimpleSpaceTest.io
  32. 0 addons/ODE/tests/{ → correctness}/old-iospec/ContextScope.io
  33. 0 addons/ODE/tests/{ → correctness}/old-iospec/StackOverflowError.io
  34. 0 addons/ODE/tests/{ → correctness}/old-iospec/StackUnderflowError.io
  35. 0 addons/ODE/tests/{ → correctness}/old-iospec/WordyBuilder.io
  36. 0 addons/ODE/tests/{ → correctness}/old-iospec/addWordyMethods.io
  37. 0 addons/ODE/tests/{ → correctness}/old-iospec/body-spec.io
  38. 0 addons/ODE/tests/{ → correctness}/old-iospec/context.io
  39. 0 addons/ODE/tests/{ → correctness}/old-iospec/mass-spec.io
  40. 0 addons/ODE/tests/{ → correctness}/run.io
  41. BIN addons/Obsidian/io/test.tc
  42. 0 addons/Python/tests/{ → correctness}/UserTest.io
  43. 0 addons/Python/tests/{ → correctness}/run.io
  44. 0 addons/QDBM/tests/{ → correctness}/QDBMTest.io
  45. 0 addons/QDBM/tests/{ → correctness}/basic.io
  46. 0 addons/QDBM/tests/{ → correctness}/run.io
  47. 0 addons/QDBM/tests/{ → correctness}/test.c
  48. 0 addons/QDBM/tests/{ → correctness}/testPath.io
  49. 0 addons/Random/tests/{ → correctness}/ListTest.io
  50. 0 addons/Random/tests/{ → correctness}/run.io
  51. 0 addons/Range/tests/{ → correctness}/run.io
  52. 0 addons/Rational/tests/{ → correctness}/RationalTest.io
  53. 0 addons/Rational/tests/{ → correctness}/run.io
  54. 0 addons/Regex/tests/{ → correctness}/RegexMatchTest.io
  55. 0 addons/Regex/tests/{ → correctness}/RegexMatchesTest.io
  56. 0 addons/Regex/tests/{ → correctness}/RegexTest.io
  57. 0 addons/Regex/tests/{ → correctness}/SequenceTest.io
  58. 0 addons/Regex/tests/{ → correctness}/run.io
  59. 0 addons/SGML/tests/{ → correctness}/SGMLTest.io
  60. 0 addons/SGML/tests/{ → correctness}/run.io
  61. 0 addons/SHA1/tests/{ → correctness}/SHA1Test.io
  62. 0 addons/SQLite/tests/{ → correctness}/SQLiteTest.io
  63. 0 addons/SQLite/tests/{ → correctness}/run.io
  64. 0 addons/SQLite3/tests/{ → correctness}/SQLite3Test.io
  65. 0 addons/SQLite3/tests/{ → correctness}/run.io
  66. 0 addons/SkipDB/tests/{ → correctness}/SkipDBTest.io
  67. 0 addons/SkipDB/tests/{ → correctness}/run.io
  68. 0 addons/Socket/tests/{ → correctness}/DNSTest.io
  69. 0 addons/Socket/tests/{ → correctness}/SocketTest.io
  70. 0 addons/Socket/tests/{ → correctness}/run.io
  71. 0 addons/TagDB/tests/{ → correctness}/run.io
  72. 0 addons/TagDB/tests/{ → correctness}/tagdbtest.io
  73. 0 addons/Thread/tests/{ → correctness}/ThreadTest.io
  74. 0 addons/Thread/tests/{ → correctness}/run.io
  75. BIN addons/TokyoCabinet/test.db
  76. 0 addons/TokyoCabinet/tests/{ → correctness}/TokyoCabinetTest.io
  77. 0 addons/TokyoCabinet/tests/{ → correctness}/basic.io
  78. 0 addons/TokyoCabinet/tests/{ → correctness}/run.io
  79. 0 addons/TokyoCabinet/tests/{ → correctness}/testPath.io
  80. +54 −0 addons/TokyoCabinet/tests/performance/perf.io
  81. 0 addons/UUID/tests/{ → correctness}/run.io
  82. 0 addons/User/tests/{ → correctness}/UserTest.io
  83. 0 addons/User/tests/{ → correctness}/run.io
  84. 0 addons/Zlib/tests/{ → correctness}/ZlibTest.io
  85. 0 addons/Zlib/tests/{ → correctness}/run.io
  86. BIN addons/Zlib/tests/{ → correctness}/test.gz
  87. +1 −1 build/Project.io
  88. 0 libs/iovm/tests/{ → correctness}/AlignTest.io
  89. 0 libs/iovm/tests/{ → correctness}/BigSourceFileTest.io
  90. 0 libs/iovm/tests/{ → correctness}/BlockTest.io
  91. 0 libs/iovm/tests/{ → correctness}/DateTest.io
  92. 0 libs/iovm/tests/{ → correctness}/EmptyTest.io
  93. 0 libs/iovm/tests/{ → correctness}/IfTest.io
  94. 0 libs/iovm/tests/{ → correctness}/ListSchwartzianTest.io
  95. 0 libs/iovm/tests/{ → correctness}/ListTest.io
  96. 0 libs/iovm/tests/{ → correctness}/LoopBreakingTest.io
  97. 0 libs/iovm/tests/{ → correctness}/LoopTest.io
  98. 0 libs/iovm/tests/{ → correctness}/MapTest.io
  99. 0 libs/iovm/tests/{ → correctness}/MessageTest.io
  100. 0 libs/iovm/tests/{ → correctness}/MiscTest.io
  101. 0 libs/iovm/tests/{ → correctness}/NumberTest.io
  102. 0 libs/iovm/tests/{ → correctness}/ObjectTest.io
  103. 0 libs/iovm/tests/{ → correctness}/SequenceTest.io
  104. 0 libs/iovm/tests/{ → correctness}/SwitchTest.io
  105. 0 libs/iovm/tests/{ → correctness}/UnicodeTest-helper/UnicodeTest.txt
  106. 0 libs/iovm/tests/{ → correctness}/UnicodeTest-helper/printer.io
  107. 0 libs/iovm/tests/{ → correctness}/UnicodeTest.io
  108. 0 libs/iovm/tests/{ → correctness}/VectorCompareTest.io
  109. 0 libs/iovm/tests/{ → correctness}/VectorTest.io
  110. 0 libs/iovm/tests/{ → correctness}/WeakLinkTest.io
  111. 0 libs/iovm/tests/{ → correctness}/run.io
View
@@ -73,7 +73,7 @@ libs := basekit coroutine garbagecollector iovm
all: addons
testaddon:
- ./_build/binaries/io_static$(BINARY_SUFFIX) addons/$(addon)/tests/run.io
+ ./_build/binaries/io_static$(BINARY_SUFFIX) addons/$(addon)/tests/correctness/run.io
vm:
for dir in $(libs); do INSTALL_PREFIX=$(INSTALL_PREFIX) $(MAKE) -C libs/$$dir; done
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
Binary file not shown.
@@ -0,0 +1,54 @@
+max := 10000
+
+db := TokyoCabinet clone
+File with("test.db") remove
+db open("test.db")
+
+s1 := Date secondsToRun(
+ db begin
+ for(i, 1, max, db atPut("001/" .. i, "v"))
+ db commit
+)
+writeln((max/s1) asString(0, 0), " group writes per second")
+
+s1 := Date secondsToRun(
+ for(i, 1, max, db at("001/" .. i))
+)
+writeln((max/s1) asString(0, 0), " reads per second")
+
+s1 := Date secondsToRun(
+ c := db cursor
+ i := 1
+ c first
+ while(c next, c key; i = i + 1)
+ if(i != max, Exception raise("cursor read " .. i .. " entries instead of " .. max))
+ c close
+)
+writeln((max/s1) asString(0, 0), " cursor reads per second")
+
+
+s1 := Date secondsToRun(
+ db begin
+ for(i, 1, max, db removeAt("001/" .. i))
+ db commit
+)
+writeln((max/s1) asString(0, 0), " group removes per second\n")
+
+
+s1 := Date secondsToRun(
+ for(i, 1, max, db transactionalAtPut("001/" .. i, "v"))
+)
+writeln((max/s1) asString(0, 0), " individual writes per second")
+
+
+s1 := Date secondsToRun(
+ for(i, 1, max, db transactionalRemoveAt("001/" .. i))
+)
+writeln((max/s1) asString(0, 0), " individual removes per second")
+
+
+// -----------------------------------------------
+
+
+db close
+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -146,7 +146,7 @@ Project := Object clone do(
maxNameSize := availableAddons max(name size) name size
availableAddons foreach(addon,
- path := Path with(addon folder path, "tests/run.io")
+ path := Path with(addon folder path, "tests/correctness/run.io")
if(File clone setPath(path) exists,
write(addon name alignLeft(maxNameSize), " - ")
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4debb4b

Please sign in to comment.