summaryrefslogtreecommitdiffstats
path: root/src/plugins/unittest
AgeCommit message (Expand)AuthorFilesLines
2022-02-10tests: Fix the FIB UTNeale Ranns1-25/+26
2022-01-07ethernet: new interface registration functionDamjan Marion3-62/+60
2021-12-02tests: add segment manager testsFilip Tehlar1-29/+25
2021-11-23ip: unlock_fib on if deleteNathan Skrzypczak1-26/+17
2021-11-22gso: implement gso segementation copy with checksumMohsin Kazmi1-3/+1
2021-11-06unittest: remove clib_count_equal_* testsDamjan Marion1-97/+3
2021-11-05unittest: gcc-11 errors for clib_strcpy, clib_strstr, clib_strcat, and clib_s...Steven Luong1-340/+30
2021-10-27tcp: fix use of invalid local sw_if_indexFlorin Coras1-4/+4
2021-10-22session: fix minor issueFilip Tehlar1-1/+1
2021-10-21fib: respect mfib entry flags on create with pathsPaul Atkins2-96/+58
2021-10-20gso: add support for gso perf unittestMohsin Kazmi2-0/+380
2021-10-12unittest: fix crypto key len coverity warningFlorin Coras1-1/+1
2021-10-11ip: fix fib and mfib locksNathan Skrzypczak3-9/+5
2021-10-04vppinfra: fix potential memory access error in _pool_init_fixedJieqiang Wang1-15/+23
2021-10-04docs: plugin comment nitfixesNathan Skrzypczak1-1/+1
2021-10-01devices: add support for pseudo header checksumMohsin Kazmi2-0/+267
2021-09-27fib: fix crash on exporter tracker removeVladislav Grishenko1-1/+39
2021-09-23svm: remove unused fifo functionsFlorin Coras1-3/+3
2021-09-21session: implement app_ns deletionNathan Skrzypczak1-0/+12
2021-09-20hash: add support for hashing infraMohsin Kazmi2-0/+332
2021-09-17misc: put devtools plugins into separate component/packageDamjan Marion1-0/+3
2021-09-13interface: fix init fib_index_by_sw_if_indexNathan Skrzypczak3-22/+0
2021-08-20buffers: fix buffer linearizationBenoƮt Ganne1-36/+272
2021-07-15misc: replace CLIB_PREFETCH with clib_prefetch_{load,store}Damjan Marion1-4/+4
2021-06-21fib: Add unit test for RR source using covers labelsNeale Ranns1-1/+69
2021-06-08vppinfra: pool_free_elts() now supports fixed-size poolsDave Barach2-0/+63
2021-05-19vppinfra: add more llist macrosFlorin Coras1-25/+25
2021-05-14session: switch ct to vc and track half-opensFlorin Coras1-8/+5
2021-05-07session: connects seg manager is always firstFlorin Coras1-1/+4
2021-05-05crypto crypto-openssl: support hashing operationsFilip Tehlar3-0/+106
2021-04-26session: fix race condition in fifo allocationliuyacan1-1/+1
2021-04-05tcp: time infra improvementsFlorin Coras1-12/+19
2021-03-26vlib: introduce vlib_get_elog_main()Damjan Marion1-1/+1
2021-03-14ip: extend punt CLI for exception packetsMohammed Hawari1-6/+7
2021-02-26ipsec: move the IPSec SA pool out of ipsec_mainNeale Ranns1-2/+1
2021-02-18tests: policer test check unformat return valuesBrian Russell1-4/+6
2021-02-15ip: Path MTUNeale Ranns1-4/+26
2021-02-15policer: improve policer structBrian Russell1-1/+1
2021-02-10tests: add policer test helperBrian Russell2-0/+72
2021-02-05session svm: non blocking mqFlorin Coras1-8/+3
2021-02-04vlib: increase the stats epoch only when necessaryMiklos Tirpak2-0/+263
2021-02-01fib: Changes to interpose sourceNeale Ranns1-3/+149
2021-01-25svm: add custom q implementation for mqFlorin Coras1-3/+2
2020-12-30svm: fifo segment sptr for fifo hdr free listFlorin Coras1-3/+3
2020-12-29svm: allow mq attachments at random offsetsFlorin Coras1-11/+14
2020-12-26svm: change fifo pointers to offsetsFlorin Coras2-11/+12
2020-12-24svm: split fifo into private and shared structsFlorin Coras3-50/+50
2020-12-23vppinfra: mem bulk testFlorin Coras2-0/+146
2020-12-23svm: separate private from shared fifo segment ptrsFlorin Coras1-6/+13
2020-12-23svm: remove fifo segment heapFlorin Coras2-21/+16
ip_stack = None self.skip_num = None self.skip_count = 0 super(StepHook, self).__init__(testcase) def skip(self): if self.skip_stack is None: return False stack = traceback.extract_stack() counter = 0 skip = True for e in stack: if counter > self.skip_num: break if e[0] != self.skip_stack[counter][0]: skip = False if e[1] != self.skip_stack[counter][1]: skip = False counter += 1 if skip: self.skip_count += 1 return True else: print("%d API/CLI calls skipped in specified stack " "frame" % self.skip_count) self.skip_count = 0 self.skip_stack = None self.skip_num = None return False def user_input(self): print('number\tfunction\tfile\tcode') counter = 0 stack = traceback.extract_stack() for e in stack: print('%02d.\t%s\t%s:%d\t[%s]' % (counter, e[2], e[0], e[1], e[3])) counter += 1 print(single_line_delim) print("You may enter a number of stack frame chosen from above") print("Calls in/below that stack frame will be not be stepped anymore") print(single_line_delim) while True: print("Enter your choice, if any, and press ENTER to continue " "running the testcase...") choice = sys.stdin.readline().rstrip('\r\n') if choice == "": choice = None try: if choice is not None: num = int(choice) except ValueError: print("Invalid input") continue if choice is not None and (num < 0 or num >= len(stack)): print("Invalid choice") continue break if choice is not None: self.skip_stack = stack self.skip_num = num def before_cli(self, cli): """ Wait for ENTER before executing CLI """ if self.skip(): print("Skip pause before executing CLI: %s" % cli) else: print(double_line_delim) print("Test paused before executing CLI: %s" % cli) print(single_line_delim) self.user_input() super(StepHook, self).before_cli(cli) def before_api(self, api_name, api_args): """ Wait for ENTER before executing API """ if self.skip(): print("Skip pause before executing API: %s (%s)" % (api_name, api_args)) else: print(double_line_delim) print("Test paused before executing API: %s (%s)" % (api_name, api_args)) print(single_line_delim) self.user_input() super(StepHook, self).before_api(api_name, api_args)