Have tests read example tree from a generated file, rather than link it in.

This makes the tests more flexible to re-use for testing the output from
the write tests.
This commit is contained in:
David Gibson 2006-11-28 17:20:01 +11:00
parent 3da0f9a10d
commit 4e6221c171
14 changed files with 158 additions and 32 deletions

View file

@ -9,19 +9,25 @@ run_test () {
PATH=".:$PATH" $ENV "$@"
}
functional_tests () {
tree1_tests () {
TREE=$1
# Read-only tests
run_test root_node
run_test property_offset
run_test subnode_offset
run_test path_offset
run_test getprop
run_test notfound
run_test root_node $TREE
run_test property_offset $TREE
run_test subnode_offset $TREE
run_test path_offset $TREE
run_test getprop $TREE
run_test notfound $TREE
# Write-in-place tests
run_test setprop_inplace
run_test nop_property
run_test nop_node
run_test setprop_inplace $TREE
run_test nop_property $TREE
run_test nop_node $TREE
}
functional_tests () {
tree1_tests test_tree1.dtb
}
stress_tests () {