Tests will now return the extra command line parameters they need
when run with --params
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
#define SKIP 77
+char __attribute__((weak)) *server_parameters="";
+
extern const struct weston_test __start_test_section, __stop_test_section;
static const struct weston_test *
exit(EXIT_SUCCESS);
}
+ if (strcmp(testname, "--params") == 0 ||
+ strcmp(testname, "-p") == 0) {
+ printf("%s", server_parameters);
+ exit(EXIT_SUCCESS);
+ }
+
t = find_test(argv[1]);
if (t == NULL) {
fprintf(stderr, "unknown test: \"%s\"\n", argv[1]);
--shell=$SHELL_PLUGIN \
--log="$SERVERLOG" \
--modules=$TEST_PLUGIN,$XWAYLAND_PLUGIN \
+ $($abs_builddir/$TESTNAME --params) \
&> "$OUTLOG"
esac