generated from TDD-Templates/cmake_cpputest_template
Added a protoype for new menu option, adding mock modules
This commit is contained in:
parent
fd261b27c6
commit
90ed839db5
10
otto.sh
10
otto.sh
|
@ -98,6 +98,10 @@ git_remove_module () {
|
|||
git rm -r ./tests/CMakeLists.txt
|
||||
}
|
||||
|
||||
add_mock_module () {
|
||||
echo "Not yet implimented!"
|
||||
}
|
||||
|
||||
|
||||
add_new_module () {
|
||||
read -p "Enter the name of the module:" modname
|
||||
|
@ -205,6 +209,7 @@ run_c_tests () {
|
|||
|
||||
print_menu () {
|
||||
echo "BUILD MENU:"
|
||||
echo "0. Add Mock Module"
|
||||
echo "1. Run Tests"
|
||||
echo "2. Build Project(hex)"
|
||||
echo "3. Build for release(hex)"
|
||||
|
@ -224,6 +229,11 @@ main() {
|
|||
read -p "Enter your choice: " choice
|
||||
|
||||
case $choice in
|
||||
0)
|
||||
echo "You selected Option 0"
|
||||
valid_choice=true
|
||||
add_mock_module
|
||||
;;
|
||||
1)
|
||||
echo "You selected Option 1"
|
||||
valid_choice=true
|
||||
|
|
Loading…
Reference in New Issue