summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2016-03-17Revert back to upstream 0.6.0 and remove all except for dhcp relatedsubmit/tizen/20160323.053424Yu Jiung1-22/+0
Change-Id: Ide839cfefc7c4049715f86a2bf769c333175b2bf
2015-08-12Merge remote-tracking branch 'toybox/master' into upstreamupstreamHyejin Kim1-0/+22
2015-08-11Fix more date bugs.Elliott Hughes1-2/+14
Correctly and portably check for non-normal dates, and explicitly show the "before" and "after" dates (in the format of the user's choosing). Clear the struct tm in date_main rather than parse_default because on one path the struct tm is actually initialized. Explicitly clear the tm_sec field in parse_default because -- experiment shows -- that should not be preserved. Only do the "what does this 2-digit year mean?" dance if we actually parsed a 2-digit year. Show the right string in the error message if strptime fails. Also add more tests, and use UTC in the tests to avoid flakiness.
2015-08-08Reject invalid dates in date(1).Elliott Hughes1-0/+10
Humans get upset when date(1) lets mktime(3) work out what the 99th day of the 99th month would be rather than rejecting the invalid date. For the subtly wrong cases, rather than get into the leap year business, let's rely on localtime_r(3).
2015-07-16Merge branch from toybox/masterHyejin Kim36-100/+519
Conflicts: both modified: lib/portability.c both modified: lib/portability.h both modified: scripts/genconfig.sh both modified: scripts/runtest.sh both added: tests/sed.test both modified: toys/other/acpi.c both modified: toys/other/ifconfig.c deleted by them: toys/other/unshare.c both added: toys/pending/hwclock.c both modified: toys/pending/ip.c deleted by them: toys/pending/sed.c both modified: toys/posix/chgrp.c both modified: toys/posix/cp.c both modified: toys/posix/id.c both modified: toys/posix/ls.c Change-Id: Ib36c5267ec054a5683ca37da2383d83b3cb1b5b4 Signed-off-by: Hyejin Kim <hyejin0906.kim@samsung.com>
2015-07-04Actually set time with touch -d and -t when you don't specify nanonseconds.Rob Landley1-7/+13
There's a nanoseconds field value that says use current time, which I set but forgot to clear in the right places. (Oops.)
2015-07-02The android guys sent in xxd. It doesn't share code with od and hexdump. Hmmm...Rob Landley1-0/+28
2015-07-01Fix segfault with "mount -o ro,remount".Elliott Hughes1-0/+4
Or any call to comma_scan where 'opt' appears as the last item in 'optlist'.
2015-05-12Set the executable bits on all the *.test files. (Wasn't consistent, is now.)Rob Landley30-0/+0
2015-04-28Fix truncate prefix bug and add truncate test suite entry.Rob Landley1-0/+28
2015-03-29Add head test for -123.Rob Landley1-0/+2
2015-03-28Fix sed bug David Halls hit trying to compile libiconv.Rob Landley1-1/+4
2015-03-28Fix printf bug (%.s should be %.0s not %s) reported by Isabella Parakiss.Rob Landley1-0/+2
2015-03-01fix copy/paste-o in useradd.testElliott Hughes1-1/+1
2015-02-18Separate 'userdel' from testing syntax.Yeongdeok Suh1-66/+80
When I test toybox with toybox/tests/*.test scripts, I got many false FAILs from it. So, I tried to fix useradd.test file.
2015-01-14i found a few problems while manually smoke testing toybox chown versus ↵Elliott Hughes1-0/+41
toolbox (NetBSD) chown... new test: and here's the patch to fix "owner:" ":group" and the ":" special case:
2015-01-11One more bugfix for printf.c, with test suite entry. (Make %-3d etc work.)Rob Landley1-1/+4
2015-01-10More half-finished cleanup of printf.c, and more test suite entries.Rob Landley1-1/+9
2015-01-06Since "printf" is a shell builtin, printf.test wasn't actually testing anything.Rob Landley1-24/+31
2015-01-06More printf cleanup, and test suite entries.Rob Landley1-5/+17
Fixes bug introduced last time where toys.optargs was both snapshotted and used directly and the two fell out of sync.
2014-12-24Teach factor to accept whitespace separated arguments (reported by Robert ↵Rob Landley1-0/+4
Thompson). (The diff looks bigger than it is because of reindenting.)
2014-12-21Another sed bug. (The e2fsprogs build uses multiple line continuations on ↵Rob Landley1-0/+2
the same command.)
2014-12-14Make sed a\ line continuations work properly for different pattern input modes.Rob Landley1-0/+11
2014-12-09Imported Upstream version 0.5.1upstream/0.5.1xroche2-0/+90
2014-12-01Ashwini Sharma pointed out that "mkdir sub; ln -s . sub/up; du -L sub" ↵Rob Landley1-0/+3
shouldn't loop endlessly.
2014-12-01Refactor expr and add another test entry that works with TEST_HOST=1 but not ↵Rob Landley1-0/+2
with the one in pending.
2014-11-30Tests for operator priority groupings.Rob Landley1-0/+9
2014-11-27sed: c needs to trigger range logic like d, D works like d when there isn't ↵Rob Landley1-10/+48
anything left in the line, and more tests.
2014-11-27New ifconfig tests from Cynt Rynt.Rob Landley1-0/+192
(I added the "only run if root" stanza at the beginning.)
2014-11-15Debugging pass on sed: make the existing test suite pass.Rob Landley1-2/+4
2014-11-14Add a few more sed tests.Rob Landley1-2/+21
2014-11-09Yet more sed tests.Rob Landley1-8/+22
2014-11-06More sed tests.Rob Landley1-0/+23
2014-10-30Test for ls -d from Isaac Dunham, and he pointed out -F also disables ↵Rob Landley1-0/+4
symlink following.
2014-10-29First batch of sed tests.Rob Landley1-0/+28
Only good for TEST_HOST=1 at the moment because the test infrastructure itself depends on sed, so if an unfinished sed is in the $PATH it goes boing. But hey, corner cases! I have... more.
2014-09-22Fix du test: du symlink -> "0\tsymlink"Felix Janda1-4/+6
2014-09-20Move testsuite out of scripts/test into its own top level tests directory, ↵Rob Landley72-0/+3173
and make ctrl-c kill "make test" more reliably.