diff options
author | Seonah Moon <seonah1.moon@samsung.com> | 2019-10-07 11:05:26 +0900 |
---|---|---|
committer | Seonah Moon <seonah1.moon@samsung.com> | 2019-10-07 11:06:12 +0900 |
commit | b0706e54b48af6c11783f55455842a292c4d9b17 (patch) | |
tree | e18f8e347693bf9a1297f5553716e84c9109246f /tests/smb.sh | |
parent | d722eee76c51a65c5449806c6fdacf2ac4f95055 (diff) | |
parent | 9ceaf0d786e9465506271e8450248a57719e4eb1 (diff) | |
download | tcpdump-b0706e54b48af6c11783f55455842a292c4d9b17.tar.gz tcpdump-b0706e54b48af6c11783f55455842a292c4d9b17.tar.bz2 tcpdump-b0706e54b48af6c11783f55455842a292c4d9b17.zip |
Imported Upstream version 4.9.3tizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.0_hotfix/20201103.115104submit/tizen_6.0_hotfix/20201102.192904submit/tizen_6.0/20201029.205504submit/tizen_5.5_wearable_hotfix/20201026.184308submit/tizen_5.5_mobile_hotfix/20201026.185108submit/tizen_5.5/20191031.000008submit/tizen/20191007.043405accepted/tizen/unified/20191008.101611accepted/tizen/6.0/unified/hotfix/20201103.045554accepted/tizen/6.0/unified/20201030.103631accepted/tizen/5.5/unified/wearable/hotfix/20201027.105002accepted/tizen/5.5/unified/mobile/hotfix/20201027.072435accepted/tizen/5.5/unified/20191031.013529tizen_6.0_hotfixtizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5accepted/tizen_6.0_unified_hotfixaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unified
Change-Id: Ib2ce6fe0c63523943f1fe7d772010824fe2c0d41
Diffstat (limited to 'tests/smb.sh')
-rw-r--r-- | tests/smb.sh | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/smb.sh b/tests/smb.sh new file mode 100644 index 0000000..4502354 --- /dev/null +++ b/tests/smb.sh @@ -0,0 +1,49 @@ +#!/bin/sh + +srcdir=${1-..} +: echo smb.sh using ${srcdir} from `pwd` + +testdir=${srcdir}/tests + +exitcode=0 +passedfile=tests/.passed +failedfile=tests/.failed +passed=`cat ${passedfile}` +failed=`cat ${failedfile}` + +# Only attempt OpenSSL-specific tests when compiled with the library. + +if grep '^#define ENABLE_SMB 1$' config.h >/dev/null +then + cat ${srcdir}/tests/SMBLIST | while read name input output options + do + case $name in + \#*) continue;; + '') continue;; + esac + rm -f core + [ "$only" != "" -a "$name" != "$only" ] && continue + SRCDIR=${srcdir} + export SRCDIR + # I hate shells with their stupid, useless subshells. + passed=`cat ${passedfile}` + failed=`cat ${failedfile}` + (cd tests # run TESTonce in tests directory + if ${srcdir}/tests/TESTonce $name ${srcdir}/tests/$input ${srcdir}/tests/$output "$options" + then + passed=`expr $passed + 1` + echo $passed >${passedfile} + else + failed=`expr $failed + 1` + echo $failed >${failedfile} + fi + if [ -d COREFILES ]; then + if [ -f core ]; then mv core COREFILES/$name.core; fi + fi) + done + # I hate shells with their stupid, useless subshells. + passed=`cat ${passedfile}` + failed=`cat ${failedfile}` +fi + +exit $exitcode |