#!/bin/bash
set -e

architecture=$1
openmp=$2


testMagickNET() {
    local config=Test$1
    if [ "$openmp" == "OpenMP" ]; then
        config=$config-OpenMP
    fi

    ./tests/Magick.NET.Core.Tests/bin/$config/$architecture/net8.0/Magick.NET.Core.Tests
    ./tests/Magick.NET.Tests/bin/$config/$architecture/net8.0/Magick.NET.Tests
}

export FONTCONFIG_PATH=/etc/fonts
export FONTCONFIG_FILE=/etc/fonts/fonts.conf

testMagickNET "Q8"
testMagickNET "Q16"
testMagickNET "Q16-HDRI"
