def get_protocol():
    return rcm_protocol_server.rcm_protocol()
                myargs = dict()
                #collect all the relevant parameters for the function and pass it
                for p in self.functions[fname][1]:
                    a = options.get(p, '')
                    if (a != ''): myargs[p] = a


#            sys.stdout.write("calling "+fname+"-->" + str(myargs))
#debug_print        myfile=open('/plx/userinternal/lcalori0/RCM/log.txt',"a")
#debug_print	    myfile.write("calling "+fname+"-->" + str(myargs)+"\n")
#debug_print	    myfile.close()
                myfunc(self.protocol, **myargs)
            else:
                sys.stdout.write("command " + fname + " undefined-->" +
                                 str(options))
        else:
            sys.stderr.write("missing command option " + str(options))

if __name__ == '__main__':

    print("testing rcm_protocol_parser ..................................")

    import dummy_rcm_scheduler
    import rcm_protocol_server
    r = rcm_protocol_server.rcm_protocol(dummy_rcm_scheduler.rcm_server())
    c = CommandParser(r)
    c.handle(["list"])
    c.handle(["--command=config", "--build_platform=uffa"])
    #print "----------------help---------"
    #CommandParser.parser.parse_args(["--help"])
Ejemplo n.º 3
0
import dummy_rcm_server



import rcm_protocol_server

if __name__ == '__main__':


    print "testing rcm_protocol_server .................................."

    r=rcm_protocol_server.rcm_protocol(dummy_rcm_server)
    r.config('mia build platform ')

Ejemplo n.º 4
0
                myargs = dict()
                #collect all the relevant parameters for the function and pass it
                for p in self.functions[fname][1]:
                    a = options.get(p, '')
                    if (a != ''): myargs[p] = a


#            sys.stdout.write("calling "+fname+"-->" + str(myargs))
#debug_print        myfile=open('/plx/userinternal/lcalori0/RCM/log.txt',"a")
#debug_print	    myfile.write("calling "+fname+"-->" + str(myargs)+"\n")
#debug_print	    myfile.close()
                myfunc(self.protocol, **myargs)
            else:
                sys.stdout.write("command " + fname + " undefined-->" +
                                 str(options))
        else:
            sys.stderr.write("missing command option " + str(options))

if __name__ == '__main__':

    print "testing rcm_protocol_parser .................................."

    import dummy_rcm_server
    import rcm_protocol_server
    r = rcm_protocol_server.rcm_protocol(dummy_rcm_server)
    c = CommandParser(r)
    c.handle(["list"])
    c.handle(["--command=config", "--build_platform=uffa"])
    #print "----------------help---------"
    #CommandParser.parser.parse_args(["--help"])
def get_protocol():
    return rcm_protocol_server.rcm_protocol()
Ejemplo n.º 6
0
#!/bin/env python

import os
import pwd
import re
#from __future__ import print_function

import rcm

import rcm_protocol_server
import rcm_protocol_parser

import platformconfig

if __name__ == '__main__':
    p = platformconfig.platformconfig()
    s = p.get_rcm_server()
    r = rcm_protocol_server.rcm_protocol(s)
    c = rcm_protocol_parser.CommandParser(r)
    c.handle()
Ejemplo n.º 7
0
#!/bin/env python

import os
import pwd
import re
#from __future__ import print_function

import rcm


import rcm_protocol_server
import rcm_protocol_parser

import platformconfig



if __name__ == '__main__':
    p=platformconfig.platformconfig()
    s=p.get_rcm_server()
    r=rcm_protocol_server.rcm_protocol(s)
    c=rcm_protocol_parser.CommandParser(r)
    c.handle()