VirtualBox

source: vbox/trunk/src/libs/libtpms-0.9.6/tests/fuzz.sh@ 99553

Last change on this file since 99553 was 91612, checked in by vboxsync, 3 years ago

src/libs: Export libtpms-0.9.0, bugref:10078

  • Property svn:executable set to *
File size: 382 bytes
Line 
1#!/usr/bin/env bash
2
3TESTDIR=${abs_top_testdir:-$(dirname "$0")}
4DIR=${PWD}
5
6MAXLINES=128
7l=1
8
9corpus=$(ls "$TESTDIR/corpus-execute-command/"*)
10
11while :; do
12 echo "Passing test cases $l to $((l + MAXLINES))"
13 tmp=$(echo "${corpus}" | sed -n "${l},$((l + MAXLINES))p")
14 [ -z "${tmp}" ] && exit 0
15 ${DIR}/fuzz ${tmp}
16 rc=$?
17 [ $rc -ne 0 ] && exit $rc
18 l=$((l + MAXLINES))
19done
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette