blob: 92f250b2a6bc688b92b48984585e25c5d35dfb29 [file] [log] [blame]
Klement Sekera3747c752017-04-10 06:30:17 +02001#!/usr/bin/env python
2
3from __future__ import print_function
Klement Sekera909a6a12017-08-08 04:33:53 +02004from multiprocessing import Pipe
Klement Sekera3747c752017-04-10 06:30:17 +02005from sys import exit
Paul Vinciguerra496b0de2019-06-20 12:24:12 -04006from framework import VppDiedError, VppTestCase, KeepAliveReporter
Klement Sekera3747c752017-04-10 06:30:17 +02007
8
9class SanityTestCase(VppTestCase):
juraj.linkes185e6492018-11-28 14:30:34 +010010 """ Sanity test case - verify whether VPP is able to start """
Klement Sekera3747c752017-04-10 06:30:17 +020011 pass
12
13if __name__ == '__main__':
14 rc = 0
15 tc = SanityTestCase
Klement Sekera909a6a12017-08-08 04:33:53 +020016 x, y = Pipe()
17 reporter = KeepAliveReporter()
18 reporter.pipe = y
Klement Sekera3747c752017-04-10 06:30:17 +020019 try:
20 tc.setUpClass()
21 except VppDiedError:
22 rc = -1
23 else:
24 try:
25 tc.tearDownClass()
26 except:
27 pass
Klement Sekera909a6a12017-08-08 04:33:53 +020028 x.close()
29 y.close()
Klement Sekera3747c752017-04-10 06:30:17 +020030
juraj.linkesabec0122018-11-16 17:28:56 +010031 if rc == 0:
32 print('Sanity test case passed\n')
33 else:
34 print('Sanity test case failed\n')
35
Klement Sekera3747c752017-04-10 06:30:17 +020036 exit(rc)