Gistrec icon

Start each unit in domain

Gistrec | PRO | 08/23/19 09:01:25 AM UTC | 0 ⭐ | 802 👁️ | Never ⏰ | []
Bash |

1.64 KB

|

None

|

0 👍

/

0 👎

# Удаляем либу
rm -rf ipl_adlib-agile/src_c/_*
rm -rf ipl_adlib-agile/src_cpp/_*
 
# Устанавливаем переменные окружения
source ipl_adlib-agile/tools_env/linux/gnu710.sh
 
 
for unit in `dir ipl_adlib-agile/qa/adl_ts/configs/cpp_interface/common/`
do
    # Если не задан последний юнит - задаем
    if [ -z "$LAST_UNIT" ]; then
         LAST_UNIT="$unit"
    else
        # Если этот юнит уже обрабатывался
        if [ "$unit" != "$LAST_UNIT" ]; then
            continue;
        fi
    fi
 
    echo "Запускаем юнит $unit"
    read -n 1 ans
 
    # Удаляем тесты
    rm -rf ipl_adlib-agile/qa/adl_ts/_*
 
    if [ $? -ne 0 ]; then echo "Error: Return code was not zero but $?"; exit 1; fi
 
    # Собираем либу
    cd ipl_adlib-agile/src_cpp
    ./build_lib.sh -o linux -c gnu710
 
    if [ $? -ne 0 ]; then echo "Error: Return code was not zero but $?"; exit 1; fi
 
    cd ../qa/adl_ts
    source ../../src_cpp/_build/_build_linux_intel64_gnu710_release/adlibcpp_linux_intel64_gnu710_release/adlibcpp_linux_intel64_gnu710_release/bin/adl_cpp_vars.sh
 
    if [ $? -ne 0 ]; then echo "Error: Return code was not zero but $?"; exit 1; fi
 
    # Собираем тесты
    ./build_tests.sh -o linux -c gnu710 --interface cpp --domain common --unit "$unit"
 
    if [ $? -ne 0 ]; then echo "Error: Return code was not zero but $?"; exit 1; fi
 
    # Выполняем тесты
    ./run_custom_tests.sh -c gnu710 --interface cpp --domain common --unit "$unit"
 
    cd /numerics/adl/akovalkx
done

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎