Skip to content
Snippets Groups Projects
Commit 42bcb1b3 authored by lche0021's avatar lche0021
Browse files

add message to print num of lib

parent f47926af
No related branches found
No related tags found
2 merge requests!464Fix listdeps,!442Smoke test
......@@ -24,17 +24,28 @@ done
' > $TESTCASE_DIR/bintest
echo "Starting generate bintest for $NUM_MODULE softwares"
declare -i NUM_LIB=0
declare -i GENERATED_NUM=0
IFS_orig=$IFS
IFS=$'\n'
for i in $(head -n $NUM_MODULE $USAGE_REPORT); do
m=$(sed -n 's/\(.*\)\/\(.*\) - \(.*\)/\1 \2/p' <<< $i)
name=$(cut -f1 -d' ' <<< $m)
ver=$(cut -f2 -d' ' <<< $m)
MODIFED_PATH=$(module show $name/$ver 2>&1 | sed -n 's/.* PATH \(.*\)/\1/p')
if [ -z ${MODIFIED_PATH+_} ]; then
MODIFIED_PATH=$(module show $name/$ver 2>&1 | sed -n 's/.* PATH \(.*\)/\1/p')
if ! [ -z "${MODIFIED_PATH}" ]; then
mkdir -p $TESTCASE_DIR/$name
cp $TESTCASE_DIR/bintest $TESTCASE_DIR/$name/bintest
chmod u+x $TESTCASE_DIR/$name/bintest
GENERATED_NUM+=1
else
NUM_LIB+=1
fi
done
IFS=$IFS_orig
echo "Successfully generated bintests for $GENERATED_NUM applications"
echo "There are $NUM_LIB libraries (does not modify PATH), no testcases generated for them"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment