aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-06-01Allow ':' in property names.Elliott Hughes
Bug: http://b/62114389 Test: setprop Change-Id: I165bcc01bb2422d991f746c5e6490cbdfb74472f
2017-05-28teach head -v and -qIlya Kuzmich
Not POSIX, but implemented in coreutils and busybox. Tests use sed to compensate for the stdin naming difference. Signed-off-by: Ilya Kuzmich <ilya.kuzmich@gmail.com>
2017-05-27Replace two space indents with tab indents in help text (for consistency).Rob Landley
2017-05-27Add separators in help -a with command name.Rob Landley
2017-05-26Be more consistent about periods in help text.Elliott Hughes
2017-05-25Add -0 to env.Rob Landley
2017-05-25Teach env that - as first argument means -i for some reason. (Posix!)Rob Landley
2017-05-24Add and use xmmap.Elliott Hughes
Everyone forgets that mmap returns MAP_FAILED rather than NULL on failure. Every use of mmap in toybox was either doing the wrong check, or no check at all (including the two I personally added).
2017-05-23Add minof/maxof macros that autodetect type. Make xzcat use them.Rob Landley
2017-05-23fixup code styleJoyounger
Signed-off-by: Joyounger <aquanox@163.com>
2017-05-21Promote chrtRob Landley
2017-05-21Cleaup chrtRob Landley
2017-05-19Add bzip2 support to tar.Elliott Hughes
Also trivial cleanup of pipe -> xpipe. Bug: http://b/38215123
2017-05-19Implement date %N, loosely inspired by Elliott Hughes's patch.Rob Landley
I didn't implement %37N's ability to insert zeroes, so removed those two tests. If you really need it, I can add the divide loop back.
2017-05-14factor shouldn't give incorrect answers for >64-bit integers.Elliott Hughes
2017-05-14Minor tweaks to install.sh.Rob Landley
2017-05-11Switch to testcmd and add "-e all but \c" test.Rob Landley
2017-05-11Make fewer assumptions about the shell in echo.test.Elliott Hughes
This test fails with mksh, but we're not here to test mksh.
2017-05-08Move strend() to lib/lib.cRob Landley
2017-05-08Remove old uClibc compatibility glue. It's been 5 years since the last release.Rob Landley
See http://lists.busybox.net/pipermail/buildroot/2016-December/180102.html for a full post-mortem on the project.
2017-05-08Now that xopen() no longer returns stdio, !fd doesn't need strcmp("-") to verifyRob Landley
2017-05-07Fix error in writing output that was causing zcat to always fail.Mike Moreton
2017-05-07Error if we can't autodetect filesystem type.Rob Landley
2017-04-30Android NDK doesn't have cutils/sched_policy.h so add a probed config symbol.Rob Landley
2017-04-30Android needs -llog to link.Elliott Hughes
2017-04-30Building mkpasswd on Android makes no sense.Elliott Hughes
And won't work anyway because we don't have crypt(3).
2017-04-30Implement zlib-based gzip/gunzip/zcat.Elliott Hughes
2017-04-26Elliott wants to run the toybox tests on android host and there's an sh butRob Landley
it isn't toysh, so test for a bash alias.
2017-04-25Forgot to check in one of the files for bzcat.testRob Landley
2017-04-24Another FAQ, and some related tweaks as long as I was there.Rob Landley
2017-04-19Add ls -ll (with --full-time as a compatibility synonym) to show nanoseconds.Rob Landley
(And, for some reason, timezone. Individual files have timezones?)
2017-04-18The kernel needs bc to build becauseRob Landley
https://landley.net/notes-2013.html#28-03-2013 so add it to the airlock install.
2017-04-17Use $(( rather than $[ for arithmetic in expand.test.Elliott Hughes
I can't find any reference to $[ for arithmetic on the bash man page, but it seems to be a synonym for $((. mksh doesn't support this, so the expand tests that use it fail on Android. No other toybox tests are using $[.
2017-04-17Make ls.test work without awk.Elliott Hughes
2017-04-15Speed up tail.test for shells without builtin printf.Elliott Hughes
The test only needs echo, and Android currently doesn't use mksh's builtin printf; the toybox printf is fuller featured and less buggy, but a lot slower to call in a loop like this (and mksh doesn't fall back to the printf on the path if given something it can't handle, so we can't have the best of both worlds). Without this hack, the tail test takes as long as all the other tests put together.
2017-04-12Default to -b rather than -q when output is to a tty.Rob Landley
2017-04-11Fix "make test_split".Elliott Hughes
The test shouldn't assume there's a toybox binary on the path.
2017-04-11Silence a broken warning by hitting it with a rock.Rob Landley
2017-04-11Make fdisk buildable.Elliott Hughes
The argument to help_exit is a char*, not a FILE*.
2017-04-11Fix touch -a/-m (and add the missing tests).Elliott Hughes
utimensat takes atime in [0] and mtime in [1], but since we're overwriting with UTIME_OMIT, we actually want to flip the comparison so -a blats 1 and -m blats 0.
2017-04-10Add "uudecode -o -" support.Elliott Hughes
busybox uudecode supports this, and POSIX explicitly mentions it (albeit only in the "STDOUT" section). Plus Android doesn't have /dev/stdout and /dev/stdin, so this lets us rewrite the uudecode tests so they pass on Android too.
2017-04-08Fix the ls -m test (which is just a whitespace issue, but eh).Rob Landley
While we're at it, ls -m wordwrap was one column early.
2017-04-07Make renice.test work without awk.Elliott Hughes
Also try to only kill processes we created.
2017-04-07Remove mount.test awk dependency.Elliott Hughes
Parsing file(1) output isn't a good way to determine file system type anyway.
2017-04-07Make pgrep tests runnable on toybox-only systems.Elliott Hughes
Also make the cleanup kill more focused.
2017-04-07Make pkill tests runnable on a toybox-only system.Elliott Hughes
Also use a much stricter regex in the regex test to avoid killing innocent bystanders.
2017-04-07Make bzcat tests runnable on a toybox-only system.Elliott Hughes
2017-04-04Add "testcmd" function as an alternative to "testing" for tests/*.test, andRob Landley
check in two converted commands.
2017-04-03Fix ls -a and ls -A tests.Elliott Hughes
2017-04-03Trivial cleanup. (Whitespace, brackets, and remove unnecessary typecasts.)Rob Landley