46dcaaedfc
Added support for ramdisk-type elements in tests/test_functions.bash Elements are distinguished by element-type file in a test element. Note that ironic-agent ramdisk is built with disk-image-create. Change-Id: I4759859e7f3c004c2d00e7318729602e6c3c4d95
20 lines
556 B
Bash
Executable File
20 lines
556 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
basedir=$(dirname $0)
|
|
source $basedir/test_functions.bash
|
|
|
|
for test_element in $basedir/../elements/*/test-elements/*; do
|
|
if [ -d "$test_element" ]; then
|
|
# our element name is two dirs up
|
|
element_name=$(basename $(dirname $(dirname $test_element)))
|
|
element_type=disk
|
|
if [ -f "$test_element/element-type" ]; then
|
|
element_type=$(cat "$test_element/element-type")
|
|
fi
|
|
run_${element_type}_element_test "$(basename $test_element)" "$element_name"
|
|
fi
|
|
done
|