btrfs-progs: check/lowmem mode: Check inline extent size
[platform/upstream/btrfs-progs.git] / tests / test-console.sh
1 #!/bin/bash
2 # a shell with test environment set up, logged commands and output
3
4 LANG=C
5 SCRIPT_DIR=$(dirname $(readlink -f "$0"))
6 TOP=$(readlink -f "$SCRIPT_DIR/../")
7 TEST_DEV=${TEST_DEV:-}
8 RESULTS="$TOP/tests/test-console.txt"
9 IMAGE="$TOP/tests/test.img"
10
11 source common
12 source common.convert
13
14 setup_root_helper
15
16 echo "Eval loop in test environment (log: $RESULTS)"
17 echo -e " ---------------------\nStarting session, `date`" >> "$RESULTS"
18 echo -n "`pwd`> "
19 while read x; do
20         echo "COMMAND: $x" >> "$RESULTS"
21         { eval $x; } 2>&1 | tee -a "$RESULTS"
22         echo -n "`pwd`> "
23 done