mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44: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
17 lines
544 B
Text
17 lines
544 B
Text
// Make a directory so we can test \cd'ing into it.
|
|
SEND:\! mkdir cli-test-dir
|
|
SEND:\cd cli-test-dir
|
|
SEND:\cd ..
|
|
SEND:\! rmdir cli-test-dir
|
|
|
|
// TODO(tlt): before we do this, we should implement the ability to execute
|
|
// commands in a \set like:
|
|
// \set homedir `pwd`
|
|
// then we can store what directory we're in so we can move back to it
|
|
// at the end of the test
|
|
// Switch to home directory.
|
|
// SEND:\cd
|
|
|
|
// Expect error on extra argument to \cd.
|
|
SEND:\cd dir extra
|
|
EXPECT:executing meta command: meta command 'cd' takes zero or one argument
|