xref: /sqlite-3.40.0/test/fts3dropmod.test (revision aca5e49c)
12999068dSdan# 2021 December 16
22999068dSdan#
32999068dSdan# The author disclaims copyright to this source code.  In place of
42999068dSdan# a legal notice, here is a blessing:
52999068dSdan#
62999068dSdan#    May you do good and not evil.
72999068dSdan#    May you find forgiveness for yourself and forgive others.
82999068dSdan#    May you share freely, never taking more than you give.
92999068dSdan#
102999068dSdan#*************************************************************************
112999068dSdan# This file implements regression tests for SQLite library.  The
122999068dSdan# focus of this script is testing the FTS3 module.
132999068dSdan#
142999068dSdan# $Id: fts3aa.test,v 1.1 2007/08/20 17:38:42 shess Exp $
152999068dSdan#
162999068dSdan
172999068dSdanset testdir [file dirname $argv0]
182999068dSdansource $testdir/tester.tcl
192999068dSdanset testprefix fts3dropmod
202999068dSdan
212999068dSdan# If SQLITE_ENABLE_FTS3 is defined, omit this file.
222999068dSdanifcapable !fts3 {
232999068dSdan  finish_test
242999068dSdan  return
252999068dSdan}
262999068dSdan
272999068dSdansqlite3_drop_modules db fts3
282999068dSdando_execsql_test 1.0 {
292999068dSdan  CREATE VIRTUAL TABLE t1 USING fts3(x);
302999068dSdan}
312999068dSdando_catchsql_test 1.1 {
322999068dSdan  CREATE VIRTUAL TABLE t2 USING fts4(x);
332999068dSdan} {1 {no such module: fts4}}
342999068dSdan
352999068dSdanreset_db
362999068dSdansqlite3_drop_modules db fts4
372999068dSdando_execsql_test 2.0 {
382999068dSdan  CREATE VIRTUAL TABLE t1 USING fts4(x);
392999068dSdan}
402999068dSdando_catchsql_test 2.1 {
412999068dSdan  CREATE VIRTUAL TABLE t2 USING fts3(x);
42*aca5e49cSdrh} {1 {no such module: fts3}}
432999068dSdan
442999068dSdanfinish_test
45