Jeremy Ronquillo | dae1104 | 2018-02-21 09:21:44 -0800 | [diff] [blame] | 1 | # Copyright 2017 Open Networking Foundation (ONF) |
| 2 | # |
| 3 | # Please refer questions to either the onos test mailing list at <onos-test@onosproject.org>, |
| 4 | # the System Testing Plans and Results wiki page at <https://wiki.onosproject.org/x/voMg>, |
| 5 | # or the System Testing Guide page at <https://wiki.onosproject.org/x/WYQg> |
| 6 | # |
| 7 | # TestON is free software: you can redistribute it and/or modify |
| 8 | # it under the terms of the GNU General Public License as published by |
| 9 | # the Free Software Foundation, either version 2 of the License, or |
| 10 | # (at your option) any later version. |
| 11 | # |
| 12 | # TestON is distributed in the hope that it will be useful, |
| 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | # GNU General Public License for more details. |
| 16 | # |
| 17 | # You should have received a copy of the GNU General Public License |
| 18 | # along with TestON. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # |
| 20 | # If you have any questions, or if you don't understand R, |
| 21 | # please contact Jeremy Ronquillo: j_ronquillo@u.pacific.edu |
| 22 | |
| 23 | database_host <- 1 |
| 24 | database_host_str <- "<database-host>" |
| 25 | |
| 26 | database_port <- 2 |
| 27 | database_port_str <- "<database-port>" |
| 28 | |
| 29 | database_u_id <- 3 |
| 30 | database_u_id_str <- "<database-user-id>" |
| 31 | |
| 32 | database_pw <- 4 |
| 33 | database_pw_str <- "<database-password>" |
| 34 | |
| 35 | graph_title <- 5 |
| 36 | graph_title_str <- "<graph-title>" |
| 37 | |
| 38 | branch_name <- 6 |
| 39 | branch_name_str <- "<branch-name>" |
| 40 | |
| 41 | save_directory_str <- "<directory-to-save-graph>" |
| 42 | |
| 43 | usage <- function( filename, specialArgsList = c() ){ |
| 44 | special_args_str = "" |
| 45 | for ( a in specialArgsList) { |
| 46 | special_args_str = paste( special_args_str, "<", a, "> ", sep="" ) |
| 47 | } |
| 48 | output <- paste( "Usage: Rscript", |
| 49 | filename, |
| 50 | database_host_str, |
| 51 | database_port_str, |
| 52 | database_u_id_str, |
| 53 | database_pw_str, |
| 54 | graph_title_str, |
| 55 | branch_name_str, |
| 56 | special_args_str, |
| 57 | sep=" " ) |
| 58 | output <- paste( output, save_directory_str, sep="" ) |
| 59 | print( output ) |
| 60 | } |