test_ocarina.py 712 Bytes
Newer Older
yoogx's avatar
yoogx committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/bin/python

from ocarina import *;

def main ():
    '''Test function'''

    for backends in Backends:
        print(backends);

    load("rma.aadl");             # load a file
    load("deployment.aadl");      # load a file
    analyze();                    # analyze models
    instantiate("rma.erc32");     # instantiate
    generate (Backends.polyorb_hi_ada);

17
18
19
20
21
22
23
24
    reset();

    load("rma.aadl");             # load a file
    load("deployment.aadl");      # load a file
    analyze();                    # analyze models
    instantiate("rma.erc32");     # instantiate
    generate (Backends.polyorb_hi_ada);

yoogx's avatar
yoogx committed
25
26
27
if __name__ == "__main__":
    main ()
    sys.exit (0);                         # exit