summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-05-09 21:22:21 +0200
committerJim Meyering <meyering@redhat.com>2010-05-09 21:22:21 +0200
commit722173444afbd8b26d17fcb424d94082425f21dc (patch)
tree193b5e3137b466f1e5b7c8dddcc3f0281148e7ba /tests/misc
parent74f07c98d4aa5a9dc4e98f4accb6e4af68d70cc6 (diff)
downloadcoreutils-722173444afbd8b26d17fcb424d94082425f21dc.tar.xz
tests: update help-version
* tests/misc/help-version: Use init.sh, rather than test-lib.sh. Add idutils' setup.
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/help-version14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/misc/help-version b/tests/misc/help-version
index ea16516c9..10f93ad30 100755
--- a/tests/misc/help-version
+++ b/tests/misc/help-version
@@ -17,15 +17,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-test "$VERBOSE" = yes && set -x
-
# Ensure that $SHELL is set to *some* value and exported.
# This is required for dircolors, which would fail e.g., when
# invoked via debuild (which removes SHELL from the environment).
test "x$SHELL" = x && SHELL=/bin/sh
export SHELL
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
expected_failure_status_chroot=125
expected_failure_status_env=125
@@ -185,6 +183,16 @@ shred_setup () { args=$tmp_in; }
touch_setup () { args=$tmp_in2; }
truncate_setup () { args="--reference=$tmp_in $tmp_in2"; }
+mkid_setup () { printf 'f(){}\ntypedef int t;\n' > f.c; args=. ; }
+lid_setup () { args=; }
+fid_setup () { args=f.c; }
+fnid_setup () { args=; }
+xtokid_setup () { args=; }
+aid_setup () { args=f; }
+eid_setup () { args=--version; }
+gid_setup () { args=f; }
+defid_setup () { args=t; }
+
basename_setup () { args=$tmp_in; }
dirname_setup () { args=$tmp_in; }
expr_setup () { args=foo; }