aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2014-08-30Old compilers complain about linker options passed with -c, so split out ↵Rob Landley
$LDOPTIMIZE.
2014-08-30Another fix from Johan Bergstr?m, using the gnu/dammit version of sort on ↵Rob Landley
the host can be screwed up by more than one environment variable.
2014-08-30Add VERBOSE=fail to "make tests", based on suggestion from Johan Bergstr?m.Rob Landley
2014-08-24Fix parallel make not always catching errors before link time.Rob Landley
jobs -p removes finished jobs from the list after reporting them once, so we need to record the output and remove duplicates ourselves.
2014-08-12Enable a command's sub-options in single builds.Rob Landley
2014-08-09Parallelize the build. (set CPUS=1 to force single processor build, or ↵Rob Landley
another number to override processor count autodetect.)
2014-08-02Add --help support to single.sh builds.Rob Landley
2014-08-01Add factor.Rob Landley
I was reading http://www.muppetlabs.com/~breadbox/txt/rsa.html and it mentioned "factor" and I noticed it was in coreutils. I'm not sure why it's in coreutils, but it's pretty trivial, so...
2014-07-27Patch from Isaac Dunham to work around the deficiencies in musl's regex ↵Rob Landley
engine (which break building under alpine linux). Musl's regex engine doesn't support \| which changes the behavior of busybox sed, breaks toybox grep... I need to come up with a musl patch, in the meantime here's a workaround.
2014-07-21Have single.sh enable I18N and FLOAT.Rob Landley
2014-07-14Implement -HL for cp.Rob Landley
2014-07-04Cut down from 1000+ file attribute tests to a more manageable number.Rob Landley
2014-07-04I have developed few testsuites for toybox commands -Divya Kothari
1. lsattr/chattr 2. mount 3. chmod 4. pgrep/pkill 5. groupadd 6. groupdel 7. useradd
2014-07-03Have "make test" run tests in testdir/testdir instead of same directory as ↵Rob Landley
command symlinks. (Makes cleanup easier.)
2014-06-28Add fallocate probe for uClibc.Rob Landley
2014-06-26I have developed few testsuite for toybox commands - ls, ln, rm, mv, printf, ↵Divya Kothari
dd, renice.
2014-06-09host needs -lresolvRob Landley
2014-06-08Isaac Dunham also reported that some diff implementations can't handle ↵Rob Landley
nonseekable input, so write to a temporary file instead of <(command). Use trap EXIT to make sure the temporary files get deleted.
2014-06-08Isaac Dunham pointed out that busybox diff only implements unified diffs, ↵Rob Landley
and sent a patch to convert bloatcheck to use that. I tweaked it a bit.
2014-06-08Replace large parenthetical in bloatcheck with a function.Rob Landley
2014-06-01The tests for link and du are attached.Isaac Dunham
2014-06-01cpio: archive more filesIsaac Dunham
While writing tests for cpio, I found that cpio tries to open empty files if they're regular files, and fails to archive them if unreadable. This can be easily avoided, and is not the usual behavior.
2014-05-24Pass the same $CFLAGS to the library probe as the final build, to work with ↵Rob Landley
broken build environments that provide different libraries for --static and dynamic builds.
2014-05-18Teach singleconfig to switch on sub-options of commands it's building.Rob Landley
If we're building a standalone version, it might as well have all the bells and whistles enabled.
2014-05-10Catch duplicate command name (which breaks the build already, but doesn't ↵Rob Landley
identify the culprit).
2014-04-23Add example directory, move hello.c into it, add skeleton.c to demonstrate ↵Rob Landley
more complciated stuff (multiple commands per file, etc), and have genconfig.sh sort backwards so posix is first and example last in menuconfig.
2014-04-23As long as uClibc's still around and requires you to jump through hoops to ↵Rob Landley
get iconv(), probe and build defconfig without it if it's not there.
2014-04-16Probe for the existence of FIFREEZE and make fsfreeze depend on it.Rob Landley
2014-04-15Probes for O_NOFOLLOW that compile and run something aren't compatible with ↵Rob Landley
cross compiling, so just #define it to 0 if it's not in fcntl.h where posix-2008 says.
2014-04-09_mkflags_ had an issue for generating FLAG_xxxx macros for long options.Ashwini Sharma
Only the first __long__ option, without any __short__ option had a proper flag value, rest all were defined to ZERO. Becaus the _flist_ was not moved to the next in this case.
2014-04-07generated/help.h is a lot easier to read with an extra newline between each ↵Rob Landley
help entry.
2014-03-19There are cases when the long options are of the format abc-def. In current ↵Ashwini Sharma
implementation FLAG_xxx macros are generated for long options too. with __-__ sign in the macro, it will generate errors. I am of the opinion that __-__ be converted to '_' for generating the FLAG_xxx macros and be used in the command. This will enable the user to 'abc-def', but be handled like 'abc_def' in code.
2014-03-11Factor out mkpathat.Rob Landley
2014-02-28Fix header file generation to not be confused by empty (but non-NULL) option ↵Rob Landley
string. You shouldn't use "" as an option string because a NULL allows toy_init() to avoid calling the option parsing logic entirely, which lets it drop out when nothing's using it (ala scripts/single.sh builds). That said, init.c is currently using a "" option string and a USE_ macro taking advantage of string concatenation may require a "" option config, so...
2014-02-24Put all FOR_xxx blocks after all CLEANUP_xxx in generated/flags.h so the ↵Rob Landley
usages don't have to be in alphabetical order.
2014-02-23CLEANUP transitions require all the generated/flags.h stanzas always be ↵Rob Landley
present (even for commands disabled in the config) to avoid undefined symbol errors referencing FLAG_ macros.
2014-02-21Update status page.Rob Landley
2014-02-16Make CLEANUP transitions work, so multiple NEWTOY() can exist in the same file.Rob Landley
Don't #undefine TT in the CLEANUP blocks of generated/flags.h, and #ifdef around the other TT definition. That way you can put a union at the start of your GLOBALS() with the arguments filled out by option parsing, and then have multiple main() functions with different argumetns and different FLAG_x macros, while sharing infrastructure that's not under lib.
2014-02-16Various cleanups found by Tom Sparrow's static analysis.Rob Landley
2014-02-08Fix segfault with single build of a command with bare longopts.Rob Landley
2014-02-04Use right config for single builds.Rob Landley
2014-01-29More elaborate help text collating logic.Rob Landley
2014-01-20Collate usage: lines in help text.Rob Landley
2014-01-15Help text, collate usage blocks (badly).Rob Landley
2014-01-03Replace python help converter with C implementation.Rob Landley
2013-12-28Cosmetic tweak.Rob Landley
2013-12-23Clean up half-finished blkid.test.Rob Landley
2013-12-19Older python spit --version to stdout, 2.7 does it to stderr. Of course.Rob Landley
2013-12-19Regression test against Ancient Build Environment (Ubuntu 8.04), fixup bit-rot.Rob Landley
2013-12-18Ashwini Sharma added -v, I tweaked it a bit and added a couple test suite ↵Rob Landley
entries.