config-parser: Make weston_config_parse() tkae a file name

Take a basename of the config file to parse instead of an fd.
diff --git a/tests/config-parser-test.c b/tests/config-parser-test.c
index 83e89ba..4b8fc7e 100644
--- a/tests/config-parser-test.c
+++ b/tests/config-parser-test.c
@@ -40,7 +40,7 @@
 	len = write(fd, text, strlen(text));
 	assert(len == (int) strlen(text));
 
-	config = weston_config_parse(fd);
+	config = weston_config_parse(file);
 	close(fd);
 	unlink(file);