* update the runtime and deadline calcualtion * fix the isse with LIB_NAS_UE * add additional testcases and fix the issues with autotest git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7736 818b1a75-f10b-46b9-bf7c-635c3b92a50f
103 lines
2.5 KiB
Bash
Executable File
103 lines
2.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -s $OPENAIR_DIR/cmake_targets/tools/build_helper ] ; then
|
|
source $OPENAIR_DIR/cmake_targets/tools/build_helper
|
|
else
|
|
echo "Error: no file in the file tree: is OPENAIR_DIR variable set?"
|
|
exit 1
|
|
fi
|
|
|
|
# include the jUnit-like logging functions
|
|
source $OPENAIR_DIR/cmake_targets/tools/test_helper
|
|
|
|
test_compile() {
|
|
xUnit_start
|
|
mkdir -p $tdir/$1/build
|
|
cd $tdir/$1/build
|
|
{
|
|
cmake ..
|
|
rm -f $3
|
|
make -j4 $2
|
|
} > $tdir/log/$1.txt 2>&1
|
|
if [ -s $3 ] ; then
|
|
cp $3 $tdir/bin/`basename $3`.$5.$1
|
|
echo_success "$1 $3 $5 compiled"
|
|
xUnit_success "compilation" $1
|
|
else
|
|
echo_error "$1 $3 $5 compilation failed"
|
|
xUnit_fail "compilation" $1
|
|
fi
|
|
}
|
|
|
|
tdir=$OPENAIR_DIR/cmake_targets/autotests
|
|
mkdir -p $tdir/bin $tdir/log
|
|
|
|
updated=$(svn st -q $OPENAIR_DIR)
|
|
if [ "$updated" != "" ] ; then
|
|
echo_warning "some files are not in svn:\n $updated"
|
|
fi
|
|
|
|
cd $tdir
|
|
|
|
test_compile \
|
|
test.0101 oaisim_nos1 \
|
|
oaisim_nos1 $tdir/bin/oaisim.r8 rel8.nos1
|
|
|
|
test_compile \
|
|
test.0102 oaisim_nos1 \
|
|
oaisim_nos1 $tdir/bin/oaisim.r8.nas rel8.nos1.nas
|
|
|
|
cp $tdir/test.0103/CMakeLists.txt.Rel8 $tdir/test.0103/CMakeLists.txt
|
|
test_compile \
|
|
test.0103 lte-softmodem \
|
|
lte-softmodem $tdir/bin/lte-softmodem.r8.rf Rel8.EXMIMO
|
|
|
|
cp $tdir/test.0103/CMakeLists.txt.Rel10 $tdir/test.0103/CMakeLists.txt
|
|
test_compile \
|
|
test.0103 lte-softmodem \
|
|
lte-softmodem $tdir/bin/lte-softmodem.r10.rf Rel10.EXMIMO
|
|
|
|
cp $tdir/test.0103/CMakeLists.txt.USRP $tdir/test.0103/CMakeLists.txt
|
|
test_compile \
|
|
test.0103 lte-softmodem \
|
|
lte-softmodem $tdir/bin/lte-softmodem.r10.rf Rel10.USRP
|
|
|
|
test_compile \
|
|
test.0104 dlsim \
|
|
dlsim $tdir/bin/dlsim dlsim.Rel8
|
|
|
|
test_compile \
|
|
test.0104 ulsim \
|
|
ulsim $tdir/bin/ulsim ulsim.Rel8
|
|
|
|
test_compile \
|
|
test.0106 oaisim \
|
|
oaisim $tdir/bin/oaisim.r8.itti Rel8.itti
|
|
|
|
test_compile \
|
|
test.0107 oaisim_nos1 \
|
|
oaisim_nos1 $tdir/bin/oaisim.r10 Rel10.nos1
|
|
|
|
test_compile \
|
|
test.0108 oaisim \
|
|
oaisim $tdir/bin/oaisim.r10.itti rel10.itti
|
|
|
|
test_compile \
|
|
test.0114 oaisim \
|
|
oaisim $tdir/bin/oaisim.r8.itti.ral rel8.itti.ral
|
|
|
|
test_compile \
|
|
test.0115 oaisim \
|
|
oaisim $tdir/bin/oaisim.r10.itti.ral rel10.itti.ral
|
|
|
|
test_compile \
|
|
test.0120 nasmesh \
|
|
CMakeFiles/nasmesh/nasmesh.ko $tdir/bin/nasmesh.ko
|
|
|
|
test_compile \
|
|
test.0130 rrh_gw \
|
|
rrh_gw $tdir/bin/rrh_gw
|
|
|
|
# write the test results into a file
|
|
xUnit_write "$tdir/log/compilation_autotests.xml"
|