emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/merge-cedet-tests 9e6abad 241/316: Run the code fo


From: Edward John Steere
Subject: [Emacs-diffs] scratch/merge-cedet-tests 9e6abad 241/316: Run the code for the compiled binary
Date: Sat, 28 Jan 2017 09:10:07 +0000 (UTC)

branch: scratch/merge-cedet-tests
commit 9e6abad9692f587a6eb3f97f2680bf0ad85fef33
Author: zappo <address@hidden>
Commit: Edward John Steere <address@hidden>

    Run the code for the compiled binary
    
    * test/manual/cedet/cit-cpp.el: (cit-main-cpp-tags): Add code to main.
     (cit-srecode-fill-cpp): Run the compiled program.
---
 test/manual/cedet/cit-cpp.el |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/test/manual/cedet/cit-cpp.el b/test/manual/cedet/cit-cpp.el
index e162eaf..1ab5bff 100644
--- a/test/manual/cedet/cit-cpp.el
+++ b/test/manual/cedet/cit-cpp.el
@@ -3,7 +3,7 @@
 ;; Copyright (C) 2008, 2009 Eric M. Ludlam
 
 ;; Author: Eric M. Ludlam <address@hidden>
-;; X-RCS: $Id: cit-cpp.el,v 1.7 2009-10-15 02:55:46 zappo Exp $
+;; X-RCS: $Id: cit-cpp.el,v 1.8 2009-10-18 16:16:30 zappo Exp $
 
 ;; This program is free software; you can redistribute it and/or
 ;; modify it under the terms of the GNU General Public License as
@@ -97,19 +97,22 @@
 
 (defvar cit-main-cpp-tags
   (list
+   (semantic-tag-new-include "stdio.h" nil)
    (semantic-tag-new-include "foo.hh" nil)
    (semantic-tag-new-function
     "main" "int"
     (list (semantic-tag-new-variable "argc" "int")
          (semantic-tag-new-variable "argv" "char"
                                     nil
-                                    :pointer 2 )))
+                                    :pointer 2 ))
+    :code "   printf(\"MOOSE\\n\");\n")
    )
   "Tags to be inserted into main.")
 
 
 (defun cit-srecode-fill-cpp (make-type)
-  "Fill up a base set of files with some base tags."
+  "Fill up a base set of files with some base tags.
+MAKE-TYPE is the type of make process to use."
 
   ;; 2 b) Test various templates.
 
@@ -136,8 +139,12 @@
     (ede-commit-project p)
     )
 
+  ;; 1 g) build the sources.
   (cit-compile-and-wait)
 
+  ;; 1 g.1) Run the compiled program.
+  (find-file (cit-file "src/main.cpp"))
+  (cit-run-target "./Prog")
   )
 
 (defun cit-remove-add-to-project-cpp (make-type)



reply via email to

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