From 3d3a63d289cdaa8bc4d4a3820d499ea5a3205b43 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 11 Mar 2019 16:47:49 +0300 Subject: Release version 3.18.2+7 Place libsqlite3 and sqlite3 packages into single repository. --- test/.gitignore | 1 - test/build/.gitignore | 3 --- test/build/bootstrap.build | 8 ------- test/build/root.build | 18 --------------- test/buildfile | 6 ----- test/driver.c | 56 ---------------------------------------------- 6 files changed, 92 deletions(-) delete mode 100644 test/.gitignore delete mode 100644 test/build/.gitignore delete mode 100644 test/build/bootstrap.build delete mode 100644 test/build/root.build delete mode 100644 test/buildfile delete mode 100644 test/driver.c (limited to 'test') diff --git a/test/.gitignore b/test/.gitignore deleted file mode 100644 index e54525b..0000000 --- a/test/.gitignore +++ /dev/null @@ -1 +0,0 @@ -driver diff --git a/test/build/.gitignore b/test/build/.gitignore deleted file mode 100644 index 4a730a3..0000000 --- a/test/build/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -config.build -root/ -bootstrap/ diff --git a/test/build/bootstrap.build b/test/build/bootstrap.build deleted file mode 100644 index 49e8cc2..0000000 --- a/test/build/bootstrap.build +++ /dev/null @@ -1,8 +0,0 @@ -# file : test/build/bootstrap.build -# copyright : not copyrighted - public domain - -project = # Unnamed subproject. - -using config -using dist -using test diff --git a/test/build/root.build b/test/build/root.build deleted file mode 100644 index 2db66fd..0000000 --- a/test/build/root.build +++ /dev/null @@ -1,18 +0,0 @@ -# file : test/build/root.build -# copyright : not copyrighted - public domain - -using c - -if ($c.class == 'msvc') -{ - c.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS - c.coptions += /wd4251 /wd4275 /wd4800 -} - -# Every exe{} in this subproject is by default a test. -# -exe{*}: test = true - -# Specify the test target for cross-testing. -# -test.target = $c.target diff --git a/test/buildfile b/test/buildfile deleted file mode 100644 index b3f54ef..0000000 --- a/test/buildfile +++ /dev/null @@ -1,6 +0,0 @@ -# file : test/buildfile -# copyright : not copyrighted - public domain - -import libs = libsqlite3%lib{sqlite3} - -exe{driver}: {h c}{*} $libs diff --git a/test/driver.c b/test/driver.c deleted file mode 100644 index 2eabb06..0000000 --- a/test/driver.c +++ /dev/null @@ -1,56 +0,0 @@ -/* file : test/driver.c - * copyright : not copyrighted - public domain - */ - -/* - * Basic test to make sure the library is usable. - */ - -#ifdef NDEBUG -# undef NDEBUG -#endif - -#include - -#include /* NULL */ -#include - -static int -sql (sqlite3* db, const char* stmt) -{ - return sqlite3_exec (db, stmt, NULL, NULL, NULL) == SQLITE_OK; -} - -int -main () -{ - sqlite3* db; - int r; - - r = sqlite3_open_v2 (":memory:", - &db, - SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, - NULL); - assert (r == SQLITE_OK); - - assert (sql (db, "BEGIN")); - assert (sql (db, "CREATE TABLE test (id INTEGER PRIMARY KEY, str TEXT)")); - assert (sql (db, "COMMIT")); - - assert (sql (db, "BEGIN")); - assert (sql (db, "INSERT INTO test VALUES (123, 'abc')")); - assert (sql (db, "COMMIT")); - - assert (sql (db, "BEGIN")); - assert (!sql (db, "INSERT INTO test VALUES (123, 'ABC')")); - assert (sql (db, "ROLLBACK")); - - assert (sql (db, "BEGIN")); - assert (sql (db, "DROP TABLE test")); - assert (sql (db, "COMMIT")); - - r = sqlite3_close (db); - assert (r == SQLITE_OK); - - return 0; -} -- cgit v1.1