aboutsummaryrefslogtreecommitdiff
path: root/src/tests/test.c
AgeCommit message (Collapse)AuthorFilesLines
2023-02-06[test] Include build architecture in test suite bannerMichael Brown1-1/+1
The test suites for the various architectures are often run back to back, and there is currently nothing to visually distinguish one test run from another. Include the architecture name within the self-test startup banner, to aid in visual identification of test results. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2015-03-02[legal] Relicense files under GPL2_OR_LATER_OR_UBDLMichael Brown1-1/+5
Relicense files for which I am the sole author (as identified by util/relicense.pl). Signed-off-by: Michael Brown <mcb30@ipxe.org>
2014-05-02[test] Print out profiling statistics after a successful test runMichael Brown1-0/+2
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-11-27[test] Include failing code within failed test result outputMichael Brown1-3/+5
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-07-20[legal] Update FSF mailing address in GPL licence textsMichael Brown1-1/+2
Suggested-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-03-24[image] Simplify image management commands and internal APIMichael Brown1-5/+1
Remove the name, cmdline, and action parameters from imgdownload() and imgdownload_string(). These functions now simply download and return an image. Add the function imgacquire(), which will interpret a "name or URI string" parameter and return either an existing image or a newly downloaded image. Use imgacquire() to merge similar image-management commands that currently differ only by whether they take the name of an existing image or the URI of a new image to download. For example, "chain" and "imgexec" can now be merged. Extend imgstat and imgfree commands to take an optional list of images. Remove the arbitrary restriction on the length of image names. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-03-18[test] Run self-tests as an embedded imageMichael Brown1-4/+42
Allow iPXE to exit after running self-tests, rather than locking the machine. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-02-27[test] Allow self-tests to be run individuallyMichael Brown1-6/+0
Separate out the list of self-tests from the self-test infrastructure. This allows tests to be run individually. For example: make bin/sha1_test.iso Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-02-19[rng] Add NIST self-tests for Hash_dfMichael Brown1-0/+1
NIST provides a set of known-answer tests for the Hash_DRBG algorithm, which includes known answers for the derivation function Hash_df used as part of Hash_DRBG. Hash_DRBG is not an Approved algorithm for ANS X9.82, but the known answers for Hash_df (which is part of ANS X9.82) can still be used as part of the conformance testing for ANS X9.82. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-01-23[rng] Add NIST self-tests for HMAC_DRBGMichael Brown1-0/+1
NIST provides a set of known-answer tests for the HMAC_DRBG algorithm, which can be used as part of the conformance testing for ANS X9.82. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-01-11[test] Add self-tests for SHA-1 algorithmMichael Brown1-0/+1
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2011-10-14[test] Add self-tests for list manipulation functionsMichael Brown1-0/+3
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2011-10-14[test] Add a basic infrastructure for running self-testsMichael Brown1-0/+139
This self-test mechanism is inspired by Perl's Test::Simple and similar modules. The aim is to encourage the use of self-tests by making it as easy as possible to create self-test code Signed-off-by: Michael Brown <mcb30@ipxe.org>