mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-22 16:18:25 +02:00
b2/: insert a virtual empty hierarchy if test input starts with other file
Also updated the regression tests that explicitly provided an empty hierarchy.
This commit is contained in:
parent
3027daca18
commit
d1593b6681
@ -13,13 +13,17 @@
|
||||
|
||||
run_boom()
|
||||
{
|
||||
args="-N h <(sed -n '/^!-/q;p' _in)"
|
||||
if [ "`sed -n '/^!-/p;q' _in`" ]; then
|
||||
args="<(echo ';')"
|
||||
else
|
||||
args="-N h <(sed -n '/^!-/q;p' _in)"
|
||||
fi
|
||||
for n in c x p i s b X; do
|
||||
for m in "" 1 2 3; do
|
||||
if grep ^!-$n$m\$ _in >/dev/null; then
|
||||
args="$args -N $n$m"
|
||||
args="$args -$n \
|
||||
<(sed -n '1,/^!-$n$m/d;/^!-/q;p' _in)"
|
||||
<(sed -n '0,/^!-$n$m/d;/^!-/q;p' _in)"
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
@ -4,7 +4,6 @@
|
||||
###############################################################################
|
||||
|
||||
tst "currency: one currency" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-x
|
||||
GBP USD 0.615219
|
||||
EOF
|
||||
@ -15,7 +14,6 @@ EOF
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
tst "currency: two currencies" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-x
|
||||
EUR USD 1.3214 GBP 1.62542
|
||||
GBP USD 0.615219
|
||||
@ -27,7 +25,6 @@ EOF
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
tst_fail "currency: duplicate currency" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-x
|
||||
GBP USD 0.615219
|
||||
GBP USD 0.615219
|
||||
@ -40,7 +37,6 @@ EOF
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
tst_fail "currency: duplicate exchange rate" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-x
|
||||
EUR USD 1.3214 USD 1.3214
|
||||
EOF
|
||||
|
@ -4,7 +4,6 @@
|
||||
###############################################################################
|
||||
|
||||
tst "inventory: one item" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-x
|
||||
USD
|
||||
!-i
|
||||
@ -20,7 +19,6 @@ EOF
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
tst "inventory: two items" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-x
|
||||
USD
|
||||
!-i
|
||||
@ -38,7 +36,6 @@ EOF
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
tst "inventory: two files" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-x
|
||||
USD
|
||||
!-i1
|
||||
@ -57,7 +54,6 @@ EOF
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
tst_fail "inventory: duplicate item" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-x
|
||||
USD
|
||||
!-i
|
||||
@ -72,7 +68,6 @@ EOF
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
tst_fail "inventory: unknown currency" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-i
|
||||
FOO R101X-T TR 1234 3000 EUR 0 3000 10.4
|
||||
EOF
|
||||
|
@ -4,7 +4,6 @@
|
||||
###############################################################################
|
||||
|
||||
tst "provider: one provider" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-p
|
||||
FOO USD 0 0
|
||||
EOF
|
||||
@ -15,7 +14,6 @@ EOF
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
tst "provider: two providers" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-p
|
||||
FOO USD 0 0
|
||||
BAR EUR 5 100 /* EUR 5 S&H, EUR 100 minimum order */
|
||||
@ -27,7 +25,6 @@ EOF
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
tst_fail "provider: duplicate provider" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-p
|
||||
FOO USD 0 0
|
||||
FOO USD 0 0
|
||||
|
Loading…
Reference in New Issue
Block a user