#!/bin/sh logname=`date +"%Y_%m_%d_%H_%M_%S"`".log" perf-networking |tee /tmp/$logname if grep -Fq "Error:" /tmp/$logname then echo "FAIL: Test failed" exit 1 else echo "PASS: Performed the netperf tests" exit 0 fi