aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2016-12-08Workaround for Centos' "which" complaining if it can't find the commandRob Landley
(instead of just producing no output on stdout like everybody else).
2016-12-07Thinko in recent longopt commit.Rob Landley
2016-12-07Change error test to actually exit if first attempt to use .config fails.Rob Landley
2016-12-07People keep wanting to cross-compile from macs, where the stock sed is broken.Rob Landley
So use $SED to indicate the sed to use, and set it to 'gsed' if available.
2016-12-07Bugfix: configuring out a longopt confused the option parsing.Rob Landley
(This made ls -l not work when LS_COLOR was off.)
2016-10-20Always regenerate config.h for now, so make single and make don't clash.Rob Landley
The problem is that .config and .singleconfig produce the same header file, so checking that the header is newer than the .config file won't help if it was last generated from the other file.
2016-10-18Test infrastructure: collate make "test_single" and "make tests" into commonRob Landley
function, and add $C variable with an absolute path to the command being tested (you need to call things like printf by path to avoid shell builtins, might as well be consistent).
2016-10-02Add install_airlock target for hermetic build environment setup, and rebuildRob Landley
headers during install to make other install targets robust against single command builds between "make" and "make install" of multiplexer version.
2016-09-28Kernels between 2006 and 2010 (such as the one in Centos 6.6) provide unshare()Rob Landley
but not nsenter(). So probe for both.
2016-09-04make test_cmp caused the make invocation to exit with an error because theRob Landley
last test exited with nonzero status and the script preserved it. In the current context, that's counterproductive.
2016-07-17The recent option parsing changes broke the multiplexer, because the "toybox"Rob Landley
command was trying to parse their options and failing. (Commands that aren't just disabled but have no option string even in the allyesconfig case need an OPTSTR of 0.) This is probably only a partial fix, there's some design work to think through here.
2016-07-15Add optional openssl accelerated versions of hash functions, loosely based onRob Landley
a patch from Elliott Hughes, who said: [PATCH] Add support for libcrypto for MD5/SHA. Orders of magnitude faster (for architectures where OpenSSL/BoringSSL has optimized assembler). Also adds sha224sum, sha256sum, sha384sum, and sha512sum for folks building with libcrypto. The fallback portable C implementations could easily be refactored to be API-compatible, but I don't know whether they'd stay here or move to lib/ so I've left that part alone for now.
2016-07-05Fix generated/make.sh. (Quotes in TOYBOX_VERSION need to wind up inRob Landley
resulting macro.)
2016-06-30Fix option parsing infrastructure bug.Rob Landley
In main.c: used adjusted string with placeholers for removed options (so flag values don't move based on config, allowing FORCE_FLAGS to work). In scripts/mkflags.c: test was wrong, a bare longopt never matches a single letter command, but it was treated as always matching when comparing allyesconfig vs current config to determine which options were disabled, so there was a corner case that got the flag values wrong.
2016-06-30Add NOSPACE=1 to allow tests to pass with diff -bRob Landley
2016-05-26Stabilize another sort.Elliott Hughes
Unstable sorting means confusing diffs if you're checking in the generated files. (Which I shouldn't be doing, but getting this bundle of random scripts into Android's build system isn't going to be easy...)
2016-05-20Make build dependencies more granular. This should fix the problem whereRob Landley
"make top; make ps" produces a ps that can't do -A because generated/obj/ps.o didn't get rebuilt.
2016-04-22Allow EVAL= to run test under a different shell (for sh.test)Rob Landley
2016-04-20Replace list_working with just list, "make list list_pending" shows combined ↵Rob Landley
list.
2016-03-23Fix bzcat.test (as noted by Andy Chu), wean tests off $TOPDIR and supply $FILESRob Landley
instead, move tests/blkid into tests/files/blkid.
2016-03-23Redo build stuff in response to Andy Chu's suggestions.Rob Landley
Toybox single binaries are now made directly with the new name instead of stomping toybox and getting renamed. Unstripped files now live in generated/unstripped. Target to run all tests is now "make tests" to avoid conflict with "make test". .singleconfig now has .PHONY: entries for all test_$NAME targets. Default install location changed to /usr/toybox, code.html now says how to change it (set $PREFIX). scripts/install.sh --uninstall works now. (And you get to keep the pieces!)
2016-03-12Update scripts/single.sh and cp.c so "make mv" isn't actually building cp.Rob Landley
2016-03-02Factor out command name at the start of test name, have runtest.sh print it.Rob Landley
2016-03-01The last-ever release of uClibc hasn't got prlimit, so probe.Rob Landley
2016-03-01Use shell builtins instead of calling wc/awk/sed. (Fewer forks in build loop.)Rob Landley
Based on suggestions from Nicholas Boichat.
2016-03-01config2help: add missing ctype.h includeMike Frysinger
This file uses isspace which is defined in the ctype.h header.
2016-02-26Switch to $! for make.sh process enumeration.Rob Landley
2016-02-25Musl needs an extra #include.Rob Landley
2016-02-19Add test_COMMAND for each command, update "make help" to describe TEST_HOSTRob Landley
and VERBOSE=fail, and fix a quote mismatch.
2016-02-14Add "make list", rename make working->list_working and pending->list_pending,Rob Landley
and filter out commands that aren't nofork but aren't installed either (toyflags 0, I.E. recognized aliases like "-sh" called from login).
2016-02-10Wean scripts/install.c off toys.h so cross compiling less brittle.Rob Landley
2016-02-10Don't include toys.h from config2help.c (so cross-compiling from systems weRob Landley
don't run on is easier), and use HELP_ instead of help_ for macro prefixes to avoid name collisions (such as help_exit() the function).
2016-02-07Dependencies for "make COMMAND"Rob Landley
2016-02-07Add "make ls" and friends targets, with "make working" and "make pending" lists.Rob Landley
2016-02-07Add a warning when building commands out of pending.Rob Landley
2016-02-05Debian unstable is even more pedantic than previous debian.Rob Landley
2016-02-02Update to status.html and some test suite cosmetic tweaks.Rob Landley
2016-01-18Implement basic pkill plumbing, and fix FORCE_FLAGS on flag context switch.Rob Landley
2016-01-15Locale setting is case sensitive.Rob Landley
2016-01-15Fix sort -f, add tests, make TEST_HOST pass new tests.Rob Landley
2016-01-10Make cursor left/right change sort type in iotop.Rob Landley
2015-12-27Add scan_key_getsize() doing the ANSI probe, switch scan_key() to TAGGED_ARRAY,Rob Landley
and add test_scankey.
2015-12-18Next giant chunk of ps work: add _NAME_TAG bitmask values to tags.hRob Landley
(leading underscore version is 1<<NAME_TAG version, with 1LL for >31 shift), suck lots of magic constants out of ps and use tag macros instead, redo command line display so there's now 6 variants (CMD COMM ARGS from posix, NAME CMDLINE from android, and COMMAND for completeness). Document more cases where posix is nuts or widely ignored.
2015-12-16Don't discard previous block when mkstatus finds another span tag with same id.Rob Landley
2015-12-13Start of TAGGED_ARRAY() infrastructure.Rob Landley
This lets you have struct arrays with a string as the first member, ala: struct {char *name; int x, y} blah thingy[] = TAGGED_ARRAY(BLAH, {"one", 1, 2}, {"two", 3, 4}, {"three", 5, 6} ); And it produces #defines for the array index of each, ala: #define BLAH_one 0 #define BLAH_two 1 #define BLAH_three 2 So you can use thingy[BLAH_two].x and still reorder the elements at will. Note: if you screw up the array initializers, temporarily replace TAGGED_ARRAY(BLAH, with { and the ); with }; and the compiler will give you better error messages. (With the macro the compiler reports errors on the TAGGED_ARRAY line, not where the comma is missing in its contents.) Currently the TAGGED_ARRAY( and ); must be on their own lines, and the { and start of each attached string must be on the same line.
2015-12-10Expand toys.optargs to 64 bits so people adding more options to ls don't run ↵Rob Landley
out. Keep the low 32 bits of FLAG_x constants as 32 bit numbers so that at least on little endian platforms it's still normal 32 bit math outside of lib/args.c.
2015-11-02Don't pass target $CFLAGS to host builds (telling x86 compiler to be big-endianRob Landley
seldom ends well). Instead add -DBUILD_FOR_HOST to $HOSTCC and wrap #ifdefs around problematic (smack) includes from toys.h.
2015-10-30Now that toybox is chmod -w, mv needs -f to overwrite it.Rob Landley
2015-10-29Tweak permissions of toybox binary.Rob Landley
2015-10-14make.sh: missing cflags for config2helpAlejandro Joya
config2help might require extra parameters to be passed to the compiler. For example it might need an additional header path.