texinfo-commits
[Top][All Lists]
Advanced

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

[5495] info tests


From: Gavin D. Smith
Subject: [5495] info tests
Date: Sun, 27 Apr 2014 22:56:58 +0000

Revision: 5495
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5495
Author:   gavin
Date:     2014-04-27 22:56:58 +0000 (Sun, 27 Apr 2014)
Log Message:
-----------
info tests

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/Makefile.am
    trunk/info/t/Init-test.inc
    trunk/info/t/infodir/dir

Added Paths:
-----------
    trunk/info/t/dir-file.sh
    trunk/info/t/dir-no-file.sh
    trunk/info/t/dir-nondir.sh
    trunk/info/t/no-file.sh
    trunk/info/t/where-dir-file.sh

Removed Paths:
-------------
    trunk/info/t/dir-to-file.sh
    trunk/info/t/dir-to-no-file.sh

Property Changed:
----------------
    trunk/info/t/

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-04-27 22:29:02 UTC (rev 5494)
+++ trunk/ChangeLog     2014-04-27 22:56:58 UTC (rev 5495)
@@ -1,3 +1,15 @@
+2014-04-27  Gavin Smith  <address@hidden>
+
+       * info/t/dir-to-file.sh, info/t/dir-file.sh: Renamed.
+       * info/t/dir-to-no-file.sh, info/t/dir-no-file.sh: Renamed.
+
+       * info/t/no-file.sh, info/t/dir-nondir.sh, info/t/where-dir-file.sh:
+       New tests.
+
+       * t/infodir/dir: file-menu file listed.
+
+       * info/t/Init-test.inc, info/t/dir-no-file.sh: Comments added.
+
 2014-04-27  Karl Berry  <address@hidden>
 
        * util/texi2dvi (max_iters): change from -1 to 7.  Infinite

Modified: trunk/info/Makefile.am
===================================================================
--- trunk/info/Makefile.am      2014-04-27 22:29:02 UTC (rev 5494)
+++ trunk/info/Makefile.am      2014-04-27 22:56:58 UTC (rev 5495)
@@ -92,13 +92,16 @@
        t/file.sh \
        t/file-node.sh \
        t/file-nodes.sh \
+       t/no-file.sh \
        t/dir.sh \
-       t/dir-to-file.sh \
-       t/dir-to-no-file.sh \
+       t/dir-file.sh \
+       t/dir-nondir.sh \
+       t/dir-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/where-dir-file.sh \
        t/tab.sh \
        t/index.sh \
        t/split-index.sh \


Property changes on: trunk/info/t
___________________________________________________________________
Added: svn:ignore
   + *.log
*.trs


Modified: trunk/info/t/Init-test.inc
===================================================================
--- trunk/info/t/Init-test.inc  2014-04-27 22:29:02 UTC (rev 5494)
+++ trunk/info/t/Init-test.inc  2014-04-27 22:56:58 UTC (rev 5495)
@@ -22,3 +22,6 @@
 
 # Get error messages in English
 LC_ALL=C; export LC_ALL
+
+# TODO: Exit test after so long, in case (for example) we get stuck in
+# interactive mode.

Copied: trunk/info/t/dir-file.sh (from rev 5492, trunk/info/t/dir-to-file.sh)
===================================================================
--- trunk/info/t/dir-file.sh                            (rev 0)
+++ trunk/info/t/dir-file.sh    2014-04-27 22:56:58 UTC (rev 5495)
@@ -0,0 +1,20 @@
+#!/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
+
+# Follow a reference to file1 in dir
+$GINFO --output - file1

Copied: trunk/info/t/dir-no-file.sh (from rev 5492, 
trunk/info/t/dir-to-no-file.sh)
===================================================================
--- trunk/info/t/dir-no-file.sh                         (rev 0)
+++ trunk/info/t/dir-no-file.sh 2014-04-27 22:56:58 UTC (rev 5495)
@@ -0,0 +1,26 @@
+#!/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
+
+# Look for a non-existent entry in dir
+
+# Note that the behaviour is different running non-interatively
+# (with --output) and interactively.  The latter loads and displays
+# the dir node, but the former does not output the dir node, just an
+# error message.
+
+$GINFO --output - not-a-file 2>&1 | grep 'No menu item'

Added: trunk/info/t/dir-nondir.sh
===================================================================
--- trunk/info/t/dir-nondir.sh                          (rev 0)
+++ trunk/info/t/dir-nondir.sh  2014-04-27 22:56:58 UTC (rev 5495)
@@ -0,0 +1,20 @@
+#!/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 file despite it not being listed in dir.
+$GINFO --output - sample | grep "This is a simple Info file."


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

Deleted: trunk/info/t/dir-to-file.sh
===================================================================
--- trunk/info/t/dir-to-file.sh 2014-04-27 22:29:02 UTC (rev 5494)
+++ trunk/info/t/dir-to-file.sh 2014-04-27 22:56:58 UTC (rev 5495)
@@ -1,20 +0,0 @@
-#!/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
-
-# Follow a reference to file1 in dir
-$GINFO --output - file1

Deleted: trunk/info/t/dir-to-no-file.sh
===================================================================
--- trunk/info/t/dir-to-no-file.sh      2014-04-27 22:29:02 UTC (rev 5494)
+++ trunk/info/t/dir-to-no-file.sh      2014-04-27 22:56:58 UTC (rev 5495)
@@ -1,21 +0,0 @@
-#!/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
-
-# Look for a non-existent entry in dir
-$GINFO --output - not-a-file 2>&1 | grep 'No menu item'
-

Modified: trunk/info/t/infodir/dir
===================================================================
(Binary files differ)

Added: trunk/info/t/no-file.sh
===================================================================
--- trunk/info/t/no-file.sh                             (rev 0)
+++ trunk/info/t/no-file.sh     2014-04-27 22:56:58 UTC (rev 5495)
@@ -0,0 +1,21 @@
+#!/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
+
+# Look for a non-existent entry in INFOPATH.
+
+$GINFO --output - --file not-a-file 2>&1 | grep 'No such file or directory'


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

Added: trunk/info/t/where-dir-file.sh
===================================================================
--- trunk/info/t/where-dir-file.sh                              (rev 0)
+++ trunk/info/t/where-dir-file.sh      2014-04-27 22:56:58 UTC (rev 5495)
@@ -0,0 +1,22 @@
+#!/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
+
+# Follow a reference to file1 in dir and print location
+$GINFO --where file1 \
+  | grep '^./t/infodir/file1.info$'
+


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




reply via email to

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