#!/bin/bash

. run_profile.txt
. $base_dir/plans/commands/common.fns

# Check needed vars from run_profile.txt
[ ! -d "$run_dir" ] && echo "ERROR: $run_dir does not exist" && exit -10

SUT=`hostname -s`
log_dir="$run_dir/test_output"
mkdir -p $log_dir

latest=`cat $PKGS_DIR/ltp/LATEST`
#rcfile="$SRC_DIR/ltp-$latest/ltp.rc"
cmd="/usr/bin/time ./runltp"
echo "using: $cmd"

echo "Running ltp on SUT: $SUT"
run_test "ltp" "$cmd" "$log_dir" "ltp.log"

# print some selective log output:
$all_pkgs_dir/ltp/ltprun-summary.sh $log_dir/ltp.log

exit 0
