aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2014-09-20Move testsuite out of scripts/test into its own top level tests directory, ↵Rob Landley
and make ctrl-c kill "make test" more reliably.
2014-09-20Give library probe a progress indicator, and use 150% of detected CPUs to ↵Rob Landley
try to keep large SMP machines busy (each compiler invocation is short so they exit almost as fast as we launch them).
2014-09-11Create a generated/build.sh with a single compiler command line to rebuild ↵Rob Landley
the toybox_unstripped binary using the existing generated/*.h files. This way we can snapshot the generated/*.{h,sh} from a defconfig build into a "shipped" directory or something, and then people can maybe build on crazy crippled environments like pcbsd that haven't got gmake and put bash under /usr/local so none of the #!/scripts can find it. This solves at least part of the "toybox can build with itself but you need to build toybox first to have the tools to run the build scripts" problem. Next up: work out the minimal config to provide the build tools needed to run an actual build. (This should, eventually, include a "make" command if freebsd's kernel is going to refuse to build with netbsd's "make" and we don't just write off the whole thing as crazy. But it probably shouldn't include commands that #include <linux/*.h> if we are trying to make that work.)
2014-09-11Oops, unbreak make.sh.Rob Landley
Clearing out old .o files needs -r now that generated/obj has its own subdirectory. (Works if you make clean between, but shouldn't need it.)
2014-09-09Make tweaks: collate generated/*.o files into their own subdirectory, add ↵Rob Landley
PIPEFAIL for better error reporting, and simpler regex to select toys/*/*.c list based on NEWTOY/OLDTOY macros.
2014-09-04Don't hang for $CPUS=1.Rob Landley
echo prints a newline if it has nothing to print, so wc -l always returns at least 1. Fix: echo -n
2014-09-03Testsuites for toybox command - "tar", "bzcat", "xzcat", "zcat" and "hostname".Divya Kothari
2014-09-03chmod testsuite and link testsuite.Divya Kothari
Chmod ? In this testsuite after change file mode bits, we are comparing file mode with expected ones. One additional "." is coming with modes (actual result). That?s why test cases are getting failed. This patch will remove additional "." from actual result. Link ? Added more test cases.
2014-08-31More parallel build tweaks.Rob Landley
echo "$PENDING" needs the quotes to avoid gluing the lines together, which prevents wc -l or head -n +2 from working right.
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