]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Run fuzzershell as part of the valgrindtest makefile target.
authordrh <drh@noemail.net>
Fri, 24 Apr 2015 16:53:03 +0000 (16:53 +0000)
committerdrh <drh@noemail.net>
Fri, 24 Apr 2015 16:53:03 +0000 (16:53 +0000)
FossilOrigin-Name: 0bb96a037bd7179cb3a6137bb29827fc7d72ec3f

Makefile.in
main.mk
manifest
manifest.uuid
test/releasetest.tcl
tool/fuzzershell.c

index 0a6045fa2a72645f961278f535d9c50852307088..cc2dbfc3189ea4335b52a05f099c6a003390db41 100644 (file)
@@ -975,7 +975,8 @@ test:       testfixture$(TEXE) sqlite3$(TEXE) fuzztest
 # Run a test using valgrind.  This can take a really long time
 # because valgrind is so much slower than a native machine.
 #
-valgrindtest:  testfixture$(TEXE) sqlite3$(TEXE)
+valgrindtest:  testfixture$(TEXE) sqlite3$(TEXE) fuzzershell$(TEXE)
+       valgrind -v ./fuzzershell$(TEXE) -f $(TOP)/test/fuzzdata1.txt
        OMIT_MISUSE=1 valgrind -v ./testfixture$(TEXE) $(TOP)/test/permutations.test valgrind
 
 # A very fast test that checks basic sanity.  The name comes from
diff --git a/main.mk b/main.mk
index 2001300a2291d1cce3c048028fba021708ba76d4..f06488e6f58c3bdbb4488658cae6132f37935d73 100644 (file)
--- a/main.mk
+++ b/main.mk
@@ -651,6 +651,13 @@ fuzztest:  fuzzershell$(EXE)
 test:  testfixture$(EXE) sqlite3$(EXE) fuzztest
        ./testfixture$(EXE) $(TOP)/test/veryquick.test
 
+# Run a test using valgrind.  This can take a really long time
+# because valgrind is so much slower than a native machine.
+#
+valgrindtest:  testfixture$(EXE) sqlite3$(EXE) fuzzershell$(EXE)
+       valgrind -v ./fuzzershell$(EXE) -f $(TOP)/test/fuzzdata1.txt
+       OMIT_MISUSE=1 valgrind -v ./testfixture$(EXE) $(TOP)/test/permutations.test valgrind
+
 # The next two rules are used to support the "threadtest" target. Building
 # threadtest runs a few thread-safety tests that are implemented in C. This
 # target is invoked by the releasetest.tcl script.
index 2c94283de2bc1b8776398eeccd19dbc72509bced..8bdf9339ebca6405ca9ea4e15c5f2c1c6222e3bb 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,7 +1,7 @@
-C Add\sthe\sfuzztest\starget\sto\sthe\sMSVC\smakefile.
-D 2015-04-24T16:16:31.886
+C Run\sfuzzershell\sas\spart\sof\sthe\svalgrindtest\smakefile\starget.
+D 2015-04-24T16:53:03.100
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
-F Makefile.in a1e5faa26179818cfb4e7dac6cfa131d03f6b0ea
+F Makefile.in e25a3b8036f49bc0a08694b7a41ee0913d60f4e5
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
 F Makefile.msc 4a546e42ecfd0fe53c31e05c2a965e17fb591637
 F Makefile.vxworks e1b65dea203f054e71653415bd8f96dcaed47858
@@ -152,7 +152,7 @@ F ext/userauth/userauth.c 5fa3bdb492f481bbc1709fc83c91ebd13460c69e
 F install-sh 9d4de14ab9fb0facae2f48780b874848cbf2f895 x
 F ltmain.sh 3ff0879076df340d2e23ae905484d8c15d5fdea8
 F magic.txt 8273bf49ba3b0c8559cb2774495390c31fd61c60
-F main.mk 3cb2fbae2405c63ad74be4f25070a29c46a56fe6
+F main.mk b8996b5919fd0781417b1c2305f4a7ea18b2220d
 F mkopcodec.awk c2ff431854d702cdd2d779c9c0d1f58fa16fa4ea
 F mkopcodeh.awk d5e22023b5238985bb54a72d33e0ac71fe4f8a32
 F mkso.sh fd21c06b063bb16a5d25deea1752c2da6ac3ed83
@@ -814,7 +814,7 @@ F test/randexpr1.test eda062a97e60f9c38ae8d806b03b0ddf23d796df
 F test/rdonly.test 64e2696c322e3538df0b1ed624e21f9a23ed9ff8
 F test/regexp1.test 497ea812f264d12b6198d6e50a76be4a1973a9d8
 F test/reindex.test 44edd3966b474468b823d481eafef0c305022254
-F test/releasetest.tcl dcc5f4244098474b2dd4357123518258657807e0
+F test/releasetest.tcl ca3390bad7c156c6d635e2b657332a5067f44acc
 F test/resolver01.test f4022acafda7f4d40eca94dbf16bc5fc4ac30ceb
 F test/rollback.test 458fe73eb3ffdfdf9f6ba3e9b7350a6220414dea
 F test/rollback2.test fc14cf6d1a2b250d2735ef16124b971bce152f14
@@ -1205,7 +1205,7 @@ F tool/diffdb.c 7524b1b5df217c20cd0431f6789851a4e0cb191b
 F tool/extract.c 054069d81b095fbdc189a6f5d4466e40380505e2
 F tool/fast_vacuum.c 5ba0d6f5963a0a63bdc42840f678bad75b2ebce1
 F tool/fragck.tcl 5265a95126abcf6ab357f7efa544787e5963f439
-F tool/fuzzershell.c ddb3cf6e1f8366f76498c75bd36d63a58ac57a97
+F tool/fuzzershell.c 0a260bf9bbf33d4534834167c30f812cd8fdf7c8
 F tool/genfkey.README cf68fddd4643bbe3ff8e31b8b6d8b0a1b85e20f4
 F tool/genfkey.test 4196a8928b78f51d54ef58e99e99401ab2f0a7e5
 F tool/getlock.c f4c39b651370156cae979501a7b156bdba50e7ce
@@ -1253,7 +1253,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 0abfd78ceb09b7f7c27c688c8e3fe93268a13b32
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 627ea83c26b420088f101801eb8765127f47d2d0
-R f95072dc4d7f37b67ec23c04637d926a
+P 98edc6152cdd935dc83c1330c088145e7adb9dd0
+R 57cb1c15bd3f01264a7d78a199355194
 U drh
-Z ad44373bb5cba44811711435ae9efa03
+Z 84cb54aeebcbf9196abb3e78dcce4413
index 3cb3b695317e23080897022816aa49476edd4b63..64fbb318e4d986bde1def5ab2077a394efe7b320 100644 (file)
@@ -1 +1 @@
-98edc6152cdd935dc83c1330c088145e7adb9dd0
\ No newline at end of file
+0bb96a037bd7179cb3a6137bb29827fc7d72ec3f
\ No newline at end of file
index 05250a119ab3c16e85d3e67a13fa2df3e23c7ff0..f9eb96c2a65c879c7425f6a1fedb7d6f8dcf94d9 100644 (file)
@@ -199,7 +199,8 @@ array set ::Configs [strip_comments {
   Fail2 {-O0}
   Fail3 {-O0}
   Fail4 {-O0}
-  FuzzFail {-O0}
+  FuzzFail1 {-O0}
+  FuzzFail2 {-O0}
 }]
 
 array set ::Platforms [strip_comments {
@@ -256,7 +257,8 @@ array set ::Platforms [strip_comments {
     Fail2     "TEST_FAILURE=2 valgrindtest"
     Fail3     "TEST_FAILURE=3 valgrindtest"
     Fail4     "TEST_FAILURE=4 test"
-    FuzzFail  "TEST_FAILURE=5 test"
+    FuzzFail1 "TEST_FAILURE=5 test"
+    FuzzFail2 "TEST_FAILURE=5 valgrindtest"
   }
 }]
 
index a35ed3aa7a09c651f4caa5daf1b4a614c12dd35d..029238358a70249e22b0fe5c8582c6ad531a3139 100644 (file)
@@ -631,8 +631,15 @@ int main(int argc, char **argv){
     if( nTest==1 ){
       /* Simulate an error if the TEST_FAILURE environment variable is "5" */
       char *zFailCode = getenv("TEST_FAILURE");
-      if( zFailCode && zFailCode[0]=='5' && zFailCode[1]==0 ){
-        abendError("simulated failure");
+      if( zFailCode ){
+        if( zFailCode[0]=='5' && zFailCode[1]==0 ){
+          abendError("simulated failure");
+        }else if( zFailCode[0]!=0 ){
+          /* If TEST_FAILURE is something other than 5, just exit the test
+          ** early */
+          printf("\nExit early due to TEST_FAILURE being set");
+          break;
+        }
       }
     }
   }