summaryrefslogtreecommitdiffstats
path: root/tests/auto/v8/v8main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/v8/v8main.cpp')
-rw-r--r--tests/auto/v8/v8main.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/v8/v8main.cpp b/tests/auto/v8/v8main.cpp
new file mode 100644
index 0000000000..fa0137938e
--- /dev/null
+++ b/tests/auto/v8/v8main.cpp
@@ -0,0 +1,17 @@
+#include "v8test.h"
+#include <stdio.h>
+
+#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);
+ RUN_TEST(userobjectcompare);
+
+ return -1;
+}