diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-07-29 12:26:26 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-07-29 12:26:26 +0200 |
commit | 685625bd308f62a382aaf61f1621a18b9441edfd (patch) | |
tree | 4274b352fec73b2dee8aaa1671594b35aa35f512 /test/integration/framework | |
parent | 966640d8fd2feac29909a22415955b3ce5779dcd (diff) |
configure also the replacement before remove by adding Immediate flag
Diffstat (limited to 'test/integration/framework')
-rw-r--r-- | test/integration/framework | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/framework b/test/integration/framework index 7e0d4b902..7b323fdb5 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -149,6 +149,22 @@ testequal() { $* 2>&1 | diff $COMPAREFILE - && msgpass || msgfail } +testequalor2() { + local COMPAREFILE1=$(mktemp) + local COMPAREFILE2=$(mktemp) + local COMPAREAGAINST=$(mktemp) + echo "$1" > $COMPAREFILE1 + echo "$2" > $COMPAREFILE2 + shift 2 + msgtest "Test for equality OR of" "$*" + $* 2>&1 1> $COMPAREAGAINST + (diff $COMPAREFILE1 $COMPAREAGAINST 1> /dev/null || + diff $COMPAREFILE2 $COMPAREAGAINST 1> /dev/null) && msgpass || + ( echo "\n${CINFO}Diff against OR 1${CNORMAL}" "$(diff $COMPAREFILE1 $COMPAREAGAINST)" \ + "\n${CINFO}Diff against OR 2${CNORMAL}" "$(diff $COMPAREFILE2 $COMPAREAGAINST)" && + msgfail ) +} + testshowvirtual() { local VIRTUAL="E: Can't select versions from package '$1' as it purely virtual" local PACKAGE="$1" |