summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/Settings/Inputs
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-10-09 19:22:02 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-10-09 19:22:02 +0000
commit87aa9c9e4d41ed881453e2fab85b3d25f648bb55 (patch)
tree63efe79832bf3de4f63e4e81c62e73923947b882 /lldb/test/Shell/Settings/Inputs
parentfd18e94697c987d5f24e25aa4e27adaffff3cce4 (diff)
downloadbcm5719-llvm-87aa9c9e4d41ed881453e2fab85b3d25f648bb55.tar.gz
bcm5719-llvm-87aa9c9e4d41ed881453e2fab85b3d25f648bb55.zip
Re-land "[test] Split LLDB tests into API, Shell & Unit"
The original patch got reverted because it broke `check-lldb` on a clean build. This fixes that. llvm-svn: 374201
Diffstat (limited to 'lldb/test/Shell/Settings/Inputs')
-rw-r--r--lldb/test/Shell/Settings/Inputs/DontStopCommandSource.in3
-rw-r--r--lldb/test/Shell/Settings/Inputs/EchoCommandsAll.out6
-rw-r--r--lldb/test/Shell/Settings/Inputs/EchoCommandsNoComments.out5
-rw-r--r--lldb/test/Shell/Settings/Inputs/EchoCommandsNone.out4
-rw-r--r--lldb/test/Shell/Settings/Inputs/EchoCommandsQuiet.out2
-rw-r--r--lldb/test/Shell/Settings/Inputs/EchoCommandsTest.in2
-rw-r--r--lldb/test/Shell/Settings/Inputs/StopCommandSource.in3
-rw-r--r--lldb/test/Shell/Settings/Inputs/main.c2
8 files changed, 27 insertions, 0 deletions
diff --git a/lldb/test/Shell/Settings/Inputs/DontStopCommandSource.in b/lldb/test/Shell/Settings/Inputs/DontStopCommandSource.in
new file mode 100644
index 00000000000..e33a1e329ca
--- /dev/null
+++ b/lldb/test/Shell/Settings/Inputs/DontStopCommandSource.in
@@ -0,0 +1,3 @@
+settings set interpreter.stop-command-source-on-error false
+bogus
+print 123400000 + 56789
diff --git a/lldb/test/Shell/Settings/Inputs/EchoCommandsAll.out b/lldb/test/Shell/Settings/Inputs/EchoCommandsAll.out
new file mode 100644
index 00000000000..45b77291976
--- /dev/null
+++ b/lldb/test/Shell/Settings/Inputs/EchoCommandsAll.out
@@ -0,0 +1,6 @@
+# CHECK: (lldb) command source -s {{.*\n}}
+# CHECK: (lldb) command source -s {{.*\n}}
+# CHECK-NEXT: Executing commands in {{.*\n}}
+# CHECK-NEXT: Evaluate expr 1+2
+# CHECK-NEXT: expr 1+2
+# CHECK-NEXT: (int) $0 = 3
diff --git a/lldb/test/Shell/Settings/Inputs/EchoCommandsNoComments.out b/lldb/test/Shell/Settings/Inputs/EchoCommandsNoComments.out
new file mode 100644
index 00000000000..a0b653a8f4c
--- /dev/null
+++ b/lldb/test/Shell/Settings/Inputs/EchoCommandsNoComments.out
@@ -0,0 +1,5 @@
+# CHECK: (lldb) command source -s {{.*\n}}
+# CHECK: (lldb) command source -s {{.*\n}}
+# CHECK-NEXT: Executing commands in {{.*\n}}
+# CHECK-NEXT: expr 1+2
+# CHECK-NEXT: (int) $0 = 3
diff --git a/lldb/test/Shell/Settings/Inputs/EchoCommandsNone.out b/lldb/test/Shell/Settings/Inputs/EchoCommandsNone.out
new file mode 100644
index 00000000000..fca1bbb50ca
--- /dev/null
+++ b/lldb/test/Shell/Settings/Inputs/EchoCommandsNone.out
@@ -0,0 +1,4 @@
+# CHECK: (lldb) command source -s {{.*\n}}
+# CHECK: (lldb) command source -s {{.*\n}}
+# CHECK-NEXT: Executing commands in {{.*\n}}
+# CHECK-NEXT: (int) $0 = 3
diff --git a/lldb/test/Shell/Settings/Inputs/EchoCommandsQuiet.out b/lldb/test/Shell/Settings/Inputs/EchoCommandsQuiet.out
new file mode 100644
index 00000000000..12ad094292d
--- /dev/null
+++ b/lldb/test/Shell/Settings/Inputs/EchoCommandsQuiet.out
@@ -0,0 +1,2 @@
+# CHECK: (lldb) command source -s 1 {{.*\n}}
+# CHECK-NEXT: (lldb) command source -s 1 {{.*\n}}
diff --git a/lldb/test/Shell/Settings/Inputs/EchoCommandsTest.in b/lldb/test/Shell/Settings/Inputs/EchoCommandsTest.in
new file mode 100644
index 00000000000..304648e81e1
--- /dev/null
+++ b/lldb/test/Shell/Settings/Inputs/EchoCommandsTest.in
@@ -0,0 +1,2 @@
+# Evaluate expr 1+2
+expr 1+2
diff --git a/lldb/test/Shell/Settings/Inputs/StopCommandSource.in b/lldb/test/Shell/Settings/Inputs/StopCommandSource.in
new file mode 100644
index 00000000000..19974c0c444
--- /dev/null
+++ b/lldb/test/Shell/Settings/Inputs/StopCommandSource.in
@@ -0,0 +1,3 @@
+settings set interpreter.stop-command-source-on-error true
+bogus
+print 123400000 + 56789
diff --git a/lldb/test/Shell/Settings/Inputs/main.c b/lldb/test/Shell/Settings/Inputs/main.c
new file mode 100644
index 00000000000..c029ddd96cd
--- /dev/null
+++ b/lldb/test/Shell/Settings/Inputs/main.c
@@ -0,0 +1,2 @@
+int foo() { return 0; }
+int main() { return foo(); }
OpenPOWER on IntegriCloud