summaryrefslogtreecommitdiff
path: root/render-test/ios/iosTestRunner.mm
diff options
context:
space:
mode:
Diffstat (limited to 'render-test/ios/iosTestRunner.mm')
-rw-r--r--render-test/ios/iosTestRunner.mm34
1 files changed, 34 insertions, 0 deletions
diff --git a/render-test/ios/iosTestRunner.mm b/render-test/ios/iosTestRunner.mm
new file mode 100644
index 0000000000..9326602bef
--- /dev/null
+++ b/render-test/ios/iosTestRunner.mm
@@ -0,0 +1,34 @@
+#import "iosTestRunner.h"
+
+#import "ios_test_runner.hpp"
+
+#include <string>
+
+@interface IosTestRunner ()
+{
+ TestRunner* runner;
+}
+@end
+
+@implementation IosTestRunner
+
+-(instancetype)init
+{
+ self = [super init];
+ if (self) {
+ runner = new TestRunner();
+ NSString *path = [[NSBundle mainBundle] pathForResource:@"mac-manifest" ofType:@"json"];
+
+// NSString * path1 = [[NSBundle mainBundle] pathForResource:@"package-lock" ofType:@"json" inDirectory:@"integration"];
+ NSString *path1 = [[NSBundle mainBundle] bundlePath];
+ (void)path1;
+// NSURL *url = [NSURL fileURLWithPath:path];
+ std::string manifest = std::string([path UTF8String]);
+ runner->startTest(manifest);
+ delete runner;
+ runner = nullptr;
+ }
+ return self;
+}
+
+@end