blob: 155de98bbce840f6795702b57013cc1bb82b207d [file] [log] [blame]
#!/bin/bash
source /var/onap_tests/asserts
# main() - Starting point for Unit Tests
function main {
local covered_functions=("$@")
len=${#covered_functions[@]}
echo "1..$len"
for i in ${!covered_functions[@]}; do
dpkg --get-selections > installed-software
sort -o installed-software installed-software
test_${covered_functions[$i]}
echo "ok $((i+1)) - test_${covered_functions[$i]}"
# Teardown process
dpkg --get-selections > installed-software_new
sort -o installed-software_new installed-software_new
apt-get purge -y -qq $(comm -3 installed-software installed-software_new | awk '{print $1}')
#rm -rf $git_src_folder
#rm -rf ~/.m2/
done
}