Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | source /var/onap_tests/_test_base |
| 4 | source /var/onap/vfc |
| 5 | |
| 6 | covered_functions=( |
Victor Morales | 94b3e97 | 2017-08-17 14:55:55 -0500 | [diff] [blame] | 7 | "clone_all_vfc_repos" "compile_all_vfc_repos" "install_vfc" |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 8 | ) |
| 9 | |
| 10 | # test_clone_all_vfc_repos() - Verify cloning and pulling source code from repositories |
| 11 | function test_clone_all_vfc_repos { |
| 12 | # TODO(sshank) |
| 13 | echo "" |
| 14 | } |
| 15 | |
Victor Morales | 94b3e97 | 2017-08-17 14:55:55 -0500 | [diff] [blame] | 16 | # test_compile_all_vfc_repos() - Verify that all the VFC modules are compiled properly |
| 17 | function test_compile_all_vfc_repos { |
| 18 | clone_all_vfc_repos |
| 19 | compile_all_vfc_repos |
| 20 | |
| 21 | # TODO(electrocucaracha): Add asserts_file_exist |
| 22 | } |
| 23 | |
| 24 | # test_install_vfc() - Verify that the VFC are up and running |
| 25 | function test_install_vfc { |
| 26 | install_vfc |
| 27 | |
| 28 | # TODO(electrocucaracha): Add whatever asserts are needed |
| 29 | } |
| 30 | |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 31 | if [ "$1" != '*' ]; then |
| 32 | unset covered_functions |
| 33 | covered_functions=$1 |
| 34 | fi |
| 35 | main "${covered_functions[@]}" |