File: test.py

package info (click to toggle)
x2gobroker 0.0.4.3-4.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,652 kB
  • sloc: python: 7,175; sh: 1,475; makefile: 366; perl: 267; ansic: 38
file content (31 lines) | stat: -rwxr-xr-x 1,158 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8

# Copyright (C) 2014-2020 by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
#
# X2Go Session Broker is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# X2Go Session Broker is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.

"""
Unit tests for Python X2GoBroker.
"""
import os

if __name__ == "__main__":
    os.environ.update({'X2GOBROKER_DEBUG': "1"})
    os.environ.update({'X2GOBROKER_TESTSUITE': "1"})
    os.chdir(os.path.join('x2gobroker', 'tests',))
    os.system('python3 ./runalltests.py')