diff --git a/.patterns b/.patterns new file mode 100755 index 0000000..e69de29 diff --git a/clt_tests/tests/test-one-liner.rec b/clt_tests/tests/test-one-liner.rec new file mode 100644 index 0000000..9294ae1 --- /dev/null +++ b/clt_tests/tests/test-one-liner.rec @@ -0,0 +1,18 @@ +––– block: ./base/init ––– +––– input ––– +docker run -e EXTRA=1 --name manticore --rm -d manticoresearch/manticore:dev && echo "Waiting for Manticore docker to start. Consider mapping the data_dir to make it start faster next time" && until docker logs manticore 2>&1 | grep -q "accepting connections"; do sleep 1; echo -n .; done && echo && docker exec -it manticore mysql && docker stop manticore +––– output ––– +––– input ––– +sleep 5;docker logs manticore | grep "accepting connections" +––– output ––– +accepting connections +––– input ––– +docker exec manticore mysql -e "source /sandbox.sql" +––– output ––– +––– input ––– +mysql -e "SHOW TABLES\G;" +––– output ––– +––– output ––– +––– input ––– +mysql -e "SELECT * FROM films\G;" +––– output –––