Advertisement
Gistrec

Start each unit in domain

Aug 23rd, 2019
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.64 KB | None | 0 0
  1. # Удаляем либу
  2. rm -rf ipl_adlib-agile/src_c/_*
  3. rm -rf ipl_adlib-agile/src_cpp/_*
  4.  
  5. # Устанавливаем переменные окружения
  6. source ipl_adlib-agile/tools_env/linux/gnu710.sh
  7.  
  8.  
  9. for unit in `dir ipl_adlib-agile/qa/adl_ts/configs/cpp_interface/common/`
  10. do
  11.     # Если не задан последний юнит - задаем
  12.     if [ -z "$LAST_UNIT" ]; then
  13.          LAST_UNIT="$unit"
  14.     else
  15.         # Если этот юнит уже обрабатывался
  16.         if [ "$unit" != "$LAST_UNIT" ]; then
  17.             continue;
  18.         fi
  19.     fi
  20.  
  21.     echo "Запускаем юнит $unit"
  22.     read -n 1 ans
  23.  
  24.     # Удаляем тесты
  25.     rm -rf ipl_adlib-agile/qa/adl_ts/_*
  26.  
  27.     if [ $? -ne 0 ]; then echo "Error: Return code was not zero but $?"; exit 1; fi
  28.  
  29.     # Собираем либу
  30.     cd ipl_adlib-agile/src_cpp
  31.     ./build_lib.sh -o linux -c gnu710
  32.  
  33.     if [ $? -ne 0 ]; then echo "Error: Return code was not zero but $?"; exit 1; fi
  34.  
  35.     cd ../qa/adl_ts
  36.     source ../../src_cpp/_build/_build_linux_intel64_gnu710_release/adlibcpp_linux_intel64_gnu710_release/adlibcpp_linux_intel64_gnu710_release/bin/adl_cpp_vars.sh
  37.  
  38.     if [ $? -ne 0 ]; then echo "Error: Return code was not zero but $?"; exit 1; fi
  39.  
  40.     # Собираем тесты
  41.     ./build_tests.sh -o linux -c gnu710 --interface cpp --domain common --unit "$unit"
  42.  
  43.     if [ $? -ne 0 ]; then echo "Error: Return code was not zero but $?"; exit 1; fi
  44.  
  45.     # Выполняем тесты
  46.     ./run_custom_tests.sh -c gnu710 --interface cpp --domain common --unit "$unit"
  47.  
  48.     cd /numerics/adl/akovalkx
  49. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement