Debian Codegraph @

src/App/FreeCADTest.py

raw
1 # ***************************************************************************
2 # * Copyright (c) 2002 Jürgen Riegel <[email protected]> *
3 # * *
4 # * This file is part of the FreeCAD CAx development system. *
5 # * *
6 # * This program is free software; you can redistribute it and/or modify *
7 # * it under the terms of the GNU Lesser General Public License (LGPL) *
8 # * as published by the Free Software Foundation; either version 2 of *
9 # * the License, or (at your option) any later version. *
10 # * for detail see the LICENCE text file. *
11 # * *
12 # * FreeCAD is distributed in the hope that it will be useful, *
13 # * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 # * GNU Lesser General Public License for more details. *
16 # * *
17 # * You should have received a copy of the GNU Library General Public *
18 # * License along with FreeCAD; if not, write to the Free Software *
19 # * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
20 # * USA *
21 # * *
22 # ***************************************************************************/
23
24 # FreeCAD test module
25 #
26 # Testing the function of the base system and run
27 # (if existing) the test function of the modules
28
29
30 Log("FreeCAD test running...\n\n")
31
32 import sys
33
34 import FreeCAD
35 import TestApp
36
37 testCase = FreeCAD.ConfigGet("TestCase")
38
39 testResult = TestApp.TestText(testCase)
40
41 Log("FreeCAD test done\n")
42
43 sys.exit(0 if testResult.wasSuccessful() else 1)