From 7122c9ab9f37558baf1949dc953e3455e68dba9f Mon Sep 17 00:00:00 2001 From: guptar <guptar@mycompany.com> Date: Wed, 30 Sep 2015 15:56:23 +0000 Subject: [PATCH] added compilation tests for unitary tests simulators git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7863 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- .../autotests/run_compilation_autotests.bash | 40 ++++++++++++++++++- cmake_targets/build_oai | 2 + 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/cmake_targets/autotests/run_compilation_autotests.bash b/cmake_targets/autotests/run_compilation_autotests.bash index f2f30e67d..f7df4e280 100755 --- a/cmake_targets/autotests/run_compilation_autotests.bash +++ b/cmake_targets/autotests/run_compilation_autotests.bash @@ -30,7 +30,7 @@ test_compile() { cmake .. rm -f $exec_prog make -j`nproc` $compile_prog - } > $log_file 2>&1 + } >> $log_file 2>&1 if [ -s $exec_prog ] ; then cp $exec_prog $tdir/bin/`basename $exec_prog`.$target.$test_name echo_success "$test_name $exec_prog $target compiled" @@ -101,6 +101,44 @@ test_compile \ test.0104 mbmssim \ mbmssim $tdir/bin/mbmssim mbmssim.Rel8 +simlist=" secu_knas_encrypt_eea2 secu_knas kdf aes128_cmac_encrypt secu_knas_encrypt_eia2" + +test_compile \ + test.0104 test_secu_knas_encrypt_eia1 \ + test_secu_knas_encrypt_eia1 $tdir/bin/test_secu_knas_encrypt_eia1 test_secu_knas_encrypt_eia1.Rel10 + +test_compile \ + test.0104 test_secu_kenb \ + test_secu_kenb $tdir/bin/test_secu_kenb test_secu_kenb.Rel10 + +test_compile \ + test.0104 test_aes128_ctr_encrypt \ + test_aes128_ctr_encrypt $tdir/bin/test_aes128_ctr_encrypt test_aes128_ctr_encrypt.Rel10 + +test_compile \ + test.0104 test_aes128_ctr_decrypt \ + test_aes128_ctr_decrypt $tdir/bin/test_aes128_ctr_decrypt test_aes128_ctr_decrypt.Rel10 + +test_compile \ + test.0104 test_secu_knas_encrypt_eea2 \ + test_secu_knas_encrypt_eea2 $tdir/bin/test_secu_knas_encrypt_eea2 test_secu_knas_encrypt_eea2.Rel10 + +test_compile \ + test.0104 test_secu_knas \ + test_secu_knas $tdir/bin/test_secu_knas test_secu_knas.Rel10 + +test_compile \ + test.0104 test_kdf \ + test_kdf $tdir/bin/test_kdf test_kdf.Rel10 + +test_compile \ + test.0104 test_aes128_cmac_encrypt \ + test_aes128_cmac_encrypt $tdir/bin/test_aes128_cmac_encrypt test_aes128_cmac_encrypt.Rel10 + +test_compile \ + test.0104 test_secu_knas_encrypt_eia2 \ + test_secu_knas_encrypt_eia2 $tdir/bin/test_secu_knas_encrypt_eia2 test_secu_knas_encrypt_eia2.Rel10 + test_compile \ test.0106 oaisim \ oaisim $tdir/bin/oaisim.r8.itti Rel8.itti diff --git a/cmake_targets/build_oai b/cmake_targets/build_oai index c1974f90e..24fc3c521 100755 --- a/cmake_targets/build_oai +++ b/cmake_targets/build_oai @@ -564,6 +564,8 @@ function main() { ##################### if [ "$OAI_TEST" = "1" ]; then echo_info "10. Running OAI pre commit tests (pre-ci) ..." + rm -fr $OPENAIR_DIR/cmake_targets/autotests/log + mkdir -p $OPENAIR_DIR/cmake_targets/autotests/log $OPENAIR_DIR/cmake_targets/autotests/run_compilation_autotests.bash $OPENAIR_DIR/cmake_targets/autotests/run_exec_autotests.bash else -- GitLab