2017-04-10 06:30:17 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
from __future__ import print_function
|
2017-08-08 04:33:53 +02:00
|
|
|
from multiprocessing import Pipe
|
2017-04-10 06:30:17 +02:00
|
|
|
from sys import exit
|
2019-06-20 12:24:12 -04:00
|
|
|
from framework import VppDiedError, VppTestCase, KeepAliveReporter
|
2017-04-10 06:30:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
class SanityTestCase(VppTestCase):
|
2018-11-28 14:30:34 +01:00
|
|
|
""" Sanity test case - verify whether VPP is able to start """
|
2017-04-10 06:30:17 +02:00
|
|
|
pass
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
rc = 0
|
|
|
|
tc = SanityTestCase
|
2017-08-08 04:33:53 +02:00
|
|
|
x, y = Pipe()
|
|
|
|
reporter = KeepAliveReporter()
|
|
|
|
reporter.pipe = y
|
2017-04-10 06:30:17 +02:00
|
|
|
try:
|
|
|
|
tc.setUpClass()
|
|
|
|
except VppDiedError:
|
|
|
|
rc = -1
|
|
|
|
else:
|
|
|
|
try:
|
|
|
|
tc.tearDownClass()
|
|
|
|
except:
|
|
|
|
pass
|
2017-08-08 04:33:53 +02:00
|
|
|
x.close()
|
|
|
|
y.close()
|
2017-04-10 06:30:17 +02:00
|
|
|
|
2018-11-16 17:28:56 +01:00
|
|
|
if rc == 0:
|
|
|
|
print('Sanity test case passed\n')
|
|
|
|
else:
|
|
|
|
print('Sanity test case failed\n')
|
|
|
|
|
2017-04-10 06:30:17 +02:00
|
|
|
exit(rc)
|