mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-23 05:15:09 +02:00
b2/test/prov: provider database test
This commit is contained in:
parent
994ed00a51
commit
4184c01ee2
40
b2/test/prov
Executable file
40
b2/test/prov
Executable file
@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
. ./Common
|
||||
|
||||
###############################################################################
|
||||
|
||||
tst "provider: one provider" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-p
|
||||
FOO USD 0 0
|
||||
EOF
|
||||
|
||||
expect <<EOF
|
||||
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 */
|
||||
EOF
|
||||
|
||||
expect <<EOF
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
tst_fail "provider: duplicate provider" <<EOF
|
||||
; /* no hierarchy */
|
||||
!-p
|
||||
FOO USD 0 0
|
||||
FOO USD 0 0
|
||||
EOF
|
||||
|
||||
expect <<EOF
|
||||
p:3: provider FOO is already defined
|
||||
EOF
|
||||
|
||||
###############################################################################
|
Loading…
Reference in New Issue
Block a user