Move MiInterpreterExecTestCase to test/tools/lldb-mi/interpreter folder (MI)
authorIlia K <ki.stfu@gmail.com>
Wed, 11 Mar 2015 12:28:48 +0000 (12:28 +0000)
committerIlia K <ki.stfu@gmail.com>
Wed, 11 Mar 2015 12:28:48 +0000 (12:28 +0000)
llvm-svn: 231918

lldb/test/tools/lldb-mi/interpreter/Makefile [new file with mode: 0644]
lldb/test/tools/lldb-mi/interpreter/TestMiInterpreterExec.py [moved from lldb/test/tools/lldb-mi/TestMiInterpreterExec.py with 98% similarity]
lldb/test/tools/lldb-mi/interpreter/main.cpp [new file with mode: 0644]

diff --git a/lldb/test/tools/lldb-mi/interpreter/Makefile b/lldb/test/tools/lldb-mi/interpreter/Makefile
new file mode 100644 (file)
index 0000000..314f1cb
--- /dev/null
@@ -0,0 +1,5 @@
+LEVEL = ../../../make
+
+CXX_SOURCES := main.cpp
+
+include $(LEVEL)/Makefile.rules
@@ -2,6 +2,10 @@
 Test lldb-mi -interpreter-exec command.
 """
 
+# adjust path for lldbmi_testcase.py
+import sys, os.path
+sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
+
 import lldbmi_testcase
 from lldbtest import *
 import unittest2
diff --git a/lldb/test/tools/lldb-mi/interpreter/main.cpp b/lldb/test/tools/lldb-mi/interpreter/main.cpp
new file mode 100644 (file)
index 0000000..d4c353f
--- /dev/null
@@ -0,0 +1,17 @@
+//===-- main.cpp ------------------------------------------------*- C++ -*-===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include <cstdio>
+
+int
+main(int argc, char const *argv[])
+{
+    printf("argc=%d\n", argc);
+    return 0;
+}