texinfo-commits
[Top][All Lists]
Advanced

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

[5493] two new tests


From: Gavin D. Smith
Subject: [5493] two new tests
Date: Sat, 26 Apr 2014 20:49:11 +0000

Revision: 5493
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5493
Author:   gavin
Date:     2014-04-26 20:49:10 +0000 (Sat, 26 Apr 2014)
Log Message:
-----------
two new tests

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/Makefile.am
    trunk/info/dir.c
    trunk/info/t/index-long-nodeline.sh
    trunk/info/t/index.sh
    trunk/info/t/split-index.sh

Added Paths:
-----------
    trunk/info/t/dir-file-node.sh
    trunk/info/t/file-nodes.sh

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-04-24 20:01:30 UTC (rev 5492)
+++ trunk/ChangeLog     2014-04-26 20:49:10 UTC (rev 5493)
@@ -1,3 +1,13 @@
+2014-04-26  Gavin Smith  <address@hidden>
+
+       * info/t/file-nodes.sh, info/t/dir-file-node.sh: New tests.
+       * info/Makefile.am: Add new tests.
+
+       * info/t/index-long-nodeline.sh, t/index.sh, t/split-index.sh:
+       Make "#!/bin/sh" first line.
+
+       * info/dir.c: Call dir node "Top".
+
 2014-04-24  Gavin Smith  <address@hidden>
 
        * info/dir.c (build_dir_node): Use header text from

Modified: trunk/info/Makefile.am
===================================================================
--- trunk/info/Makefile.am      2014-04-24 20:01:30 UTC (rev 5492)
+++ trunk/info/Makefile.am      2014-04-26 20:49:10 UTC (rev 5493)
@@ -91,11 +91,13 @@
 TESTS = \
        t/file.sh \
        t/file-node.sh \
+       t/file-nodes.sh \
        t/dir.sh \
        t/dir-to-file.sh \
        t/dir-to-no-file.sh \
        t/dir-file-menu.sh \
        t/dir-file-no-menu.sh \
+       t/dir-file-node.sh \
        t/dir-3-menus.sh \
        t/tab.sh \
        t/index.sh \
@@ -104,5 +106,6 @@
        t/help.sh
 
 XFAIL_TESTS = \
-      t/index-long-nodeline.sh
+      t/index-long-nodeline.sh \
+      t/dir-file-node.sh
 

Modified: trunk/info/dir.c
===================================================================
--- trunk/info/dir.c    2014-04-24 20:01:30 UTC (rev 5492)
+++ trunk/info/dir.c    2014-04-26 20:49:10 UTC (rev 5493)
@@ -124,7 +124,7 @@
   NODE *node;
 
   node = info_create_node ();
-  node->nodename = xstrdup ("dir");
+  node->nodename = xstrdup ("Top");
   node->filename = xstrdup ("dir");
   node->contents = xstrdup (
 

Added: trunk/info/t/dir-file-node.sh
===================================================================
--- trunk/info/t/dir-file-node.sh                               (rev 0)
+++ trunk/info/t/dir-file-node.sh       2014-04-26 20:49:10 UTC (rev 5493)
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Copyright (C) 2014 Free Software Foundation, 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 3, 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/>.
+
+. t/Init-test.inc
+
+# Load a node in loaded file using --node, without using --file to
+# specify the desired file.
+
+$GINFO --output - file-menu --node Unreachable \
+       | grep 'not linked to elsewhere'


Property changes on: trunk/info/t/dir-file-node.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/info/t/file-nodes.sh
===================================================================
--- trunk/info/t/file-nodes.sh                          (rev 0)
+++ trunk/info/t/file-nodes.sh  2014-04-26 20:49:10 UTC (rev 5493)
@@ -0,0 +1,27 @@
+#!/bin/sh
+# Copyright (C) 2014 Free Software Foundation, 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 3, 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/>.
+
+. t/Init-test.inc
+
+# Load more than one node in loaded file using --node.
+
+$GINFO --output $GINFO_OUTPUT --file file-menu --node 'Node 1' --node 'Node 2'
+
+RETVAL=0
+grep 'Arrived at Node 1' $GINFO_OUTPUT || RETVAL=1
+grep 'Arrived at Node 2' $GINFO_OUTPUT || RETVAL=1
+
+. t/Cleanup.inc


Property changes on: trunk/info/t/file-nodes.sh
___________________________________________________________________
Added: svn:executable
   + *

Modified: trunk/info/t/index-long-nodeline.sh
===================================================================
--- trunk/info/t/index-long-nodeline.sh 2014-04-24 20:01:30 UTC (rev 5492)
+++ trunk/info/t/index-long-nodeline.sh 2014-04-26 20:49:10 UTC (rev 5493)
@@ -1,3 +1,4 @@
+#!/bin/sh
 # Copyright (C) 2014 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -12,7 +13,6 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
-#!/bin/sh
 
 . t/Init-test.inc
 . t/Init-intera.inc 

Modified: trunk/info/t/index.sh
===================================================================
--- trunk/info/t/index.sh       2014-04-24 20:01:30 UTC (rev 5492)
+++ trunk/info/t/index.sh       2014-04-26 20:49:10 UTC (rev 5493)
@@ -1,3 +1,4 @@
+#!/bin/sh
 # Copyright (C) 2014 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -12,7 +13,6 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
-#!/bin/sh
 
 . t/Init-test.inc
 . t/Init-intera.inc 

Modified: trunk/info/t/split-index.sh
===================================================================
--- trunk/info/t/split-index.sh 2014-04-24 20:01:30 UTC (rev 5492)
+++ trunk/info/t/split-index.sh 2014-04-26 20:49:10 UTC (rev 5493)
@@ -1,3 +1,4 @@
+#!/bin/sh
 # Copyright (C) 2014 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -12,7 +13,6 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
-#!/bin/sh
 
 . t/Init-test.inc
 . t/Init-intera.inc 




reply via email to

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