#!/usr/bin/env -S bats --report-formatter junit --formatter tap
# -*-sh-*-

source ./common/test_helper_functions.bash || exit 1
source ./common/functions || exit 1

if [ -s ./common/TEST_ENV ];then
    source ./common/TEST_ENV
fi

check_rms
rm=$RESOURCE_MANAGER

PKG="Boost"

@test "[$PKG] bad_expression_test under resource manager ($rm/$LMOD_FAMILY_COMPILER)" {
    test=bad_expression_test
    if [ ! -x $test ];then
        flunk "$test does not exist"
    fi
    run_serial_binary ./$test
    assert_success
}

@test "[$PKG] named_subexpressions_test under resource manager ($rm/$LMOD_FAMILY_COMPILER)" {
    test=named_subexpressions_test
    if [ ! -x $test ];then
        flunk "$test does not exist"
    fi
    run_serial_binary ./$test
    assert_success
}

@test "[$PKG] recursion_test under resource manager ($rm/$LMOD_FAMILY_COMPILER)" {
    test=recursion_test
    if [ ! -x $test ];then
        flunk "$test does not exist"
    fi
    run_serial_binary ./$test config_test.cfg 
    assert_success
}

