blob: 5be709cc848131d30ce7e3db8fc57e1dc3471bab [file] [log] [blame]
Matteo Scandolo9ce18252017-06-22 10:48:25 -07001help:
2 @echo "tests: Run unit tests (if you're running local, you'll need to have virtual-env activated)"
Matteo Scandolodf2600b2017-07-05 17:01:29 -07003 @echo "tosca: Generate tosca definition from core.xproto"
Matteo Scandolo485b7132017-06-30 11:46:47 -07004 @echo "test-call: Send a sample tosca recipe"
Matteo Scandolo9ce18252017-06-22 10:48:25 -07005
Matteo Scandolodf2600b2017-07-05 17:01:29 -07006tests: tosca
Matteo Scandolo485b7132017-06-30 11:46:47 -07007 nosetests -s -v --with-id --with-coverage --cover-html --cover-erase --cover-xml --cover-package="grpc_client, tosca"
Matteo Scandolo9ce18252017-06-22 10:48:25 -07008
9build:
10 @echo 'TBD'
11
12clean:
13 @echo 'TBD'
14
15test-call:
Matteo Scandolo485b7132017-06-30 11:46:47 -070016 curl -H "xos-username: xosadmin@opencord.org" -H "xos-password: rk1UYDHZXbu6KVCMkhmV" -X POST --data-binary @test/tosca/test.yaml 127.0.0.1:9200
17
Matteo Scandolodf2600b2017-07-05 17:01:29 -070018tosca:
Matteo Scandolo485b7132017-06-30 11:46:47 -070019 xosgenx --target=src/tosca/xtarget/tosca.xtarget --output=src/tosca/custom_types --write-to-file=model --dest-extension=yaml ../xos/xos/core/models/core.xproto