mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
* stub out a test framework for fbsql * Introduce fbsql integration test framework. This also adds support for `pset location` to set the geo location (i.e. time zone) in which timestamps should be displayed. And it adds support for comments (lines starting with `--`) in the line reader/splitter. * Replace Stdin and Stderr with setters and un-export them
24 lines
677 B
Text
24 lines
677 B
Text
// Make sure there's something in the query buffer.
|
|
// This is left unterminated because we don't need to execute the query;
|
|
// we just need there to be something in the buffer.
|
|
SEND:SELECT * FROM invalid-table
|
|
SEND:\write query-buffer-contents
|
|
|
|
// Reset the buffer.
|
|
SEND:\r
|
|
EXPECT:Query buffer reset (cleared).
|
|
|
|
// Read from the file.
|
|
SEND:\! cat query-buffer-contents
|
|
EXPECT:SELECT * FROM invalid-table
|
|
|
|
// Remove the file.
|
|
SEND:\! rm query-buffer-contents
|
|
|
|
// Send \write with no arguments.
|
|
SEND:\write
|
|
EXPECT:\w: missing required argument
|
|
|
|
// Send \write with extra arguments.
|
|
SEND:\write filename extra
|
|
EXPECT:executing meta command: meta command 'w' exactly one argument
|