[Toybox] [PATCH] date.test: add some tests.
Rob Landley
rob at landley.net
Sat Oct 6 11:20:06 PDT 2018
On 10/05/2018 05:18 PM, enh wrote:
> These are reasonable examples I found in AOSP.
> +
> +# Test embedded TZ to take a date in one time zone and display it in another.
> +testing "TZ=" "TZ='America/Los_Angeles' date -d 'TZ=\"Europe/London\"
> 2018-10-04 08:00'" "Thu Oct 4 00:00:00 PDT 2018\n" "" ""
> +testing "TZ= @" "TZ='America/Los_Angeles' date -d 'TZ=\"GMT\"
> @1533427200'" "Sat Aug 4 17:00:00 PDT 2018\n" "" ""
Hmmm, slight concern that I'm not sure how many timezones we should expect to be
installed in a test environment.
I'm back poking at mkroot and trying to turn it into a test environment that can
run the full toybox test suite under qemu, so I can finally have some proper
tests for mount and insmod and such. It's a musl-based environment, and I dunno
what musl does about timezones? (Glibc needs horrible generation and files and
such, and uClibc _copied_glibc's_data_at_install_time_ off the build system,
which was just crazy from a licensing perspective.)
Hey Rich: musl timezones? Do I have to do anything special, or what?
Rob
More information about the Toybox
mailing list