blob: e48a5dc3b0a661dff653b942b94b418cd4e1f4c2 [file] [log] [blame]
Jeremy Ronquillodae11042018-02-21 09:21:44 -08001# 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
23database_host <- 1
24database_host_str <- "<database-host>"
25
26database_port <- 2
27database_port_str <- "<database-port>"
28
29database_u_id <- 3
30database_u_id_str <- "<database-user-id>"
31
32database_pw <- 4
33database_pw_str <- "<database-password>"
34
35graph_title <- 5
36graph_title_str <- "<graph-title>"
37
38branch_name <- 6
39branch_name_str <- "<branch-name>"
40
41save_directory_str <- "<directory-to-save-graph>"
42
43usage <- 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}