summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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.
* Fixed erronous error checks in liberasurecode_testEric Lambert2014-07-211-2/+2
|
* Add encode postprocessing, checksum helpersTushar Gohad2014-07-211-15/+25
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* test: Return value from instance_create() is > 0Tushar Gohad2014-07-181-5/+4
| | | | | | ... or -EBACKENDNOTAVAILABLE if the backend lib is not found Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* Add jerasure test code, ignore errors when backend lib not availableTushar Gohad2014-07-181-53/+56
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* test: Add jerasure_rs_vand basic testTushar Gohad2014-07-181-15/+60
| | | | | | .. can't test with xor at the moment Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* Removed un-used variable in liberasurecode test.Eric Lambert2014-07-181-1/+0
|
* Start fleshing out liberasurecode_test. Still pretty bare-bones, moreEric Lambert2014-07-181-5/+100
| | | | test cases to come in the not too distant future.
* Store args natively in the backend_args (not as a pointer)Tushar Gohad2014-07-161-2/+10
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* Rename flat_xor_3 -> flat_xor_hdTushar Gohad2014-07-161-1/+1
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* Remove required gf-complete dependency from liberasurecode.Kevin Greenan2014-07-161-3/+9
| | | | | | | | NOTE: We need to ensure that any erasure code backend using algebraic signatures *must use* the same exact GF as those used in this library. This usually means same 'w' and primitive polynomial. I plan to make the same change to Jerasure, so it will be compatible.
* Add liberasurecode_encode routineTushar Gohad2014-07-131-0/+3
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* Frontend/backend API split, make EC handle int typeTushar Gohad2014-07-132-7/+3
| | | | | | | .. also introduce a map for backend method stub name to backend library function names Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* xor code backend implementation (WIP)Tushar Gohad2014-07-072-5/+22
| | | | | | | Facing some nasty dlopen() issues when testing with "test/liberasurecode_test" Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* autoconf: Simplify Makefile.am by adding SUBDIRSTushar Gohad2014-07-061-0/+16
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* xor_codes: Use posix_memalignTushar Gohad2014-07-061-50/+12
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* test: Favor '.' over other include pathsTushar Gohad2014-06-302-6/+6
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* Add xor/algsig test codeTushar Gohad2014-06-293-0/+760
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>