From 555ed1342dfdb4d4a001cc3249f95aeaed63fc33 Mon Sep 17 00:00:00 2001 From: Ilia K Date: Wed, 11 Mar 2015 12:28:48 +0000 Subject: [PATCH] Move MiInterpreterExecTestCase to test/tools/lldb-mi/interpreter folder (MI) llvm-svn: 231918 --- lldb/test/tools/lldb-mi/interpreter/Makefile | 5 +++++ .../lldb-mi/{ => interpreter}/TestMiInterpreterExec.py | 4 ++++ lldb/test/tools/lldb-mi/interpreter/main.cpp | 17 +++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 lldb/test/tools/lldb-mi/interpreter/Makefile rename lldb/test/tools/lldb-mi/{ => interpreter}/TestMiInterpreterExec.py (98%) create mode 100644 lldb/test/tools/lldb-mi/interpreter/main.cpp diff --git a/lldb/test/tools/lldb-mi/interpreter/Makefile b/lldb/test/tools/lldb-mi/interpreter/Makefile new file mode 100644 index 0000000..314f1cb --- /dev/null +++ b/lldb/test/tools/lldb-mi/interpreter/Makefile @@ -0,0 +1,5 @@ +LEVEL = ../../../make + +CXX_SOURCES := main.cpp + +include $(LEVEL)/Makefile.rules diff --git a/lldb/test/tools/lldb-mi/TestMiInterpreterExec.py b/lldb/test/tools/lldb-mi/interpreter/TestMiInterpreterExec.py similarity index 98% rename from lldb/test/tools/lldb-mi/TestMiInterpreterExec.py rename to lldb/test/tools/lldb-mi/interpreter/TestMiInterpreterExec.py index 06d057c..bd58cf4 100644 --- a/lldb/test/tools/lldb-mi/TestMiInterpreterExec.py +++ b/lldb/test/tools/lldb-mi/interpreter/TestMiInterpreterExec.py @@ -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 index 0000000..d4c353f --- /dev/null +++ b/lldb/test/tools/lldb-mi/interpreter/main.cpp @@ -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 + +int +main(int argc, char const *argv[]) +{ + printf("argc=%d\n", argc); + return 0; +} -- 2.7.4