make test: automatic "vpp finishes startup" check
[vpp.git] / test / sanity_run_vpp.py
1 #!/usr/bin/env python
2
3 from __future__ import print_function
4 from framework import VppTestCase
5 from hook import VppDiedError
6 from sys import exit
7
8
9 class SanityTestCase(VppTestCase):
10     """ Dummy test case used to check if VPP is able to start """
11     pass
12
13 if __name__ == '__main__':
14     rc = 0
15     tc = SanityTestCase
16     try:
17         tc.setUpClass()
18     except VppDiedError:
19         rc = -1
20     else:
21         try:
22             tc.tearDownClass()
23         except:
24             pass
25
26     exit(rc)