emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/realgud-lldb 2c9fbf9 28/56: Some cleanups


From: Rocky Bernstein
Subject: [elpa] externals/realgud-lldb 2c9fbf9 28/56: Some cleanups
Date: Thu, 23 May 2019 02:11:40 -0400 (EDT)

branch: externals/realgud-lldb
commit 2c9fbf9b69aa084052ca94d2c99db4dcd89ebf6f
Author: rocky <address@hidden>
Commit: rocky <address@hidden>

    Some cleanups
---
 autogen.sh               |  4 ++++
 lldb/Makefile.am         |  3 ---
 test/Makefile.am         |  4 ----
 test/test-lldb.el        |  3 +++
 test/test-regexp-lldb.el | 25 ++++++++++++++-----------
 5 files changed, 21 insertions(+), 18 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 88c32e7..7beb4b9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,8 @@
 #!/bin/sh
+# An autoconf setup script.
+# From inside emacs, make sure test-simple is installed and then
+# Press C-x C-e at the end of the next line run this script
+# (test-simple-run "EMACSLOADPATH=%s ./autogen.sh"  (mapconcat 'identity 
load-path ":"))
 ln -fs README.md README
 touch common.mk
 autoreconf -vfi && \
diff --git a/lldb/Makefile.am b/lldb/Makefile.am
index 9fb80c0..f5cce1b 100644
--- a/lldb/Makefile.am
+++ b/lldb/Makefile.am
@@ -1,6 +1,3 @@
-lisp_files = $(wildcard *.el)
-EXTRA_DIST = $(lisp_files)
-lisp_LISP = $(lisp_files)
 include ../common.mk
 lisp_files = $(wildcard *.el)
 EXTRA_DIST=$(lisp_files)
diff --git a/test/Makefile.am b/test/Makefile.am
index acd572e..8b78d7c 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -3,10 +3,6 @@ EXTRA_DIST = $(lisp_files)
 lisp_LISP = $(lisp_files)
 include $(top_srcdir)/common.mk
 
-lisp_files = $(wildcard *.el)
-EXTRA_DIST=$(lisp_files)
-
-
 PHONY=check test all check-elget test-elget help
 
 #: overall help on running the make targets
diff --git a/test/test-lldb.el b/test/test-lldb.el
index 72e72fa..7db0984 100644
--- a/test/test-lldb.el
+++ b/test/test-lldb.el
@@ -1,3 +1,6 @@
+;; Press C-x C-e at the end of the next line to run this file test 
non-interactively
+;; (test-simple-run "emacs -batch -L %s -L %s -l %s" (file-name-directory 
(locate-library "test-simple.elc")) (file-name-directory (locate-library 
"realgud.elc")) buffer-file-name)
+
 (require 'test-simple)
 (require 'load-relative)
 (load-file "../lldb/core.el")
diff --git a/test/test-regexp-lldb.el b/test/test-regexp-lldb.el
index 0e3b19d..b19f2f6 100644
--- a/test/test-regexp-lldb.el
+++ b/test/test-regexp-lldb.el
@@ -1,3 +1,6 @@
+;; Press C-x C-e at the end of the next line to run this file test 
non-interactively
+;; (test-simple-run "emacs -batch -L %s -L %s -l %s" (file-name-directory 
(locate-library "test-simple.elc")) (file-name-directory (locate-library 
"realgud.elc")) buffer-file-name)
+
 (require 'test-simple)
 (require 'load-relative)
 (require 'realgud)
@@ -10,8 +13,8 @@
 
 (eval-when-compile
   (defvar dbg-name)   (defvar realgud-pat-hash)   (defvar realgud-bt-hash)
-  (defvar loc-pat)    (defvar prompt-pat)         (defvar s1)
-  (defvar file-group) (defvar line-group)         (defvar pos)
+  (defvar loc-pat)    (defvar prompt-pat)
+  (defvar file-group) (defvar line-group)         (defvar test-pos)
   (defvar test-dbgr)  (defvar test-text)
 )
 
@@ -64,9 +67,9 @@
                         (match-beginning line-group)
                         (match-end line-group)))
 
-(setq pos (match-end 0))
-(assert-equal 65 pos)
-(assert-equal 65 (string-match realgud-bt-re test-text pos))
+(setq test-pos (match-end 0))
+(assert-equal 65 test-pos)
+(assert-equal 65 (string-match realgud-bt-re test-text test-pos))
 (assert-equal "strdup.c"
              (substring test-text
                         (match-beginning file-group)
@@ -76,9 +79,9 @@
                         (match-beginning line-group)
                         (match-end line-group)))
 
-(setq pos (match-end 0))
-(assert-equal 149 pos)
-(assert-equal 149 (string-match realgud-bt-re test-text pos))
+(setq test-pos (match-end 0))
+(assert-equal 149 test-pos)
+(assert-equal 149 (string-match realgud-bt-re test-text test-pos))
 (assert-equal "main.c"
              (substring test-text
                         (match-beginning file-group)
@@ -88,9 +91,9 @@
                         (match-beginning line-group)
                         (match-end line-group)))
 
-(setq pos (match-end 0))
-(assert-equal 233 pos)
-(assert-equal 233 (string-match realgud-bt-re test-text pos))
+(setq test-pos (match-end 0))
+(assert-equal 233 test-pos)
+(assert-equal 233 (string-match realgud-bt-re test-text test-pos))
 (assert-equal "vm_insnhelper.c"
              (substring test-text
                         (match-beginning file-group)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]