/ Check-in [3f5406e3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Run the multi-threaded tests in test/threadtest3.c as part of releasetest.tcl. Remove the OMIT_BUILTIN_TEST symbol from the "Device-Two" configuration.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3f5406e3231fbe84659712c9383b3e04cc6c11a8
User & Date: dan 2010-09-13 12:15:37
Context
2010-09-13
14:38
Fix a couple of test files so that they work with DEFAULT_AUTOVACUUM. check-in: 8cb39306 user: dan tags: trunk
12:15
Run the multi-threaded tests in test/threadtest3.c as part of releasetest.tcl. Remove the OMIT_BUILTIN_TEST symbol from the "Device-Two" configuration. check-in: 3f5406e3 user: dan tags: trunk
11:29
Alter some configurations in releasetest.tcl. Print out the wall-clock time taken for each test after it is executed. check-in: a91c5af3 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to main.mk.

   518    518   	./testfixture$(EXE) $(TOP)/test/all.test
   519    519   
   520    520   soaktest:	testfixture$(EXE) sqlite3$(EXE)
   521    521   	./testfixture$(EXE) $(TOP)/test/all.test -soak=1
   522    522   
   523    523   test:	testfixture$(EXE) sqlite3$(EXE)
   524    524   	./testfixture$(EXE) $(TOP)/test/veryquick.test
          525  +
          526  +# The next two rules are used to support the "threadtest" target. Building
          527  +# threadtest runs a few thread-safety tests that are implemented in C. This
          528  +# target is invoked by the releasetest.tcl script.
          529  +# 
          530  +threadtest3$(EXE): sqlite3.c $(TOP)/test/threadtest3.c
          531  +	$(TCCX) -O2 sqlite3.c $(TOP)/test/threadtest3.c \
          532  +		-o threadtest3$(EXE) $(THREADLIB)
          533  +
          534  +threadtest: threadtest3$(EXE)
          535  +	./threadtest3$(EXE)
   525    536   
   526    537   sqlite3_analyzer$(EXE):	$(TOP)/src/tclsqlite.c sqlite3.c $(TESTSRC) \
   527    538   			$(TOP)/tool/spaceanal.tcl
   528    539   	sed \
   529    540   	  -e '/^#/d' \
   530    541   	  -e 's,\\,\\\\,g' \
   531    542   	  -e 's,",\\",g' \

Changes to test/releasetest.tcl.

   115    115       -DSQLITE_DEFAULT_TEMP_CACHE_SIZE=1000
   116    116       -DSQLITE_DISABLE_LFS=1
   117    117       -DSQLITE_ENABLE_FTS3=1
   118    118       -DSQLITE_ENABLE_MEMORY_MANAGEMENT=1
   119    119       -DSQLITE_ENABLE_RTREE=1
   120    120       -DSQLITE_MAX_COMPOUND_SELECT=50
   121    121       -DSQLITE_MAX_PAGE_SIZE=32768
   122         -    -DSQLITE_OMIT_BUILTIN_TEST=1
   123    122       -DSQLITE_OMIT_TRACE=1
   124    123       -DSQLITE_TEMP_STORE=3
   125    124       -DSQLITE_THREADSAFE=2
   126    125     }
   127    126     "Locking-Style" {
   128    127       -O2
   129    128       -DSQLITE_ENABLE_LOCKING_STYLE=1
................................................................................
   153    152     Linux-x86_64 {
   154    153       "Secure-Delete"           test
   155    154       "Unlock-Notify"           "QUICKTEST_INCLUDE=notify2.test test"
   156    155       "Update-Delete-Limit"     test
   157    156       "Debug-One"               test
   158    157       "Extra-Robustness"        test
   159    158       "Device-Two"              test
   160         -    "Default"                 test
          159  +    "Default"                 "threadtest test"
   161    160       "Device-One"              fulltest
   162    161     }
   163    162     Linux-i686 {
   164    163       "Unlock-Notify"           "QUICKTEST_INCLUDE=notify2.test test"
   165         -    "Device-Two"              test
   166    164       "Device-One"              test
   167         -    "Default"                 fulltest
          165  +    "Device-Two"              test
          166  +    "Default"                 "threadtest fulltest"
   168    167     }
   169    168     Darwin-i386 {
   170    169       "Locking-Style"           test
   171         -    "OS-X"                    fulltest
          170  +    "OS-X"                    "threadtest fulltest"
   172    171     }
   173    172   }
   174    173   
   175    174   # End of configuration section.
   176    175   #########################################################################
   177    176   #########################################################################
   178    177