From f02280f464c8bd976221d723a6acac20c971ddd7 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Fri, 10 Jun 2011 11:53:56 +1000 Subject: Allow v8 autotest to run without Qt --- tests/auto/declarative/v8/v8main.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/auto/declarative/v8/v8main.cpp (limited to 'tests/auto/declarative/v8/v8main.cpp') diff --git a/tests/auto/declarative/v8/v8main.cpp b/tests/auto/declarative/v8/v8main.cpp new file mode 100644 index 0000000000..bf37e2d3a5 --- /dev/null +++ b/tests/auto/declarative/v8/v8main.cpp @@ -0,0 +1,16 @@ +#include "v8test.h" +#include + +#define RUN_TEST(testname) { \ + if (!v8test_ ## testname()) \ + printf ("Test %s FAILED\n", # testname); \ +} + +int main(int argc, char *argv[]) +{ + v8::V8::SetFlagsFromCommandLine(&argc, argv, true); + + RUN_TEST(eval); + + return -1; +} -- cgit v1.2.3