summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Update test for presence of procps psUwe Kleine-König2015-10-271-1/+1
| | | | | | | | | | | | | Since commit ea6d375e95f9 ("procps: switch from procps to procps-ng") the output of ps --help (on the target) changed which breaks the respective test. I didn't check what happens if this updated test hits an old procps but this hardly matters. Cc: Clemens Gruber <clemens.gruber@pqgruber.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* libptxdisttest.sh: propagate result in test_endMichael Olbrich2013-06-101-0/+2
| | | | | | | | | | | | | | | | | | This way a full test can return its result: test_foo() { test_begin checking "foo" foo result test_end } if test_foo; then # do something that needs foo fi Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* tests/libptxdisttest.sh: remove \n in checkingMichael Grzeschik2011-07-251-1/+1
| | | | | the commit c38c301558a6ccd28d8d4ebb69ec77109dc10194 included one unrelated hunk, which we fix here.
* kwrapper: search for tests in the platform tooMichael Olbrich2011-05-261-0/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* libptxdisttest: wait one second before setting barebox's promptMarc Kleine-Budde2011-03-221-0/+1
| | | | | | Barebox may still be busy printing out bad erase blocks Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* tests: don't specify the flash targetMichael Olbrich2011-02-181-1/+1
| | | | | | | | | let the barebox-env handle this. e.g. update_kernel: update -t kernel -d nand -f $1 Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [flash] use ptxdist functions & cleanuupMichael Olbrich2011-02-181-16/+16
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [[kwrapper] use ptxdist functionsMichael Olbrich2011-02-181-19/+13
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [tests] cleanup error messageMichael Olbrich2011-02-181-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [make_uboot_env] make "ptxdist test make_uboot_env" work correctlyMichael Olbrich2010-11-071-0/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [make_barebox_env] make "ptxdist test make_barebox_env" work correctlyMichael Olbrich2010-11-071-0/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [setenv] use ptxdist macros to source PTXDIST_BOARDSETUPMichael Olbrich2010-11-071-8/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [setenv] use make_*_env to create the full bootloader environmentMichael Olbrich2010-08-172-53/+8
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [make_uboot_env] like make_barebox_env but for U-Boot V1Michael Olbrich2010-08-171-0/+14
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [make_barebox_env] create the config file hereMichael Olbrich2010-08-171-10/+18
| | | | | | Also look for platform specific versions. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [libptxdisttest.kermit] make sure the default barebox prompt is usedMichael Olbrich2010-08-171-0/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [kwrapper] use ckermit from $PATHMichael Olbrich2010-08-171-1/+1
| | | | | | | ${PTXDIST_SYSROOT_HOST}/bin is in $PATH and this way we can add other paths to provide it. E.g. from a base platform Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [libptxdisttest] added report_{begin, end} tag functionsMichael Grzeschik2010-04-281-1/+9
| | | | | | | | | | this patch adds the functions report_begin and report_and into the libptxdisttest.sh test library. This will probably break the output of some older testscripts depending this library Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [libptxdisttest] bugfix: hostfunction return value handlingMichael Grzeschik2010-04-281-3/+5
| | | | | | | | | This patch repairs a bug in the host function of the libptxdisttest.sh which did not correctly handle the return value of the evaluated commandline. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* make environment scripts standalone usableLuotao Fu2010-04-152-4/+24
| | | | | | | | | Calling make_barebox_env and make_uboot_v2_env directly by "ptxdist test ..." used to fail since these scripts depends on some preconditions set by "ptxdist test setenv". Add fix so that these scripts can also be used directly. Signed-off-by: Luotao Fu <l.fu@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] fix exclude pattern while building environmentLuotao Fu2010-03-182-2/+4
| | | | | | | | | The exclude pattern in the scripts for barebox/uboot-v2 environment creation is broken. It will include the config.in template file and all backup files in Emacs or vim style. Fix this so that we won't find things like /env/bin/config.in or /env/config.in~ on the target after running "test setenv" Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
* [ptxdist] fix speed setting in test script libraryLuotao Fu2010-03-181-0/+1
| | | | | | | Setting speed is missing if the serial port is a telnet port. This will fail if the serial port daemon requires speed settings, e.g. moxa. Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
* [ptxdist] relocate setenv config file parsing codeLuotao Fu2010-02-252-25/+24
| | | | | | | | remove the config parsing part from make_barebox_env and put into the main setenv script to make the code more clear. Also updated some comments to make clear how the stuff works. Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
* [ptxdist] add barebox environment directoryLuotao Fu2010-02-242-23/+57
| | | | | | | we now no longer search for barebox environment in u-boot-env in BSP. Instead we have our own environment directory called barebox-env. Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
* [ptxdist] add environment image generation for bareboxLuotao Fu2010-02-242-1/+23
| | | | | | | | ptxdist now can tell if the target has a barebox or u-boot-v2 bootloader running and calls, depending on this information, the proper script to generate a environment image for the target. Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
* [ptxdist] fix environment fetching with bareboxLuotao Fu2010-02-241-1/+7
| | | | Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
* [ptxdist] fix bootloader signature matchingLuotao Fu2010-02-241-9/+18
| | | | | | | | The bootloader signature mapping does noet get along with barebox and had a off-by-one error. Also change the output text from "U-Boot" to more generic "Bootloader" to avoid confusion. Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
* * kermit-wrapper: support a custom libptxdisttest.kermit in the workspaceWolfram Sang2009-07-061-3/+6
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10945 33e552b5-05e3-0310-8538-816dae2090ed
* * libptxdist.kermit: add simple exec-routine for userlandWolfram Sang2009-07-061-0/+16
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10944 33e552b5-05e3-0310-8538-816dae2090ed
* * libptxdist.kermit: initialize uboot-version-variableWolfram Sang2009-07-061-0/+3
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10943 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: use correct wrapper in setenvWolfram Sang2009-05-291-1/+1
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10607 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: allow '-' in env-variablenamesWolfram Sang2009-05-181-2/+2
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10539 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: - add 20yy.m to u-boot v1 signaturesWolfram Sang2009-05-181-9/+10
| | | | | | | - relax match for u-boot v2 results, because of EOL confusions git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10538 33e552b5-05e3-0310-8538-816dae2090ed
* tests/setenv: print errors to user screenWolfram Sang2009-05-181-2/+2
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10536 33e552b5-05e3-0310-8538-816dae2090ed
* make rsh detection more case tolerantJuergen Beisert2009-04-071-1/+2
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10263 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: create directory if not thereRobert Schwebel2009-02-251-0/+2
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9860 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: create parent directories as well, if necessaryRobert Schwebel2009-02-251-2/+2
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9846 33e552b5-05e3-0310-8538-816dae2090ed
* * add platform suffix to uboot env templateLuotao Fu2009-01-291-6/+14
| | | | | | | * make filepaths whitespace safe git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9683 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: let boot wait longer in case of generating keys (interim fix)Wolfram Sang2009-01-291-1/+1
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9677 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: handle weird CRs from U-Boot-V1Wolfram Sang2009-01-291-3/+5
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9676 33e552b5-05e3-0310-8538-816dae2090ed
* libptxdisttest.sh: need eval for more arguments and need to give back stdoutJochen Frieling2009-01-191-1/+2
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9589 33e552b5-05e3-0310-8538-816dae2090ed
* * libptxdisttest.sh: executing commands locally (host) should work this wayJochen Frieling2009-01-191-20/+7
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9588 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: find more errors during flashWolfram Sang2009-01-192-2/+4
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9587 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: do not match substrings in test-scriptsWolfram Sang2009-01-162-2/+2
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9555 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: better error message for the userWolfram Sang2009-01-141-2/+2
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9544 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: improve usefulness of logfileWolfram Sang2009-01-142-1/+2
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9543 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: - add check if connecting to telnet-port was successfulWolfram Sang2009-01-141-1/+2
| | | | | | | - change "All OK!" message as it was said to be senseless and bad English git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9542 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: work around u-boot v1's "repeat last command" annoyanceWolfram Sang2009-01-141-0/+4
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9541 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: wait for own output to appear in input buffer (makes waiting for ↵Wolfram Sang2009-01-092-7/+11
| | | | | | | | | events more robust) * tests: small whitespace removal git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9468 33e552b5-05e3-0310-8538-816dae2090ed
* * tests: fix typo; now reset colors to default not to blackWolfram Sang2008-12-171-1/+1
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9232 33e552b5-05e3-0310-8538-816dae2090ed