Test results for Win32 Console

test_001070_option_fieldseparator

Test description

Test for user specified field separator creating level 2 elements from the
input stream. 

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -F :

Input data

root:x:0:0:Super-User:/:/sbin/sh
bin:x:2:2::/usr/bin:
guest:x:501:513:Guest user:/home/guest:/bin/rsh
ag:x:600:602:Arthur Gouros:/home/ag:/bin/bash
webdav:*LK*:701:703:Web Dav user:/etc/webdav:/bin/false

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xmlfy SYSTEM "xmlfy.dtd">
<xmlfy>
  <line>
    <field>root</field>
    <field>x</field>
    <field>0</field>
    <field>0</field>
    <field>Super-User</field>
    <field>/</field>
    <field>/sbin/sh</field>
  </line>
  <line>
    <field>bin</field>
    <field>x</field>
    <field>2</field>
    <field>2</field>
    <field></field>
    <field>/usr/bin</field>
    <field></field>
  </line>
  <line>
    <field>guest</field>
    <field>x</field>
    <field>501</field>
    <field>513</field>
    <field>Guest user</field>
    <field>/home/guest</field>
    <field>/bin/rsh</field>
  </line>
  <line>
    <field>ag</field>
    <field>x</field>
    <field>600</field>
    <field>602</field>
    <field>Arthur Gouros</field>
    <field>/home/ag</field>
    <field>/bin/bash</field>
  </line>
  <line>
    <field>webdav</field>
    <field>*LK*</field>
    <field>701</field>
    <field>703</field>
    <field>Web Dav user</field>
    <field>/etc/webdav</field>
    <field>/bin/false</field>
  </line>
</xmlfy>

Goto:   Top of page.   Section "Environment".   Section "Summary".   Section "Test cases".