summaryrefslogtreecommitdiff
path: root/scripts/test-shell.c
Commit message (Collapse)AuthorAgeFilesLines
* test-shell: Report write failuresRichard Maw2014-11-121-2/+9
|
* Merge branch 'baserock/richardmaw/test-system-integrations'Richard Maw2014-10-241-31/+60
|\ | | | | | | | | | | Reviewed-by: Sam Thursfield Reviewed-by: Pedro Alvarez Reviewed-by: Daniel Silverstone
| * test-shell: Allow to be used in system-integrationsRichard Maw2014-10-241-39/+49
| | | | | | | | | | | | It now works when passed a file, rather than a command to run, and ignores comments and set commands, so the generated preamble is accepted.
| * test-shell: add create file commandRichard Maw2014-10-241-0/+20
|/
* Add echo to the test shellRichard Maw2014-10-081-0/+6
|
* Add test shell for use in staging area testsRichard Maw2014-10-011-0/+144
This is intended to be statically linked, so it can be run in the staging area, without having to build a libc. You shouldn't generally statically link GLibc, because it dynamically links things like NSS modules or locale data, but we only need some very simple stuff, so we can get away with that. There's also potential licensing issues, as GLibc is LGPLv2, so distribution requires providing the ability to re-link against another library, but its use in the test-suite shouldn't count as distribution. There's a couple of commands, the only two needed by the yarn test suite are "copy files" which is like `cp -r . "$DESTDIR"`, and "false", which is for commands to deliberately fail.