#! /bin/bash

#export LIBS=@@LIBS@@
#export LOG=@@LOG@@
#export HOME=@@HOME@@
#export RESULTS=@@RESULTS@@
#export ROOTDIR=@@ROOT@@

module avail
ret=$?
[ $ret -ne 0 ] && exit $ret
echo "Test for bsc#1048964 succeeded"

rpm -ql lua-lmod | grep -q /man1/lmod.1
ret=$?
[ $ret -ne 0 ] && exit $ret

rpm -q lua-lmod-doc
ret=$?
[ $ret -ne 0 ] && exit $ret
echo "Test for bsc#1032970 succeeded"

rpm -q lua-lmod | grep -qE ".*(x86_64|i586|aarch64)$"
ret=$?
[ $ret -ne 0 ] && exit $ret ]
rpm -q lua-lmod-doc | grep -qE ".*noarch$"
ret=$?
[ $ret -ne 0 ] && exit $ret ]
echo "Test for bsc#1061205 succeeded"

exit 0
