From dd727b1a8cc3b2b15f303444576744b5f4d81d0b Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sat, 2 Jun 2012 05:55:28 -0300 Subject: [PATCH] b2/test/char: part characteristics database test --- b2/test/char | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100755 b2/test/char diff --git a/b2/test/char b/b2/test/char new file mode 100755 index 0000000..2c88211 --- /dev/null +++ b/b2/test/char @@ -0,0 +1,108 @@ +#!/bin/bash +. ./Common + +############################################################################### + +tst "characteristics: one file" -dc < = R; + = 0402<0603<0805; +{ FP= } +T= { + R: { R=#R TOL=%R }; +}; +!-c +FOO BAR1 T=R FP=0603 R=100R TOL=5% +FOO BAR2 T=R FP=0603 R=1k TOL=1% +EOF + +expect < = R; + = 0402<0603<0805; +{ FP= } +T= { + R: { R=#R TOL=%R }; +}; +!-c1 +FOO BAR1 T=R FP=0603 R=100R TOL=5% +FOO BAR2 T=R FP=0603 R=1k TOL=1% +!-c2 +FOO BAR3 T=R FP=0402 R=100R TOL=2% +EOF + +expect < = R; + = 0402<0603<0805; +{ FP= } +T= { + R: { R=#R TOL=%R }; +}; +!-c +FOO BAR1 T=R FP=0603 R=100R TOL=5% +FOO BAR1 T=R FP=0603 R=1k TOL=1% +EOF + +expect < = R; + = 0402<0603<0805; +{ FP= } +T= { + R: { R=#R TOL=%R }; +}; +!-c +FOO BAR1 T=R FP=0603 R=100R TOL=5% +FOO BAR2 T=R FP=0603 R=1uF +EOF + +expect < = R; + = 0402<0603<0805; +{ FP= } +T= { + R: { R=#R TOL=%R }; +}; +!-c +FOO BAR1 T=R FP=0603 R=100R TOL=5% +FOO BAR2 T=R FP=0603 R=1k TOL=1% BLAH=3 +EOF + +expect <