Skip to content

Commit

Permalink
Test/query log to stdout (#60)
Browse files Browse the repository at this point in the history
* Create test query_log_to_stdout

---------

Co-authored-by: Pavel_Shilin <[email protected]>
  • Loading branch information
PavelShilin89 and Pavel_Shilin authored Nov 23, 2023
1 parent af591bf commit ac761b8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Empty file added .patterns
Empty file.
16 changes: 16 additions & 0 deletions clt_tests/tests/query_log_to_stdout.rec
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
––– block: ./base/init –––
––– input –––
docker run -d -e QUERY_LOG_TO_STDOUT=true --name manticore manticoresoftware/manticore:current
––– output –––
#!/[0-9a-z]+/!#
––– input –––
sleep 5;docker logs manticore | grep "accepting connections"
––– output –––
accepting connections
––– input –––
docker exec manticore mysql -e "CREATE TABLE a; SELECT * FROM a;"
––– output –––
––– input –––
docker logs manticore | grep "SELECT \* FROM a;"
––– output –––
/* #!/[A-Za-z]+/!# #!/[A-Za-z]+/!# %{NUMBER} #!/[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}/!# %{YEAR} conn %{NUMBER} real #!/[0-9]{1}\.[0-9]{3}/!# wall #!/[0-9]{1}\.[0-9]{3}/!# found %{NUMBER} */ SELECT * FROM a;

0 comments on commit ac761b8

Please sign in to comment.