#!/bin/sh # Copyright 2008 by Denys Vlasenko # Licensed under GPL v2, see file LICENSE for details. . testing.sh NO_REDUCE=65536 NO_TRIM=131072 GREEDY=262144 # testing "description" "command" "result" "infile" "stdin" testing "mdev.conf" \ "parse -n 4 -m 3 -f $GREEDY -" \ "[sda][0:0][644][@echo @echo TEST]\n" \ "-" \ " sda 0:0 644 @echo @echo TEST # echo trap\n" testing "notrim" \ "parse -n 4 -m 3 -f $(($GREEDY+$NO_TRIM)) -" \ "[][sda][0:0][644 @echo @echo TEST ]\n" \ "-" \ " sda 0:0 644 @echo @echo TEST \n" FILE=__parse.fstab cat >$FILE <$FILE.res <