#! /bin/bash
# hpc-testing
# Copyright (C) 2025 SUSE LLC
# 
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

test_libfabric()
{
    local host=$1
    local server_ip=$2
    local client_ip=$3
    local skipped_tests=""

    case $(get_suse_version $host) in
	15|15.1|15.2|15.3|15.4|15.5)
	    skipped_tests="-e fi_rma_bw,fi_rdm_cntr_pingpong"
	    ;;
	15.6)
	    skipped_tests=""
	    ;;
	15.7|16.0|2025*)
	    skipped_tests="-e fi_dgram_pingpong"
	    ;;
	*)
	    # N/A
	    true
	    ;;
    esac
    tp $host "/usr/bin/runfabtests.sh -v -t short ${skipped_tests} verbs $server_ip $client_ip"
}

