mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-23 19:18:58 +02:00
d1593b6681
Also updated the regression tests that explicitly provided an empty hierarchy.
38 lines
683 B
Bash
Executable File
38 lines
683 B
Bash
Executable File
#!/bin/bash
|
|
. ./Common
|
|
|
|
###############################################################################
|
|
|
|
tst "provider: one provider" <<EOF
|
|
!-p
|
|
FOO USD 0 0
|
|
EOF
|
|
|
|
expect <<EOF
|
|
EOF
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
tst "provider: two providers" <<EOF
|
|
!-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
|
|
!-p
|
|
FOO USD 0 0
|
|
FOO USD 0 0
|
|
EOF
|
|
|
|
expect <<EOF
|
|
p:3: provider FOO is already defined
|
|
EOF
|
|
|
|
###############################################################################
|