harbor run -t openthoughts/tasktrove-exp-rpt-stack-bash-withtests-gpt5mini-v2-stack-bash-withtests-gpt4o-3174harbor download openthoughts/tasktrove-exp-rpt-stack-bash-withtests-gpt5mini-v2-stack-bash-withtests-gpt4o-3174Implement a small command‑line submission‑checker program and place it under /app/ so the test harness can find and execute it.
Requirements
Notes / expected input & output examples
You may implement the script in Perl, Bash, Python, or any language available in the environment, but ensure the filename and executable bit are set exactly as specified (/app/KWSEval-SubmissionChecker.pl).
The following test script will be used to verify your solution:
#!/bin/bash
#
# $Id: ff73563ad3ab00dea6532465ab3aa034c4ac966e $
#
specfilename="KWS16-SubmissionChecker_conf.perl"
tvedsc_base="KWSEval-SubmissionChecker"
tool_dir=`perl -e 'use Cwd "abs_path"; use File::Basename "dirname"; $dir = dirname(abs_path($ARGV[0])); print $dir' $0`
echo "[$0]"
specfile="$tool_dir/../../data/$specfilename"
tvedsc="$tool_dir/$tvedsc_base.pl"
# Check specfile
if [ -z ${specfile:-} ]; then
echo "ERROR: No Specfile set, aborting"
exit 1
fi
if [ ! -f $specfile ]; then
echo "ERROR: Could not find the needed specfile ($specfile), aborting"
exit 1
fi
# Check tv ed submision checker
if [ -z ${tvedsc:-} ]; then
echo "ERROR: No KWS Submission Checker set, aborting"
exit 1
fi
if [ ! -f $tvedsc ]; then
echo "ERROR: Could not find the needed KWS Submission Checker program ($tvedsc), aborting"
exit 1
fi
if [ ! -x $tvedsc ]; then
echo "ERROR: KWS Submission Checker program ($tvedsc) is not executable, aborting"
exit 1
fi
# Command to run
cmd="$tvedsc --Specfile $specfile $*"
echo "FYI: $0 will run: [$cmd]"
echo ""
$cmd
# Exit with last command exit status
exit $?
#####
abspath () { case "$1" in /*)printf "%s\n" "$1";; *)printf "%s\n" "$PWD/$1";; esac; }