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:
@ -6,21 +6,22 @@
|
||||
|
||||
#include "testconnections.h"
|
||||
|
||||
const char *rules = "rule test1 deny no_where_clause\n"
|
||||
const char* rules = "rule test1 deny no_where_clause\n"
|
||||
"rule test1 deny columns a b c\n"
|
||||
"users %@% match any rules test1\n";
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
/** Create the rule file */
|
||||
FILE *file = fopen("rules.txt", "w");
|
||||
FILE* file = fopen("rules.txt", "w");
|
||||
fwrite(rules, 1, strlen(rules), file);
|
||||
fclose(file);
|
||||
|
||||
TestConnections::skip_maxscale_start(true);
|
||||
TestConnections test(argc, argv);
|
||||
|
||||
test.maxscales->ssh_node(0, "mkdir -p /home/vagrant/rules/; chown -R vagrant:vagrant /home/vagrant/rules/",
|
||||
test.maxscales->ssh_node(0,
|
||||
"mkdir -p /home/vagrant/rules/; chown -R vagrant:vagrant /home/vagrant/rules/",
|
||||
true);
|
||||
test.maxscales->copy_to_node_legacy((char*)"rules.txt", (char*)"~/rules/rules.txt", 0);
|
||||
test.maxscales->ssh_node(0, "chmod a+r /home/vagrant/rules/rules.txt;", true);
|
||||
|
||||
Reference in New Issue
Block a user