MAP: Convert from DPO to input feature.
[vpp.git] / test / sanity_run_vpp.py
1 #!/usr/bin/env python
2
3 from __future__ import print_function
4 from multiprocessing import Pipe
5 from sys import exit
6 from hook import VppDiedError
7 from framework import VppTestCase, KeepAliveReporter
8
9
10 class SanityTestCase(VppTestCase):
11     """ Sanity test case - verify whether VPP is able to start """
12     pass
13
14 if __name__ == '__main__':
15     rc = 0
16     tc = SanityTestCase
17     x, y = Pipe()
18     reporter = KeepAliveReporter()
19     reporter.pipe = y
20     try:
21         tc.setUpClass()
22     except VppDiedError:
23         rc = -1
24     else:
25         try:
26             tc.tearDownClass()
27         except:
28             pass
29     x.close()
30     y.close()
31
32     if rc == 0:
33         print('Sanity test case passed\n')
34     else:
35         print('Sanity test case failed\n')
36
37     exit(rc)