Skip to content

Commit

Permalink
m_vcf test added for searching nick names
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandRosenfeld committed Jul 26, 2024
1 parent aeb9337 commit 1dd8c43
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/data/example.vcf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
BEGIN:VCARD
VERSION:3.0
FN:Max Mustermann
NICKNAME:MaxiNick
ORG:Beispiel GmbH
TEL;TYPE=WORK,VOICE:+49 123 456789
ADR;TYPE=WORK:;;Musterstraße 1;Köln;Nordrhein-Westfalen;50667;Deutschland
Expand Down
2 changes: 2 additions & 0 deletions tests/data/m_vcf.expected.nickname
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lbdbq: 1 matches
[email protected] Max Mustermann (VCF)
8 changes: 7 additions & 1 deletion tests/m_vcf.at
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ dnl Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
AT_BANNER([Test m_vcf])

AT_SETUP(m_vcf)

AT_CHECK([cat $abs_srcdir/data/m_vcf.expected > expout])
AT_CHECK([cat $abs_srcdir/data/example.vcf > example.vcf])
AT_CHECK([env LBDB_OVERRIDE_METHODS=m_vcf \
OVERRIDE_VCF_FILES=example.vcf \
lbdbq muster], [], [expout])
AT_CLEANUP

AT_SETUP(m_vcf nickname)
AT_CHECK([cat $abs_srcdir/data/m_vcf.expected.nickname > expout])
AT_CHECK([cat $abs_srcdir/data/example.vcf > example.vcf])
AT_CHECK([env LBDB_OVERRIDE_METHODS=m_vcf \
OVERRIDE_VCF_FILES=example.vcf \
lbdbq maxinick], [], [expout])
AT_CLEANUP

0 comments on commit 1dd8c43

Please sign in to comment.