From: zappo Date: Sun, 18 Oct 2009 16:16:30 +0000 (+0000) Subject: Run the code for the compiled binary X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9e6abad9692f587a6eb3f97f2680bf0ad85fef33;p=emacs.git 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. --- diff --git a/test/manual/cedet/cit-cpp.el b/test/manual/cedet/cit-cpp.el index e162eaf6d25..1ab5bffd29f 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 -;; 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)