aboutsummaryrefslogtreecommitdiff
path: root/tests/xzgrep_expected_output
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2014-06-13 18:58:22 +0300
committerLasse Collin <lasse.collin@tukaani.org>2014-09-09 19:18:23 +0300
commitccc728d8290c0464c7af62790b1c5528eceaae35 (patch)
tree3b1534f13f57e21407beba0f0936b7733544ce48 /tests/xzgrep_expected_output
parentxzgrep: Add a test for the previous fix. (diff)
downloadxz-ccc728d8290c0464c7af62790b1c5528eceaae35.tar.xz
xzgrep: Improve the test script.
Now it should be close to the functionality of the original version by Pavel Raiskup.
Diffstat (limited to 'tests/xzgrep_expected_output')
-rw-r--r--tests/xzgrep_expected_output39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/xzgrep_expected_output b/tests/xzgrep_expected_output
new file mode 100644
index 00000000..e531d931
--- /dev/null
+++ b/tests/xzgrep_expected_output
@@ -0,0 +1,39 @@
+=> xzgrep el <=
+xzgrep_test_1.xz:elit, sed do eiusmod tempor incididunt ut
+xzgrep_test_1.xz:in voluptate velit esse cillum dolore eu
+xzgrep_test_2.xz:Hello
+retval 0
+=> xzgrep -l el <=
+xzgrep_test_1.xz
+xzgrep_test_2.xz
+retval 0
+=> xzgrep -h el <=
+elit, sed do eiusmod tempor incididunt ut
+in voluptate velit esse cillum dolore eu
+Hello
+retval 0
+=> xzgrep -H el <=
+xzgrep_test_1.xz:elit, sed do eiusmod tempor incididunt ut
+xzgrep_test_1.xz:in voluptate velit esse cillum dolore eu
+xzgrep_test_2.xz:Hello
+retval 0
+=> xzgrep Hello <=
+xzgrep_test_2.xz:Hello
+retval 0
+=> xzgrep -l Hello <=
+xzgrep_test_2.xz
+retval 0
+=> xzgrep -h Hello <=
+Hello
+retval 0
+=> xzgrep -H Hello <=
+xzgrep_test_2.xz:Hello
+retval 0
+=> xzgrep NOMATCH <=
+retval 1
+=> xzgrep -l NOMATCH <=
+retval 1
+=> xzgrep -h NOMATCH <=
+retval 1
+=> xzgrep -H NOMATCH <=
+retval 1