#!/usr/bin/env bash
set -e

USAGE="Usage: ./cas_static_config.sh <default|kitt|vh6>"

if [ "$#" -ne 1 ]; then
    echo "${USAGE}"
    exit 1
fi

case "$1" in
"default")
    bazel run //firmware/emu/trajectory_manager/config:cas_static_config_default_proto_test
    bazel run //firmware/emu/trajectory_manager/config:cas_static_config_default_proto_test_validator_test
    ;;

"kitt")
    bazel run //firmware/emu/trajectory_manager/config:cas_static_config_kitt_proto_test
    bazel run //firmware/emu/trajectory_manager/config:cas_static_config_kitt_proto_test_validator_test
    ;;

"vh6")
    bazel run //firmware/emu/trajectory_manager/config:cas_static_config_vh6_proto_test
    bazel run //firmware/emu/trajectory_manager/config:cas_static_config_vh6_proto_test_validator_test
    ;;

*)
    echo "${USAGE}"
    exit 1
    ;;
esac
