+function show_syntax() {
+ echo -e "Syntax: ./autotest.sh [dbconfigname] [testfile]\n" >&2
+ echo -e "\t\"dbconfigname\" can be one of: $DBCONFIGS" >&2
+ echo -e "\t\"testfile\" is the name of a test file, for example lib/template.php" >&2
+ echo -e "\nDatabase environment variables:\n" >&2
+ echo -e "\t\"MYSQL_HOST\" Mysql Hostname (Default: localhost)" >&2
+ echo -e "\t\"MYSQL_USDRNAME\" Mysql Username (Default: friendica)" >&2
+ echo -e "\t\"MYSQL_DATABASE\" Mysql Database (Default: test)" >&2
+ echo -e "\nOther environment variables:\n" >&2
+ echo -e "\t\"TEST_SELECTION\" test a specific group of tests, can be one of: $TESTS" >&2
+ echo -e "\t\"NOINSTALL\" If set to true, skip the db and install process" >&2
+ echo -e "\t\"NOCOVERAGE\" If set to true, don't create a coverage output" >&2
+ echo -e "\t\"USEDOCKER\" If set to true, the DB server will be executed inside a docker container" >&2
+ echo -e "\nExample: NOCOVERAGE=true ./autotest.sh mysql src/Core/Cache/MemcacheTest.php" >&2
+ echo "will run the test suite from \"tests/src/Core/Cache/MemcacheTest.php\" without a Coverage" >&2
+ echo -e "\nIf no arguments are specified, all tests will be run with all database configs" >&2
+}
+