]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: look: add words file
authorSami Kerola <kerolasa@iki.fi>
Wed, 25 Jul 2012 19:15:20 +0000 (21:15 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Jul 2012 09:08:33 +0000 (11:08 +0200)
Archlinux words 2.0-4 package does not have 'apple-pie' in words file.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
tests/ts/look/separator
tests/ts/look/words [new file with mode: 0644]

index 17d68db64ea29db8e64ca0308a3c9cd3ac42fb58..51e96c9e7ecef425b081d1392b9908c2e1cb0543 100755 (executable)
@@ -34,8 +34,6 @@ TS_DESC="separator"
 . $TS_TOPDIR/functions.sh
 ts_init "$*"
 
-[ -f "/usr/share/dict/words" ] || ts_skip "/usr/share/dict/words not such file"
-
-$TS_CMD_LOOK apple-pie >> $TS_OUTPUT
+$TS_CMD_LOOK apple-pie $TS_TOPDIR/ts/look/words >> $TS_OUTPUT
 ts_finalize
 
diff --git a/tests/ts/look/words b/tests/ts/look/words
new file mode 100644 (file)
index 0000000..b67ba9a
--- /dev/null
@@ -0,0 +1,3 @@
+apple
+apple-pie
+oranges