003 File Manager
Current Path:
/usr/src/usr.bin/ncal/tests
usr
/
src
/
usr.bin
/
ncal
/
tests
/
📁
..
📄
Makefile
(4.13 KB)
📄
Makefile.depend
(176 B)
📄
legacy_test.sh
(123 B)
📄
regress.b-3m200901-jd-nhl.out
(713 B)
📄
regress.b-3m200901-md-nhl.out
(536 B)
📄
regress.b-3m200902-jd-nhl.out
(743 B)
📄
regress.b-3m200902-md-nhl.out
(569 B)
📄
regress.b-3m200903-jd-nhl.out
(713 B)
📄
regress.b-3m200903-md-nhl.out
(536 B)
📄
regress.b-3m200904-jd-nhl.out
(743 B)
📄
regress.b-3m200904-md-nhl.out
(536 B)
📄
regress.b-3m200905-jd-nhl.out
(713 B)
📄
regress.b-3m200905-md-nhl.out
(569 B)
📄
regress.b-3m200906-jd-nhl.out
(743 B)
📄
regress.b-3m200906-md-nhl.out
(536 B)
📄
regress.b-3m200907-jd-nhl.out
(713 B)
📄
regress.b-3m200907-md-nhl.out
(536 B)
📄
regress.b-3m200908-jd-nhl.out
(743 B)
📄
regress.b-3m200908-md-nhl.out
(569 B)
📄
regress.b-3m200909-jd-nhl.out
(713 B)
📄
regress.b-3m200909-md-nhl.out
(536 B)
📄
regress.b-3m200910-jd-nhl.out
(743 B)
📄
regress.b-3m200910-md-nhl.out
(536 B)
📄
regress.b-3m200911-jd-nhl.out
(713 B)
📄
regress.b-3m200911-md-nhl.out
(569 B)
📄
regress.b-3m200912-jd-nhl.out
(773 B)
📄
regress.b-3m200912-md-nhl.out
(536 B)
📄
regress.b-y2008-jd-nhl.out
(2.8 KB)
📄
regress.b-y2008-md-nhl.out
(2.13 KB)
📄
regress.b-y2009-jd-nhl.out
(2.8 KB)
📄
regress.b-y2009-md-nhl.out
(2.13 KB)
📄
regress.b-y2010-jd-nhl.out
(2.8 KB)
📄
regress.b-y2010-md-nhl.out
(2.13 KB)
📄
regress.b-y2011-jd-nhl.out
(2.8 KB)
📄
regress.b-y2011-md-nhl.out
(2.13 KB)
📄
regress.f-3A-nhl.out
(51 B)
📄
regress.f-3AB-nhl.out
(51 B)
📄
regress.f-3B-nhl.out
(51 B)
📄
regress.f-3gy-nhl.out
(73 B)
📄
regress.f-3y-nhl.out
(44 B)
📄
regress.f-mgm-nhl.out
(55 B)
📄
regress.f-yA-nhl.out
(47 B)
📄
regress.f-yAB-nhl.out
(47 B)
📄
regress.f-yB-nhl.out
(47 B)
📄
regress.f-ygm-nhl.out
(50 B)
📄
regress.f-ym-nhl.out
(44 B)
📄
regress.r-3m200901-jd-nhl.out
(602 B)
📄
regress.r-3m200901-md-nhl.out
(458 B)
📄
regress.r-3m200902-jd-nhl.out
(641 B)
📄
regress.r-3m200902-md-nhl.out
(458 B)
📄
regress.r-3m200903-jd-nhl.out
(602 B)
📄
regress.r-3m200903-md-nhl.out
(458 B)
📄
regress.r-3m200904-jd-nhl.out
(602 B)
📄
regress.r-3m200904-md-nhl.out
(458 B)
📄
regress.r-3m200905-jd-nhl.out
(641 B)
📄
regress.r-3m200905-md-nhl.out
(458 B)
📄
regress.r-3m200906-jd-nhl.out
(602 B)
📄
regress.r-3m200906-md-nhl.out
(458 B)
📄
regress.r-3m200907-jd-nhl.out
(602 B)
📄
regress.r-3m200907-md-nhl.out
(458 B)
📄
regress.r-3m200908-jd-nhl.out
(641 B)
📄
regress.r-3m200908-md-nhl.out
(458 B)
📄
regress.r-3m200909-jd-nhl.out
(602 B)
📄
regress.r-3m200909-md-nhl.out
(458 B)
📄
regress.r-3m200910-jd-nhl.out
(602 B)
📄
regress.r-3m200910-md-nhl.out
(458 B)
📄
regress.r-3m200911-jd-nhl.out
(641 B)
📄
regress.r-3m200911-md-nhl.out
(458 B)
📄
regress.r-3m200912-jd-nhl.out
(602 B)
📄
regress.r-3m200912-md-nhl.out
(458 B)
📄
regress.r-y2008-jd-nhl.out
(2.39 KB)
📄
regress.r-y2008-md-nhl.out
(1.8 KB)
📄
regress.r-y2009-jd-nhl.out
(2.39 KB)
📄
regress.r-y2009-md-nhl.out
(1.8 KB)
📄
regress.r-y2010-jd-nhl.out
(2.39 KB)
📄
regress.r-y2010-md-nhl.out
(1.8 KB)
📄
regress.r-y2011-jd-nhl.out
(2.39 KB)
📄
regress.r-y2011-md-nhl.out
(1.8 KB)
📄
regress.s-b-3-nhl.out
(536 B)
📄
regress.s-b-A-nhl.out
(360 B)
📄
regress.s-b-AB-nhl.out
(536 B)
📄
regress.s-b-B-nhl.out
(360 B)
📄
regress.s-b-gmgy-nhl.out
(184 B)
📄
regress.s-b-m-nhl.out
(184 B)
📄
regress.s-b-mgy-nhl.out
(184 B)
📄
regress.s-r-3-nhl.out
(458 B)
📄
regress.s-r-A-nhl.out
(314 B)
📄
regress.s-r-AB-nhl.out
(458 B)
📄
regress.s-r-B-nhl.out
(314 B)
📄
regress.s-r-gmgy-nhl.out
(170 B)
📄
regress.s-r-m-nhl.out
(170 B)
📄
regress.s-r-mgy-nhl.out
(170 B)
📄
regress.sh
(2.72 KB)
Editing: regress.sh
# $FreeBSD$ CAL_BIN="ncal" CAL="${CAL_BIN} -C" NCAL="${CAL_BIN} -N" YEARS="2008 2009 2010 2011" ONEYEAR="2009" echo 1..89 REGRESSION_START($1) # # The first tests are layout tests, to make sure that the output is still the # same despite varying months. # # Full year calendars for y in ${YEARS}; do # Regular calendar, Month days, No-highlight REGRESSION_TEST(`r-y${y}-md-nhl', `$NCAL -h ${y}') # Backwards calendar, Month days, No-highlight REGRESSION_TEST(`b-y${y}-md-nhl', `$CAL -h ${y}') # Regular calendar, Julian days, No-highlight REGRESSION_TEST(`r-y${y}-jd-nhl', `$NCAL -jh ${y}') # Backwards calendar, Julian days, No-highlight REGRESSION_TEST(`b-y${y}-jd-nhl', `$CAL -jh ${y}') done # 3 month calendars for m in $(jot -w %02d 12); do # Regular calendar, Month days, No-highlight REGRESSION_TEST(`r-3m${ONEYEAR}${m}-md-nhl', `$NCAL -h3 ${m} ${ONEYEAR}') # Backwards calendar, Month days, No-highlight REGRESSION_TEST(`b-3m${ONEYEAR}${m}-md-nhl', `$CAL -h3 ${m} ${ONEYEAR}') # Regular calendar, Julian days, No-highlight REGRESSION_TEST(`r-3m${ONEYEAR}${m}-jd-nhl', `$NCAL -jh3 ${m} ${ONEYEAR}') # Backwards calendar, Julian days, No-highlight REGRESSION_TEST(`b-3m${ONEYEAR}${m}-jd-nhl', `$CAL -jh3 ${m} ${ONEYEAR}') done # # The next tests are combinations of the various arguments. # # These should fail REGRESSION_TEST(`f-3y-nhl', `$NCAL -3 -y 2>&1') REGRESSION_TEST(`f-3A-nhl', `$NCAL -3 -A 3 2>&1') REGRESSION_TEST(`f-3B-nhl', `$NCAL -3 -B 3 2>&1') REGRESSION_TEST(`f-3gy-nhl', `$NCAL -3 2008 2>&1') REGRESSION_TEST(`f-3AB-nhl', `$NCAL -3 -A 3 -B 3 2>&1') REGRESSION_TEST(`f-mgm-nhl', `$NCAL -m 3 2 2008 2>&1') REGRESSION_TEST(`f-ym-nhl', `$NCAL -y -m 2 2>&1') REGRESSION_TEST(`f-ygm-nhl', `$NCAL -y 2 2008 2>&1') REGRESSION_TEST(`f-yA-nhl', `$NCAL -y -A 3 2>&1') REGRESSION_TEST(`f-yB-nhl', `$NCAL -y -B 3 2>&1') REGRESSION_TEST(`f-yAB-nhl', `$NCAL -y -A 3 -B 3 2>&1') # These should be successful REGRESSION_TEST(`s-b-3-nhl', `$CAL -d 2008.03 -3') REGRESSION_TEST(`s-b-A-nhl', `$CAL -d 2008.03 -A 1') REGRESSION_TEST(`s-b-B-nhl', `$CAL -d 2008.03 -B 1') REGRESSION_TEST(`s-b-AB-nhl', `$CAL -d 2008.03 -A 1 -B 1') REGRESSION_TEST(`s-b-m-nhl', `$CAL -d 2008.03 -m 1') REGRESSION_TEST(`s-b-mgy-nhl', `$CAL -d 2008.03 -m 1 2007') REGRESSION_TEST(`s-b-gmgy-nhl', `$CAL -d 2008.03 1 2007') REGRESSION_TEST(`s-r-3-nhl', `$NCAL -d 2008.03 -3') REGRESSION_TEST(`s-r-A-nhl', `$NCAL -d 2008.03 -A 1') REGRESSION_TEST(`s-r-B-nhl', `$NCAL -d 2008.03 -B 1') REGRESSION_TEST(`s-r-AB-nhl', `$NCAL -d 2008.03 -A 1 -B 1') REGRESSION_TEST(`s-r-m-nhl', `$NCAL -d 2008.03 -m 1') REGRESSION_TEST(`s-r-mgy-nhl', `$NCAL -d 2008.03 -m 1 2007') REGRESSION_TEST(`s-r-gmgy-nhl', `$NCAL -d 2008.03 1 2007') REGRESSION_END()
Upload File
Create Folder