Lines Matching refs:SELFTEST
2104 ** Generate an appropriate SELFTEST table in the main database.
2110 "CREATE TABLE IF NOT EXISTS selftest(\n"
2118 " VALUES(coalesce((SELECT (max(tno)+100)/10 FROM selftest),10),\n"
2134 " AND name<>'selftest'\n"
2140 "INSERT INTO selftest(tno,op,cmd,ans)"
2145 utf8_printf(stderr, "SELFTEST initialization failure: %s\n", zErrMsg);
3178 ".selftest ?--init? Run tests defined in the SELFTEST table\n"
5826 if( c=='s' && n>=10 && strncmp(azArg[0], "selftest-", 9)==0 ){
5846 if( c=='s' && n>=4 && strncmp(azArg[0],"selftest",n)==0 ){
5847 int bIsInit = 0; /* True to initialize the SELFTEST table */
5849 int bSelftestExists; /* True if SELFTEST already exists */
5850 char **azTest = 0; /* Content of the SELFTEST table */
5851 int nRow = 0; /* Number of rows in the SELFTEST table */
5852 int nCol = 4; /* Number of columns in the SELFTEST table */
5859 "0", "memo", "Missing SELFTEST table - default checks only", "",
5882 if( sqlite3_table_column_metadata(p->db,"main","selftest",0,0,0,0,0,0)
5894 "SELECT tno,op,cmd,ans FROM selftest ORDER BY tno",
5897 raw_printf(stderr, "Error querying the selftest table\n");
5949 "Unknown operation \"%s\" on selftest line %d\n", zOp, tno);