Lines Matching full:epoch
75 # Test add user with account expiration as an epoch date
92 EPOCH=`date -j -f "%d-%m-%Y %H:%M:%S" "${DATE} 00:00:00" "+%s"`
94 atf_check -s exit:0 -o match:"^test:\*:.*::0:${EPOCH}:User &:.*" \
104 EPOCH=`date -j -f "%d-%b-%Y %H:%M:%S" "${DATE} 00:00:00" "+%s"`
106 atf_check -s exit:0 -o match:"^test:\*:.*::0:${EPOCH}:User &:.*" \
115 EPOCH=`date -j -v+13m "+%s"`
116 BUF=`expr $EPOCH + 5`
119 [ ! -z $TIME -a $TIME -ge $EPOCH -a $TIME -lt $BUF ] || \
120 atf_fail "Expiration time($TIME) was not within $EPOCH - $BUF seconds."
123 # Test add user with password expiration as an epoch date
140 EPOCH=`date -j -f "%d-%m-%Y %H:%M:%S" "${DATE} 00:00:00" "+%s"`
142 atf_check -s exit:0 -o match:"^test:\*:.*::${EPOCH}:0:User &:.*" \
152 EPOCH=`date -j -f "%d-%b-%Y %H:%M:%S" "${DATE} 00:00:00" "+%s"`
154 atf_check -s exit:0 -o match:"^test:\*:.*::${EPOCH}:0:User &:.*" \
163 EPOCH=`date -j -v+13m "+%s"`
164 BUF=`expr $EPOCH + 5`
167 [ ! -z $TIME -a $TIME -ge $EPOCH -a $TIME -lt $BUF ] || \
168 atf_fail "Expiration time($TIME) was not within $EPOCH - $BUF seconds."