#!../../common/bats/bin/bats
# -*-sh-*-

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

check_compiler_family CC CXX FC

if [ "$LMOD_FAMILY_COMPILER" = "gnu" ];then
    family=gnu
elif [ "$LMOD_FAMILY_COMPILER" = "intel" ];then
    family=intel
else
    ERROR "Unsupported or unknown compiler family"
fi

@test "[Compilers] C compiler man page ($family)" {
    run man -w $CC
    assert_success
}

@test "[Compilers] C++ compiler man page ($family)" {
    run man -w $CXX
    assert_success
}

@test "[Compilers] Fortran compiler man page ($family)" {
    run man -w $FC
    assert_success
}




