/usr/share/faumachine/experiments/test-fi-smart-step2/run-tests.sh is in faumachine-data 20110812-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #!/bin/sh
TESTS_LIST_SUFFIX=$(uname -n | sed -e 's/faui//')
TESTS_LIST=tests.list.${TESTS_LIST_SUFFIX}
if [ ! -f ${TESTS_LIST} ]; then
echo "Test list ${TESTS_LIST} for host $(uname -n) not found."
exit 1
fi
cat ${TESTS_LIST} | while read ARG; do
make clean
TS=$(date +%Y%m%d-%H%M%S)
./gen_vhdl_faults.sh $ARG >> log.faults
echo "${TS} starting experiment." >> log.faults;
make experiment
RESULT=$?
TS2=$(date +%Y%m%d-%H%M%S)
if [ ${RESULT} -eq 0 ]; then
echo "${TS} Success at ${TS2}." >> log.faults;
else
echo "${TS} Failure at ${TS2}." >> log.faults;
fi;
# TODO store cow/map files.to ${TS}_<disk>.media.{cow|map}
# currently not feasable since cow files aren't sparse.
cat log.faults >> experiment.log
mv log.faults ${TS}.faults
for I in node.def/screenshot*; do
mv ${I} ${TS}.$(basename $I)
done;
mv log.faum-expect ${TS}.log.faum-expect
mv log.faum-node.pc ${TS}.log.faum-node.pc
done
|