Salome HOME
Add first testing procedure
[tools/sat.git] / test / test.py
1 #!/usr/bin/env python
2 #-*- coding:utf-8 -*-
3 #  Copyright (C) 2010-2012  CEA/DEN
4 #
5 #  This library is free software; you can redistribute it and/or
6 #  modify it under the terms of the GNU Lesser General Public
7 #  License as published by the Free Software Foundation; either
8 #  version 2.1 of the License.
9 #
10 #  This library is distributed in the hope that it will be useful,
11 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 #  Lesser General Public License for more details.
14 #
15 #  You should have received a copy of the GNU Lesser General Public
16 #  License along with this library; if not, write to the Free Software
17 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
18
19 import os
20 import sys
21
22 # get execution path
23 testdir = os.path.dirname(os.path.realpath(__file__))
24 sys.path.append(os.path.join(testdir, '..', 'src'))
25
26 from salomeTools import salomeTools
27
28 sat = salomeTools('')
29 sat.config('appli-test -v APPLICATION')
30
31 sat2 = salomeTools("-oINTERNAL.sat_version='coucou'")
32 sat2.config('appli-test -v INTERNAL.sat_version')