Commit cfb55cb5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add increment release test

parent 00a045b0
......@@ -51,12 +51,6 @@ check get_numrelease 3.1 `get_numrelease`
TESTREL=alt4.2
check get_txtrelease alt `get_txtrelease`
TESTREL=alt5
check inc_subrelease "alt5.1" `inc_subrelease ""`
TESTREL=alt6.2
check inc_subrelease "alt6.3" `inc_subrelease ""`
BASERELEASE=27.5
MAJOR=`echo "$BASERELEASE" | sed -e "s|\..*||"`
MINOR=`echo "$BASERELEASE" | sed -e "s|.*\.||"`
......
#!/bin/sh
. `dirname $0`/../share/eterbuild/functions/common
load_mod spec
check()
{
[ "$2" != "$3" ] && echo "FATAL with '$1': result '$2' do not match with '$3'" || echo "OK for '$1' with '$2'"
}
get_release()
{
#echo "Warning: Error test %test" >&2
echo $TESTREL
}
set_release()
{
echo "$2"
}
TESTREL=alt5
check inc_subrelease "alt5.1" `inc_subrelease ""`
TESTREL=alt6.2
check inc_subrelease "alt6.3" `inc_subrelease ""`
TESTREL=alt5
check inc_release "alt6" `inc_release ""`
TESTREL=alt6.2
check inc_release "alt7" `inc_release ""`
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