summaryrefslogtreecommitdiff
path: root/tests/t0400-grep.sh
blob: 0c55cf8260b583f091f56b41c6c18010d0e3b35d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

test_description='Grep check'
. ./setup.sh

test_expect_success 'Make sure grep prints normal lines' '
	pass init $KEY1 &&
	pass insert -e blah1 <<<"hello" &&
	pass insert -e blah2 <<<"my name is" &&
	pass insert -e folder/blah3 <<<"I hate computers" &&
	pass insert -e blah4 <<<"me too!" &&
	pass insert -e folder/where/blah5 <<<"They are hell" &&
	results="$(pass grep hell)" &&
	[[ $(wc -l <<<"$results") -eq 4 ]] &&
	grep -q blah5 <<<"$results" &&
	grep -q blah1 <<<"$results" &&
	grep -q "They are" <<<"$results"
'

test_done
'>+412 2009-07-05TypoRené 'Necoro' Neumann1-1/+1 2009-07-05Allow ':' in expression names. Thus removing the colon as an assignment operatorRené 'Necoro' Neumann2-6/+2 2009-07-05DocRené 'Necoro' Neumann1-1/+14 2009-07-05Install package_details.pyRené 'Necoro' Neumann1-1/+1 2009-07-05Sort plugins in the windowRené 'Necoro' Neumann2-13/+12 2009-07-05Port DependencyDetailRené 'Necoro' Neumann4-129/+118 2009-07-05Also port FilesDetailRené 'Necoro' Neumann3-43/+24 2009-07-05Also ported EbuildDetailRené 'Necoro' Neumann3-27/+14