#!/bin/bash

############################################################################
# Copyright (c) 2015 Saint Petersburg State University
# Copyright (c) 2011-2014 Saint Petersburg Academic University
# All Rights Reserved
# See file LICENSE for details.
############################################################################

if [ $# = 0 ]
then
    echo "Empty param list"
    exit 1
else 
    if [ $# = 2 ]
    then
        change_config $2
    fi

    case $1 in

    'ddt' ) ./build/debug/bin/debruijn_test --log_level=test_suite ;;
    'rdt' ) ./build/release/bin/debruijn_test --log_level=test_suite ;;
    'rit' ) ./build/release/bin/include_test ;;
    'dit' ) ./build/debug/bin/include_test ;;
    'dt' ) ./build/debug/bin/debruijn_test && ./build/debug/bin/include_test ;;
    'rv' ) exec build/release/bin/online_vis configs/debruijn/config.info ;;
    'rct' ) ./build/release/bin/cap_test --log_level=test_suite ;;
    'dct' ) ./build/debug/bin/cap_test --log_level=test_suite ;;

    * ) 
        echo "Unknown flag"
        exit 1
    esac
fi
