blob: 012b16db154ca46457a97c66a7794a13fe768e72 [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
Klement Sekera909a6a12017-08-08 04:33:53 +02006from hook import VppDiedError
7from framework import VppTestCase, KeepAliveReporter
Klement Sekera3747c752017-04-10 06:30:17 +02008
9
10class SanityTestCase(VppTestCase):
Klement Sekera03a3e762018-11-08 11:49:04 +010011 """ Sanity test case - verify if VPP is able to start """
Klement Sekera3747c752017-04-10 06:30:17 +020012 pass
13
14if __name__ == '__main__':
15 rc = 0
16 tc = SanityTestCase
Klement Sekera909a6a12017-08-08 04:33:53 +020017 x, y = Pipe()
18 reporter = KeepAliveReporter()
19 reporter.pipe = y
Klement Sekera3747c752017-04-10 06:30:17 +020020 try:
21 tc.setUpClass()
22 except VppDiedError:
23 rc = -1
24 else:
25 try:
26 tc.tearDownClass()
27 except:
28 pass
Klement Sekera909a6a12017-08-08 04:33:53 +020029 x.close()
30 y.close()
Klement Sekera3747c752017-04-10 06:30:17 +020031
32 exit(rc)