panthema / 2012 / 1119-eSAIS-Inducing-Suffix-and-LCP-Arrays-in-External-Memory / eSAIS-DC3-LCP-0.5.2 / stxxl / misc / buildbot-run-tests-minimal (Download File)
#!/bin/bash

variants="stxxl mcstxxl pmstxxl stxxl_boost mcstxxl_boost pmstxxl_boost"

ulimit -t 7200
set -o pipefail

run_ldd()
{
	cmd="$1.$stxxl.bin"
	shift
	test -x $cmd || return 0
	echo "==================== ldd $cmd ===================="
	ldd $cmd
}

run()
{
	cmd="$1.$stxxl.bin"
	shift
	test -x $cmd || return 0
	echo "==================== $cmd $@ ===================="
	echo "[`date`] Start"
	$cmd "$@" < /dev/null
	result=$?
	echo "[`date`] Finish($result)"
}


for stxxl in $variants
do
	run_ldd common/stxxl_info
done

for stxxl in $variants
do
	run common/stxxl_info
	run mng/test_aligned
done

echo "==================== finished ===================="