Uncrustify maxscale

See script directory for method. The script to run in the top level
MaxScale directory is called maxscale-uncrustify.sh, which uses
another script, list-src, from the same directory (so you need to set
your PATH). The uncrustify version was 0.66.
This commit is contained in:
Niclas Antti
2018-09-09 22:26:19 +03:00
parent fa7ec95069
commit c447e5cf15
849 changed files with 35002 additions and 27238 deletions

View File

@ -15,18 +15,16 @@ int main(int argc, char** argv)
{
TestConnections test(argc, argv);
auto query = [&test](std::string q)
{
return execute_query_silent(test.maxscales->conn_rwsplit[0], q.c_str());
};
auto query = [&test](std::string q) {
return execute_query_silent(test.maxscales->conn_rwsplit[0], q.c_str());
};
auto check_result = [&test](std::string name, std::string res)
{
std::string query = "SELECT " + name;
char value[1024];
return find_field(test.maxscales->conn_rwsplit[0], query.c_str(), name.c_str(), value) == 0 &&
res == value;
};
auto check_result = [&test](std::string name, std::string res) {
std::string query = "SELECT " + name;
char value[1024];
return find_field(test.maxscales->conn_rwsplit[0], query.c_str(), name.c_str(), value) == 0
&& res == value;
};
test.maxscales->connect();
test.assert(query("DROP TABLE IF EXISTS test.t1;") == 0, "DROP TABLE should work.");