2013-09-18 05:07:46 +00:00
|
|
|
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu>
|
2013-10-06 19:05:31 +00:00
|
|
|
#
|
2018-03-06 14:31:02 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2013-10-06 19:05:31 +00:00
|
|
|
|
2018-05-05 22:53:54 +00:00
|
|
|
from suite_dfilter import dfiltertest
|
2013-09-18 05:07:46 +00:00
|
|
|
|
2018-05-03 19:05:12 +00:00
|
|
|
class case_time_relative(dfiltertest.DFTestCase):
|
2013-10-06 19:05:31 +00:00
|
|
|
trace_file = "nfs.pcap"
|
2013-09-18 05:07:46 +00:00
|
|
|
|
|
|
|
def test_relative_time_1(self):
|
|
|
|
dfilter = "frame.time_delta == 0.7"
|
|
|
|
self.assertDFilterCount(dfilter, 1)
|
|
|
|
|
|
|
|
def test_relative_time_2(self):
|
|
|
|
dfilter = "frame.time_delta > 0.7"
|
|
|
|
self.assertDFilterCount(dfilter, 0)
|
|
|
|
|
|
|
|
def test_relative_time_3(self):
|
|
|
|
dfilter = "frame.time_delta < 0.7"
|
|
|
|
self.assertDFilterCount(dfilter, 1)
|
|
|
|
|