#!/bin/bash


function show_usage(){
    printf "WRONG INPUT\n"
    
return 0
}

function get_depends(){
    sudo apt install python3-pip && sudo pip3 install html-testRunner

return 0

}
function run_all(){

    CURRDIR= "${PWD}"
    cd /usr/local/bin/clsalltests/
    python3 -m unittest discover
    
}


if [[ "$1" == "" ]]; then
    show_usage
fi

while [ ! -z "$1" ]; do
    if [[ "$1" == "--help" ]] || [[ "$1" == "-h" ]]; then
        show_usage
        
    elif [[ "$1" == "get_dependency" ]]; then
        get_depends
    
    elif [[ "$1" == "run_all" ]]; then
        run_all
    
    else
        echo "incorrect Input"
        show_usage
    fi
shift
done
