2 # a shell with test environment set up, logged commands and output
5 SCRIPT_DIR=$(dirname $(readlink -f "$0"))
6 TOP=$(readlink -f "$SCRIPT_DIR/../")
8 RESULTS="$TOP/tests/test-console.txt"
9 IMAGE="$TOP/tests/test.img"
16 echo "Eval loop in test environment (log: $RESULTS)"
17 echo -e " ---------------------\nStarting session, `date`" >> "$RESULTS"
20 echo "COMMAND: $x" >> "$RESULTS"
21 { eval $x; } 2>&1 | tee -a "$RESULTS"