#!/bin/sh

. ${0%/*}/test_helper.sh

tuxbuild_build="tuxbuild build --git-repo https://github.com/torvalds/linux.git --git-ref master --target-arch arm64 --kconfig defconfig --toolchain gcc-9"

test_same_results_for_the_same_input() {
    api_v1
    run $tuxbuild_build
    output1="$(echo "$output" | sed -s 's#http://localhost:5001/.*#http://localhost:5001/xxxxxxxxxx#')"
    run $tuxbuild_build
    output2="$(echo "$output" | sed -s 's#http://localhost:5001/.*#http://localhost:5001/xxxxxxxxxx#')"
    assertEquals  "$output1" "$output2"
}

. shunit2
