Use LTTngUSTLogger logger plugin in logtest regression test
[deliverable/titan.core.git] / etc / scripts / cfg_msg_maker.py
1 ##############################################################################
2 # Copyright (c) 2000-2016 Ericsson Telecom AB
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Eclipse Public License v1.0
5 # which accompanies this distribution, and is available at
6 # http://www.eclipse.org/legal/epl-v10.html
7 #
8 # Contributors:
9 # Balasko, Jeno
10 # Delic, Adam
11 #
12 ##############################################################################
13 header = "TITAN"
14 str = header + """
15 ________ _____ ________ ____ __ _
16 (___ ___) (_ _) (___ ___) ( ) / \ / )
17 ) ) | | ) ) / /\ \ / /\ \ / /
18 ( ( | | ( ( ( (__) ) ) ) ) ) ) )
19 ) ) | | ) ) ) ( ( ( ( ( ( (
20 ( ( _| |__ ( ( / /\ \ / / \ \/ /
21 /__\ /_____( /__\ /__( )__\ (_/ \__/
22 """
23 encoded = ""
24 for c in str:
25 code = ord(c)
26 for i in range(7,-1,-1):
27 if (code & (1<<i)): ch = "\t"
28 else: ch = " "
29 encoded += ch
30 cfgfile = open('message.cfg', 'w')
31 cfgfile.write("[DEFINE]\n");
32 cfgfile.write("// include this cfg file or copy paste the following whitespaces into your main cfg file\n");
33 cfgfile.write(encoded);
34 cfgfile.write("\n// end of message\n");
35 cfgfile.close();
This page took 0.0316 seconds and 5 git commands to generate.