Commit Graph

27 Commits (master)

Author SHA1 Message Date
Loic Dachary 11dc3fcb82 tests: add minimal encoder/decoder test
Add a test to run with make check to run encoder and decoder to make
sure they work at least in one simple case. It is also useful as a
documentation about how to use them.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-12-15 18:17:18 +01:00
Loic Dachary 1be39b8550 tests: fail if gf_methods is not found
If the gf_methods was not found, the test would silently succeed doing
nothing. Check for existence and fail if it is not in the path.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-12-15 18:17:15 +01:00
Loic Dachary 3785ed2632 decoder/encoder: fix compilation warnings
Resolve compilation warnings about unused variables and function return
values being ignored.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-12-15 12:28:47 +01:00
Loic Dachary 63ffdaad49 decoder: allow for path len > 100 characters
It's not that uncommon to have path longer than 100 characters.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-12-15 12:27:17 +01:00
Loic Dachary c94348f73a remove unused variable in tests
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-03 19:08:53 +02:00
Loic Dachary 4fdbeeebe0 define galois_uninit_field
To free resources allocated by galois_init_default_field.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-03 19:08:44 +02:00
Danny Al-Gaaf 4b6c76c659 Examples/*coder.c: add missing include of unistd.h
Fix warning: implicit declaration of function 'getcwd' is invalid in
C99 [-Wimplicit-function-declaration]

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-22 20:47:50 +02:00
Danny Al-Gaaf bd6cddba8b Examples/reed_sol_time_gf.c: include sys/time.h
Fix warning: implicit declaration of function 'gettimeofday' is
invalid in C99 [-Wimplicit-function-declaration]

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-22 20:44:30 +02:00
Kevin Greenan 80fc5d1d95 Merged in dachary/jerasure/wip-make-check (pull request #16)
run tests with make check
2014-04-03 16:39:03 -07:00
Loic Dachary 81f4bdd6f5 run tests with make check
* Update the README accordingly
* Add the VALGRIND variable to run thru valgrind where possible
* Add the make check files administrative files to .gitignore

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-04-02 18:22:53 +02:00
David Glessner a1f2d201d8 Remove -O3, -fPIC, $(INCLUDES) from AM_CFLAGS.
They aren't needed, and can be harmful if they override user selection.
2014-03-31 21:08:55 -05:00
Loic Dachary 4c82912f67 allow override of GF-Complete directory in test_all_gfs.sh
And document how to run it in the README

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-29 09:29:34 +01:00
David Glessner e79904ea00 This is the squashed pull request from David Glessner, squashed
and reviewed by Kevin Greenan.

Updated README

Allow out-of-source builds. Quiet autogen.sh warnings.

Use AM_CPPFLAGS instead of INCLUDES. Use $(top_srcdir).

Add .gitignore to quiet git status.

Add project URL to AC_INIT.

Stop libtool from compiling files twice.

Have git ignore .deps/.

Don't override user CPPFLAGS.

(PIC options appear to be set already. INCLUDES already included.)

Clean configure.ac.

Make it closer to autoscan output.

Have autotools create INSTALL.

Use AC_MSG_FAILURE if GF-Complete not found.

Run autogen.sh.

(autoconf 2.69, automake 1.14.1, libtool 2.4.2)

Add some .gitignore files.

Fix configure cpuid unknown issue.

Move AX_EXT before AC_CHECK_LIB(gf_complete...) so that
-lgf_complete doesn't cause CPUID conftest compile to fail.

Don't check for internal gf_int.h header.

GF-Complete doesn't install it.

Quiet some autoreconf warnings.

INCLUDES is now AM_CPPFLAGS. Use single-argument AM_INIT_AUTOMAKE.

Remove some AC_REQUIRE whose conftest always failed.

Quiet configure warning.

(ARCH_64 doesn't appear to be used.)

CPUID "unknown" fix from upstream autoconf-archive.

Allow out-of-source builds. Use dependency tracking.

Remove config.h.in~.

Update ax_check_compile_flag.m4 from autoconf-archive.

Add .gitattributes.

Remove autoreconf-generated files.

Remove ACLOCAL_AMFLAGS.

See Automake 1.13 release notes.

Add files for 'make dist'.

Quiet some warnings.

getcwd() in <unistd.h>. Remove some vars.

Make headers compatible with C++.

Quiet some warnings.

Install additional headers in include/jerasure/.

Quiet some configure check internal failures.

Use new AX_REQUIRE_DEFINED instead of AC_REQUIRE, which expands
the macro and causes internal compile failure.

Fix file permissions.

Remove INTEL_SSE compiler defines.

(Can use HAVE_xxx or __xxx__ instead.)

Set default CFLAGS to '-g -O3 -Wall'.

Add more checks from autoscan.

Use AC_CONFIG_AUX_DIR([build-aux]).

Use processor time for timing.

Use clock() instead of gettimeofday().

Use common LDADD in Makefile.am.

Remove pre-autotools makefiles.

Ignore *.a. (Missed earlier.)

Quiet more warnings.

Document need for autoreconf -fi.

Removed README.nd and README.txt so changes don't need to be duplicated.

Remove autogen.sh.

Just use "autoreconf --force --install".
2014-03-28 08:34:46 -07:00
Jim Plank c21f772f11 Fixed some compiler warnings. 2014-02-07 12:12:54 -05:00
Jim Plank 8907dee8f1 Added the user's manual. 2014-01-29 15:56:05 -05:00
Jim Plank be40b4e549 Revision 2.0 is ready for prime time! 2014-01-25 10:55:29 -05:00
Jim Plank 9124ad1382 Ran through all of the examples to make them current. I'll have to
do another sanity-checking pass, and fix multby_2 in the reed_sol code,
but then we're done.
2014-01-24 16:50:41 -05:00
Jim Plank c9f420fdcd Minor typos and stuff. More later. 2014-01-01 15:02:19 -05:00
Kevin Greenan 00a17c0a7a Setup autoconf to work with Jerasure 2013-12-04 23:08:08 -08:00
Kevin Greenan d8c84dcbb9 Added tests for the GF init helper functions in galois.c
Updated the README to explain the GF change procedure.
2013-11-24 13:51:30 -08:00
Kevin Greenan e5170f7072 Error handling fixed in test scripts... 2013-11-23 12:18:29 -08:00
Kevin Greenan 44201cf436 Added new license header for version 2.0
Updated the README (Going to add detail on how to us GF-complete soon)
2013-11-23 12:05:19 -08:00
Kevin Greenan 8d673c08fc Re-org and re-named some stuff... 2013-11-23 10:35:28 -08:00
Kevin Greenan 5eb73fa7d1 Clean-up and use of aligned buffers in Test/
All of the new tests appear to pass.
2013-11-18 22:17:05 -08:00
Kevin Greenan d23dfbc895 Incorporated more of GF-Complete and added some tests... 2013-10-15 08:29:09 -07:00
Jim Plank ee163abb81 Character counting bug. 2013-10-01 13:26:24 -04:00
Jim Plank b5745fa4f1 Adding the current jerasure 1.2A 2013-10-01 13:25:12 -04:00