Commit 7052bb03 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add test for pkgrepl

parent 96f71623
#!/bin/sh
. `dirname $0`/../share/eterbuild/functions/common
load_mod repl
# : - .*
#
check()
{
[ "$2" != "$3" ] && echo "FATAL with '$1': result '$2' do not match with '$3'" || echo "OK for '$1' with '$2'"
}
get_pkglist()
{
VENDOR=Fedora
TARGET=rpm
DISTRVERSION=10
for i in `print_pkgrepl_list` ; do
echo $(basename $i)
done
}
get_grplist()
{
VENDOR=Fedora
TARGET=rpm
DISTRVERSION=10
for i in `print_grprepl_list` ; do
echo $(basename $i)
done
}
echo "PkgRepl:"
get_pkglist
echo
check pkgrepl "fedora" `get_pkglist`
echo "GrpRepl:"
get_grplist
echo
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment