• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/bash
2
3cd /data/ndk-test
4
5rm REPORT
6touch REPORT
7
8:<<LIC-TEST
9for file in ./*
10do
11    if [ "$file" = "runtest" ] \
12    || [ "$file" = "REPORT" ] \
13    || [ "$file" = "libdlopen_dso.so" ] \
14    || [ "$file" = "libtls_init_dso.so" ] \
15    || [ "$file" = "libtls_align_dso.so" ] \
16    || [ "$file" = "libtls_get_new-dtv_dso.so" ]
17    then
18        continue
19    else
20        /data/ndk-test/libc-test/common/runtest -w '' /data/ndk-test/libc-test/$file >> REPORT    
21    fi
22done
23LIC-TEST
24
25ndk_test_path="./ndk-test"
26function get_result(){
27	dirlist=$(ls ${ndk_test_path})
28	for dirname in ${dirlist[*]}
29	do
30		if [ -d "${ndk_test_path}/${dirname}" ];
31		then
32			for filename in $(ls ${ndk_test_path}/${dirname})
33			do
34				# echo $filename
35				cd ${ndk_test_path}/${dirname}
36				var=${filename#*.}
37				#echo $var
38				if test $var = "so"
39				then
40					:
41				elif test $var = "a"
42				then
43					:
44				else
45					FILE="../../REPORT"
46					datetime=$(date '+%Y-%m-%d %H:%M:%S')
47					echo $datetime >> $FILE
48					RETURN=`./$var >> ../../REPORT 2>&1`
49
50				fi
51				cd ../..
52			done
53		fi
54	done
55}
56get_result
57# call script
58# ./runtest-sanitize.sh
59
60
61
62
63
64