summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* Support CFLAGS_EXTRA to pass extra user-defined compiler flags (configure)Ivan Maidanski2016-12-101-0/+2
| | | | | | * configure.ac: Add AC_SUBST(CFLAGS_EXTRA). * src/Makefile.am (CFLAGS): Append $(CFLAGS_EXTRA). * tests/Makefile.am (CFLAGS): Likewise.
* Add dd_acquire_read case to test_atomicIvan Maidanski2016-10-251-0/+1
| | | | | | | * tests/Makefile.am (test_atomic_include.h): Add "_dd_acquire_read" test generation. * tests/test_atomic.c [!AO_NO_PTHREADS || !AO_USE_PTHREAD_DEFS] (main): Call test_atomic_dd_acquire_read().
* Fix missing output folder on making auto-generated test files (Automake)Ivan Maidanski2014-10-251-0/+3
| | | | | * tests/Makefile.am (test_atomic_include.h, list_atomic.c, list_atomic.i): Add mkdir for output folder.
* tests: Fix makefile sed rule for list_atomicIvan Maidanski2013-08-171-53/+53
| | | | | * tests/Makefile.am (test_atomic_include.h, list_atomic.c): Replace all occurrences of 'XX' (instead of only the first one) on every line.
* tests: Add char/short/int/AO_double_t and dd_acquire cases to list_atomicIvan Maidanski2013-08-141-1/+38
| | | | | | | * tests/Makefile.am (list_atomic.c): Iterate over XSIZE/XCTYPE (in addition to XX); expand XX also as _dd_acquire_read. * tests/list_atomic.template (XSIZE_list_atomicXX): Define 'val' local variable only if used (needed for AO_double_t case).
* tests: Parameterize list_atomic template with XSIZEIvan Maidanski2013-08-111-8/+8
| | | | | | * tests/Makefile.am (list_atomic.c): Substitute XSIZE/XCTYPE for AO_t. * tests/list_atomic.template (list_atomicXX): Parameterize with XSIZE and XCTYPE (except for AO_nop and AO_test_and_set).
* list_atomic: Add makefile rule to test list_atomic.template syntaxIvan Maidanski2013-08-111-3/+7
| | | | | | | | | | | | | | | | | * tests/Makefile.am (BUILT_SOURCES, CLEANFILES): Add "list_atomic.o". * tests/Makefile.am (list_atomic.o): New rule (to verify list_atomic.c is valid C code). * tests/list_atomic.template (list_atomicXX): Use "volatile" for "val" local variable. * tests/list_atomic.template (list_atomicXX): Define "oldval", "newval", "ts" and "incr" local variables only if used; cast string literals to void (to prevent compiler warnings). * tests/list_atomic.template (list_atomicXX): Use AO_t type for "incr" local variable instead of C long type. * tests/list_atomic.template (list_atomicXX): Define "oldval", "newval", "incr" as statitc local variables, and remove explicit initialization to zero (to void problems with initialization of these variables for AO_double_t case if the latter is a struct).
* Fix configure for mingw-w64/32.Ivan Maidanski2011-09-211-13/+15
| | | | | | | | | | | | | | * configure.ac (PICFLAG, THREADDLLIBS): Define as empty for MinGW. * configure.ac (have_pthreads): New definition (set to true unless MinGW). * configure.ac (HAVE_PTHREAD_H): New AM conditional (based on have_pthreads value). * tests/Makefile.am (test_atomic_pthreads_SOURCES, test_atomic_pthreads_CPPFLAGS, test_atomic_pthreads_LDADD): Define only if HAVE_PTHREAD_H. * tests/Makefile.am (TESTS): Don't include test_atomic_pthreads unless HAVE_PTHREAD_H. * tests/Makefile.am (check_PROGRAMS): Define to TESTS value.
* Use libtool for linking but keep the libraries static.Petter Urkedal2011-08-141-6/+8
| | | | | | | | * configure.ac: Use LT_INIT([disable-shared]) instead of AC_PROG_RANLIB. Also, re-enable the m4 macro directory. * Makefile.am (ACLOCAL_AMFLAGS): Add -I m4. * m4/.keep: Create the m4 directory to avoid problems due to the above m4 flag when running autoreconf for the first time.
* Add include flags for test directory.Petter Urkedal2011-08-141-1/+3
| | | | | | * tests/Makefile.am (AM_CPPFLAGS): Include flag for the tests sub-directory is needed when the build directory is different from the source directory.
* Add and adjust include directories.Petter Urkedal2011-08-101-1/+1
| | | | | * src/Makefile.am, tests/Makefile.am: Set compiler include paths to $(top_builddir)/src and $(top_srcdir)/src.
* Rename run_parallel.inc to run_parallel.h;Ivan Maidanski2011-08-091-2/+2
| | | | | | | | | | rename test_atomic.template to test_atomic_include.template. * tests/Makefile.am(EXTRA_DIST): Adjust for run_parallel.h and test_atomic_include.template files. * tests/run_parallel.inc: Rename to tests/run_parallel.h. * test_atomic.template: Rename to test_atomic_include.template. * test_atomic.c, test_malloc.c: Adjust included file name.
* 2011-06-01 Ivan Maidanski <ivmai@mail.ru>ivmai2011-07-251-4/+6
| | | | | | | | | | | | | | | | * configure.ac (_PTHREADS): New template (used for NetBSD). * configure.ac (THREADDLLIBS): New macro. * tests/Makefile.am (test_atomic_LDADD, test_stack_LDADD, test_atomic_pthreads_LDADD, test_malloc_LDADD): Use THREADDLLIBS instead of "-lpthread". * configure: Regenerate. * Makefile.in: Ditto. * doc/Makefile.in: Ditto. * src/Makefile.in: Ditto. * src/atomic_ops/Makefile.in: Ditto. * src/atomic_ops/sysdeps/Makefile.in: Ditto. * src/config.h.in: Ditto. * tests/Makefile.in: Ditto.
* 2011-05-10 Ivan Maidanski <ivmai@mail.ru>ivmai2011-07-251-9/+9
| | | | | | | | | * tests/Makefile.am (EXTRA_DIST): Add list_atomic.c; update comment. * tests/Makefile.am (CLEANFILES): Remove test_atomic_include.h, list_atomic.c. * tests/Makefile.am: Remove trailing spaces at EOLn. * tests/Makefile.in: Regenerate.
* libatomic_ops-1.0 tarball importlibatomic_ops-1_0Ivan Maidanski2011-07-251-0/+51