blob: 535d054fe5139a6a77f0bae43dd066cad66f59ee [file] [log] [blame]
Renato Botelho do Coutoead1e532019-10-31 13:31:07 -05001#!/usr/bin/env python3
Klement Sekera3747c752017-04-10 06:30:17 +02002
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 Sekera45a95dd2019-11-05 11:18:25 +00006import os
Paul Vinciguerra496b0de2019-06-20 12:24:12 -04007from framework import VppDiedError, VppTestCase, KeepAliveReporter
Klement Sekera3747c752017-04-10 06:30:17 +02008
9
10class SanityTestCase(VppTestCase):
juraj.linkes185e6492018-11-28 14:30:34 +010011 """ Sanity test case - verify whether VPP is able to start """
Klement Sekera3747c752017-04-10 06:30:17 +020012 pass
13
Klement Sekera45a95dd2019-11-05 11:18:25 +000014
Klement Sekera3747c752017-04-10 06:30:17 +020015if __name__ == '__main__':
Klement Sekera45a95dd2019-11-05 11:18:25 +000016 os.environ["RND_SEED"] = "1"
Klement Sekera3747c752017-04-10 06:30:17 +020017 rc = 0
18 tc = SanityTestCase
Klement Sekera909a6a12017-08-08 04:33:53 +020019 x, y = Pipe()
20 reporter = KeepAliveReporter()
21 reporter.pipe = y
Klement Sekera3747c752017-04-10 06:30:17 +020022 try:
23 tc.setUpClass()
24 except VppDiedError:
25 rc = -1
26 else:
27 try:
28 tc.tearDownClass()
29 except:
30 pass
Klement Sekera909a6a12017-08-08 04:33:53 +020031 x.close()
32 y.close()
Klement Sekera3747c752017-04-10 06:30:17 +020033
juraj.linkesabec0122018-11-16 17:28:56 +010034 if rc == 0:
35 print('Sanity test case passed\n')
36 else:
37 print('Sanity test case failed\n')
38
Klement Sekera3747c752017-04-10 06:30:17 +020039 exit(rc)