Skip to contentSkip to conversation

gdb: Create a directory and a simple gdb testcase

PATCH New [email protected] 2 participants 2 messages Jul 17, 2017 – Jul 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gdb: Create a directory and a simple gdb testcase

From: Veronika Kabatova <[email protected]>

Create a testcase to verify gdb is able to attach to a process and this process is able to run without issues. Since no gdb-related tests are present, a directory and a makefie are created as well.

---
 runtest/commands                |  1 +
 testcases/commands/gdb/Makefile | 26 ++++++++++++++++++++++++++
 testcases/commands/gdb/gdb01.sh | 41 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 68 insertions(+)
 create mode 100644 testcases/commands/gdb/Makefile
 create mode 100755 testcases/commands/gdb/gdb01.sh
runtest/commands +1 -0
index 4661643..00ae0d2 100644
@@ -42,3 +42,4 @@ lsmod01 lsmod01.sh
 insmod01 insmod01.sh
 wc01 wc01.sh
 keyctl01 keyctl01.sh
+gdb01 gdb01.sh
testcases/commands/gdb/Makefile new file +26 -0
new file mode 100644
index 0000000..1ebbf65
@@ -0,0 +1,26 @@
+#
+#    misc/gdb test suite Makefile.
+#
+#    Copyright (C) 2017 Red Hat, Inc.
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+#    General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+
+top_srcdir		?= ../../..
+
+include $(top_srcdir)/include/mk/env_pre.mk
+
+INSTALL_TARGETS		:= *.sh
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/commands/gdb/gdb01.sh new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 gdb: Create a directory and a simple gdb testcase

----- Original Message -----

Quoted 5 lines

Create a testcase to verify gdb is able to attach to a process and this process is able to run without issues. Since no gdb-related tests are present, a directory and a makefie are created as well.

Pushed.

Regards,
Jan