#! /bin/bash # Parse arguments test_name="$1" shift # Check we didn't get junk # as the name of the test to perform . test.lib.exist # Parse parameters needed by test test -f "$parse_file" && . test.lib.parse final_action="test.lib.perform" # Foreach build script we have link_tree="$test_path/tmp" for build_library in "$test_path"/data/build.library*; do export TEST_PHASE="build_library" echo "${spacing}Cleaning up tmp dir ($link_tree)..." #rm -rf "$link_tree"/* # Prepare to build library if test "x${build_library}" = "x${test_path}/data/build.library*"; then build_result="" . test.lib.test.src else if test "x${build_library}" = "x${test_path}/data/build.library"; then build_load="test.lib.build.inline" build_tree="$gl_inline_tree/lib" else build_load="test.lib.build.script" build_tree="$test_path/build/lib" fi # build library build_action="test.lib.test.src" build="$build_library" . "$build_load" fi done