summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYu Jiung <jiung.yu@samsung.com>2016-03-17 21:09:12 +0900
committerYu Jiung <jiung.yu@samsung.com>2016-03-17 21:09:12 +0900
commitf52e289a02c8ac3bab5c0ce9c7260ee653364e2f (patch)
tree79c081e962c0d911c4dcc198b707c3bde310044e /tests
parent16d8d570a162fa40d5ed64798eb1c72e3288e3fc (diff)
downloadtoybox-f52e289a02c8ac3bab5c0ce9c7260ee653364e2f.tar.gz
toybox-f52e289a02c8ac3bab5c0ce9c7260ee653364e2f.tar.bz2
toybox-f52e289a02c8ac3bab5c0ce9c7260ee653364e2f.zip
Revert back to upstream 0.6.0 and remove all except for dhcp relatedsubmit/tizen/20160323.053424
Change-Id: Ide839cfefc7c4049715f86a2bf769c333175b2bf
Diffstat (limited to 'tests')
-rw-r--r--tests/date.test22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/date.test b/tests/date.test
deleted file mode 100644
index 94a4157..0000000
--- a/tests/date.test
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-[ -f testing.sh ] && . testing.sh
-
-#testing "name" "command" "result" "infile" "stdin"
-
-# Test Unix date parsing.
-testing "date -d @0" "TZ=UTC date -d @0 2>&1" "Thu Jan 1 00:00:00 GMT 1970\n" "" ""
-testing "date -d @0x123" "TZ=UTC date -d @0x123 2>&1" "date: bad date '@0x123'\n" "" ""
-
-# Test basic date parsing.
-# Note that toybox's -d format is not the same as coreutils'.
-testing "date -d 06021234" "TZ=UTC date -d 06021234 2>&1" "Sun Jun 2 12:34:00 UTC 1900\n" "" ""
-testing "date -d 060212341982" "TZ=UTC date -d 060212341982 2>&1" "Sun Jun 2 12:34:00 UTC 1982\n" "" ""
-testing "date -d 123" "TZ=UTC date -d 123 2>&1" "date: bad date '123'\n" "" ""
-
-# Accidentally given a Unix time, we should trivially reject that.
-testing "date Unix time missing @" "TZ=UTC date 1438053157 2>&1" \
- "date: bad date '1438053157'; Tue February 38 05:31:00 UTC 2057 != Sun Mar 10 05:31:00 UTC 2058\n" "" ""
-# But some invalid dates are more subtle, like Febuary 29th in a non-leap year.
-testing "date Feb 29th" "TZ=UTC date 022900001975 2>&1" \
- "date: bad date '022900001975'; Tue Feb 29 00:00:00 UTC 2075 != Fri Mar 1 00:00:00 UTC 2075\n" "" ""