summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Check decode error code during missing frags testsTushar Gohad2014-09-301-3/+5
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* Plugging-in the ISA-L backend... Still needs more documentation and a ↵Kevin Greenan2014-09-291-1/+50
| | | | little clean-up, but the tests are passing...
* Char * backend names are no longer supported. They have been replaced with ↵Eric Lambert2014-09-292-124/+44
| | | | elements of the ec_backend_id_t enum.
* liberasurecode_backend_lookup_id now returns EC_BACKENDS_MAX, asnewapiEric Lambert2014-09-261-4/+4
| | | | | | | opposed to -1, when it can not locate the specified backend (-1 was a non-sensical return value since the function signature called for a type of ec_backend_id_t). NOTE: with this change we now successfully build and tests pass on OS X with clang.
* crc32 checksum now supported (prior to this commit checksum values wereEric Lambert2014-09-251-4/+4
| | | | not being placed into the fragment header).
* Add checksum testcases (but most turned off since we dont seem to beEric Lambert2014-09-251-54/+152
| | | | supporting checksums at the moment).
* A little bit of code clean up based on feedback/reviewsEric Lambert2014-09-151-1/+1
|
* Removed unused timer variables from libec_slapEric Lambert2014-09-111-12/+0
|
* Compile in pedantic mode and fail compilation on warnings. Also cleanup all ↵Eric Lambert2014-09-104-20/+12
| | | | existing warnings.
* added simple test for get_fragment_metadataEric Lambert2014-09-031-0/+59
|
* added argument validation logic and tests forEric Lambert2014-09-021-0/+49
| | | | | | | | liberasure_get_fragment_metadata and liberasurecode_verify_stripe_metadata. In the process removed the liberasure descriptor from the liberasure_get_fragment_metadata function's signature as it was not being used in the function's implementation.
* Merge branch 'newapi' of https://bitbucket.org/tsg-/liberasurecode into newapiEric Lambert2014-09-022-2/+2
|\
| * Add doxygen config. Update README, copyrights.Tushar Gohad2014-09-012-2/+2
| | | | | | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* | Added more tests (most of which test that the "public" functionsEric Lambert2014-09-021-40/+307
|/ | | | | | perform some argument validity checks). Also fixed some bugs exposed by these new tests. NOTE: liberasurecode_test now *requires* that the null provider be loadable by the test (meaning is on LD_LIBRARY_PATH).
* Fix memory corruption (did not alloc enough in the fragments_needed test).Kevin Greenan2014-08-261-7/+7
|
* skipping fragment_needed test as they have exposed some kind of memoryEric Lambert2014-08-261-4/+3
| | | | corruption issue.
* Merge branch 'newapi' of https://bitbucket.org/tsg-/liberasurecode into newapiEric Lambert2014-08-261-12/+158
|\
| * Freeing the memory allocated by the fragments_needed tests.Kevin Greenan2014-08-261-0/+5
| |
| * Added tests for new get_fragments_needed API.Kevin Greenan2014-08-261-12/+153
| | | | | | | | | | | | | | | | I also fixed some bugs in the tests: 1.) The Hamming distances were incorrect 2.) The translation of Hamming distance to tolerated errors was incorrect (num tolerated = HD -1) 3.) Some of the test names were manged (probably a runaway s///g)
* | Added libec_slap testEric Lambert2014-08-263-1/+602
|/
* Backend changes needed to honor "excluded fragments".Kevin Greenan2014-08-211-1/+4
|
* minor clean upEric Lambert2014-08-201-7/+8
|
* Merge branch 'newapi' of https://bitbucket.org/tsg-/liberasurecode into newapiEric Lambert2014-08-201-53/+47
|\ | | | | | | | | Conflicts: test/liberasurecode_test.c
| * Make style consistent (formatting, variable defs)Tushar Gohad2014-08-201-51/+46
| | | | | | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
| * - Cleaned up the documentation in erasurecode.h to ensure that itMark Storer2014-08-181-2/+2
| | | | | | | | | | | | | | | | | | follows a common format and that it accurately reflects the code. - Cleaned up liberasurecode_instance_destroy to ensure that the return code is correct and that it is not trying to free data that has not been removed from the open instances. - Updated the tests to assert that the liberasurecode_instance_destroy method is return correctly.
* | decode test now inspects fragmentsEric Lambert2014-08-201-0/+21
|/
* Updated liberasurecode_supported_checksum_types to accept a pointerMark Storer2014-08-151-1/+3
| | | | | argument that holds the length of the list returned (i.e. the number of supported checksum types).
* Split metadata handling into own routine, add crc32 supportTushar Gohad2014-08-071-0/+14
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* moar testsEric Lambert2014-08-081-17/+55
|
* Added ability to generate coverage data with configure --enable-gcov.Eric Lambert2014-08-081-6/+10
| | | | | Currently only works on Linux (build/tests will run on OS X but coverage data is not generated).
* Dont fail test if backend not available (this behavior was inadvertentlyEric Lambert2014-08-061-5/+16
| | | | removed in a prior commit)
* Added reconstruct test casesEric Lambert2014-08-061-4/+26
|
* Merge branch 'newapi' of https://bitbucket.org/tsg-/liberasurecode into newapiEric Lambert2014-08-051-1/+1
|\
| * Add HD parameter to generic params.Kevin Greenan2014-08-051-1/+1
| |
* | Modified liberasurecode_test to be more "assertive" (use asserts where ever ↵Eric Lambert2014-08-051-80/+80
|/ | | | possible) and added the beginings of a reconstruct test.
* Added decode test for missing mutiple data and parity fragments as wellEric Lambert2014-08-041-3/+92
| | | | as using different backends.
* Updated test_decode_with_missing_data testcase so that it verifiesEric Lambert2014-08-011-2/+14
| | | | | decode works regardless of which single data fragment is missing (initially the test only tested frag 0 missing).
* The memset used to clear the skip list buffer in the create_skip_arrayEric Lambert2014-07-311-7/+9
| | | | | function was not always setting the entire contents of the buffer ... fixed that.
* refactored liberasurecode_test and added a test case which runs decoodeEric Lambert2014-07-311-17/+82
| | | | | with one missing data fragments and another case which runs decode with one missing parity.
* Add liberasurecode_supported_backends API implementationTushar Gohad2014-07-251-6/+10
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* Parity Fragment Headers now contain original data length (without themEric Lambert2014-07-241-3/+50
| | | | | | the fragements_to_string function called by decode bails because of size mismatch). Also update simple encode/decode test to pass all fragments to decode.
* Plugged-in Cauchy RS.Kevin Greenan2014-07-231-0/+14
|
* null_code: First cutTushar Gohad2014-07-221-0/+19
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* flat_xor_hd: Fix xor_desc pointer (encode/decodes tests pass now)Tushar Gohad2014-07-221-1/+1
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* Add testname to individual testsTushar Gohad2014-07-221-2/+5
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* algsig: Move jerasure backend dlopen up a levelTushar Gohad2014-07-223-7/+20
| | | | | | .. also check for errors Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* Commenting out alg_sig_test for now...Kevin Greenan2014-07-221-1/+1
|
* Ripping out galois.[ch] and dynamically pulling the multiplication functon ↵Kevin Greenan2014-07-222-8/+1
| | | | from jerasure
* Fix simple encode_decode unit test and remove debugging prints.Kevin Greenan2014-07-221-1/+1
|
* Enhanced simple_encode_decode test to validate that size contents ofEric Lambert2014-07-211-1/+3
| | | | decoded data equals the size and contents of the original data.