b9b6640fa7
Adding a test function which allows us to use elements to perform element-specific tests. In order for this to work sanely, also adding some configuration to our break system so we can assert on negative tests. Also adding a test for apt-sources to verify this code actually works. Change-Id: I378a74255010eca192f5766b653f8a42404be5ea
16 lines
389 B
Bash
Executable File
16 lines
389 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)))
|
|
run_element_test "$(basename $test_element)" "$element_name"
|
|
fi
|
|
done
|