diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-06-29 16:54:04 +0900 |
---|---|---|
committer | MyoungJune Park <mj2004.park@samsung.com> | 2017-07-03 11:17:33 +0900 |
commit | 743fa23377e40908e1d1da1ca65b608e8cb2154a (patch) | |
tree | c12bb973b72c8a37f5af51a4e77d426ebfee138f | |
parent | 7bd14178cd736c7bd592c7192a04aaba869280e8 (diff) | |
download | libzio-743fa23377e40908e1d1da1ca65b608e8cb2154a.tar.gz libzio-743fa23377e40908e1d1da1ca65b608e8cb2154a.tar.bz2 libzio-743fa23377e40908e1d1da1ca65b608e8cb2154a.zip |
Bump to libzio 1.04tizen_4.0.m2_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_base/20170705.023439submit/tizen_base/20170703.022442submit/tizen_4.0_base/20170828.000001submit/tizen_4.0_base/20170828.000000submit/tizen_4.0_base/20170811.071500accepted/tizen/base/20170707.183713accepted/tizen/4.0/base/20170828.221048accepted/tizen/4.0/base/20170811.092708tizen_4.0_tvtizen_4.0_baseaccepted/tizen_4.0_base
[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A
[Problem] Open Source version upgrade
[Cause & Measure] Open Source version upgrade
[Checking Method] N/A
[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A
Change-Id: I85c7ace25fe4c6a710ef7401b9ddca6e986c5f8e
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
-rw-r--r-- | packaging/libzio.spec | 28 | ||||
-rwxr-xr-x | run_test.sh | 57 |
2 files changed, 83 insertions, 2 deletions
diff --git a/packaging/libzio.spec b/packaging/libzio.spec index e817965..7517696 100644 --- a/packaging/libzio.spec +++ b/packaging/libzio.spec @@ -1,5 +1,11 @@ + +%if "%{run_tests}" == "1" + %define check %%check +%endif + + Name: libzio -Version: 1.02 +Version: 1.04 Release: 0 License: GPL-2.0+ Summary: A Library for Accessing Compressed Text Files @@ -35,12 +41,29 @@ make %{?_smp_mflags} noweak %check make testt make tests + +export TEST_LOG="/tmp/%{name}_test" +rm -f $TEST_LOG +chmod 755 ./run_test.sh for comp in gzip bzip2 lzma xz do $comp -c < fzopen.3.in > fzopen.test ./testt fzopen.test | cmp fzopen.3.in - + if [ $? == 0 ] + then + echo "TEST: PASS: $comp uncompress test" >> $TEST_LOG + else + echo "TEST: FAIL: $comp uncompress test" >> $TEST_LOG + fi cat fzopen.test | ./tests ${comp:0:1} | cmp fzopen.3.in - + if [ $? == 0 ] + then + echo "TEST: PASS: $comp uncompress test" >> $TEST_LOG + else + echo "TEST: FAIL: $comp uncompress test" >> $TEST_LOG + fi done +./run_test.sh %{name} %{version} %install make DESTDIR=%{buildroot} install libdir=%{_libdir} mandir=%{_mandir} @@ -52,13 +75,14 @@ make DESTDIR=%{buildroot} install libdir=%{_libdir} mandir=%{_mandir} %files %manifest %{name}.manifest %defattr(-,root,root) +%license COPYING %{_libdir}/libzio.so.1 %{_libdir}/libzio.so.%{version} %files devel %manifest %{name}.manifest %defattr(-,root,root) -%doc README COPYING +%license COPYING %{_libdir}/libzio.a %{_libdir}/libzio.so %{_mandir}/man3/fzopen.3* diff --git a/run_test.sh b/run_test.sh new file mode 100755 index 0000000..4257d1e --- /dev/null +++ b/run_test.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +PACKAGE_NAME=$1 +PACKAGE_VERSION=$2 + +TEST_LOG="/tmp/${PACKAGE_NAME}_test" +export TEST_LOG + +# Color +Color_Off='\e[0m' # Text Reset + +# Regular Colors +Red='\e[0;31m' # Red +Green='\e[0;32m' # Green +Cyan='\e[0;36m' # Cyank + +# Bold +BWhite='\e[1;37m' # White + +result_check() { + test_case=$1 + if [ $? -eq 0 ] + then + echo -e "${Green}PASS${Color_Off}: $test_case" + echo "TEST: PASS: $test_case" >> ${TEST_LOG} + else + echo -e "${Red}FAIL${Color_Off}: $test_case" + echo -e "TEST: FAIL: $test_case" >> ${TEST_LOG} + fi +} + +skip_test() { + test_case=$1 + echo -e "${Cyan}SKIP${Color_Off}: $test_case" + echo "TEST: SKIP: $test_case" >> ${TEST_LOG} +} + +TOTAL_CNT=`grep "TEST:" ${TEST_LOG} | wc -l` +PASS_CNT=`grep "PASS:" ${TEST_LOG} | wc -l` +FAIL_CNT=`grep "FAIL:" ${TEST_LOG} | wc -l` +SKIP_CNT=`grep "SKIP:" ${TEST_LOG} | wc -l` + + +br='==================='; br=$br$br$br$br; + +echo -e "${Green}$br ${Color_Off}" +echo -e "${Green}Testsuite summary for ${PACKAGE_NAME} ${PACKAGE_VERSION}${Color_Off}" +echo -e "${Green}$br ${Color_Off}" +echo -e "#${BWhite} TOTAL: $TOTAL_CNT ${Color_Off}" +echo -e "#${Green} PASS${Color_Off} : $PASS_CNT" +echo -e "#${Red} FAIL${Color_Off} : $FAIL_CNT" +echo -e "#${Cyan} SKIP${Color_Off} : $SKIP_CNT" +echo -e "${Green}$br ${Color_Off}" + +rm -f ${TEST_LOG} +exit 0 + |