mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-26 08:02:21 +00:00
f0d226fa48
The paths are not adapted to the TEST_TOP added long time ago in
e44f595dd7
("btrfs-progs: tests: unify test drivers, make ready for
extenral testsuite").
Signed-off-by: David Sterba <dsterba@suse.com>
26 lines
612 B
Bash
Executable File
26 lines
612 B
Bash
Executable File
#!/bin/bash
|
|
# a shell with test environment set up, logged commands and output
|
|
|
|
LANG=C
|
|
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
|
TOP=$(readlink -f "$SCRIPT_DIR/../")
|
|
TEST_TOP="$TOP/tests"
|
|
INTERNAL_BIN="$TOP"
|
|
TEST_DEV=${TEST_DEV:-}
|
|
RESULTS="$TOP/tests/test-console.txt"
|
|
IMAGE="$TOP/tests/test.img"
|
|
|
|
source common
|
|
source common.convert
|
|
|
|
setup_root_helper
|
|
|
|
echo "Eval loop in test environment (log: $RESULTS)"
|
|
echo -e " ---------------------\nStarting session, `date`" >> "$RESULTS"
|
|
echo -n "`pwd`> "
|
|
while read x; do
|
|
echo "COMMAND: $x" >> "$RESULTS"
|
|
{ eval $x; } 2>&1 | tee -a "$RESULTS"
|
|
echo -n "`pwd`> "
|
|
done
|