Skip to contentSkip to conversation

warning fixes and build system changes

cr_tests Nathan Lynch 2 participants 5 messages Feb 11, 2010 – Feb 15, 2010 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi all,

Serge has kindly pulled a pile of -Wall fixes and Makefile changes into the "ntl" branch at git://git.sr71.net/~hallyn/cr_tests.git. The motivation behind this is that building the testsuite with a non-default word size (e.g. 64-bit on most powerpc distributions) is basically impossible with the current set of Makefiles, some of which use CFLAGS improperly or hard-code "gcc". With the changes in this branch, "make CFLAGS=-m64" does the right thing, and the test suite builds cleanly with -Wall and both 32- and 64-bit output.

Patch summaries and overall diffstat below. Please follow up here with any concerns, thanks!

Nathan Lynch (29):
cr_tests/eclone: add USER_CR_DIR to linker search path cr_tests/libcrtest: add declaration for print_exit_status cr_tests/libcrtest: make u64 unsigned long long cr_tests/libfutex: include local header with quotes, not brackets cr_tests/nsexec: fix -Wall warnings cr_tests/libcrtest: fix -Wall warnings etc cr_tests/eclone: fix -Wall warnings
cr_tests/fileio1: fix -Wall warnings cr_tests/filelock1: fix -Wall warnings cr_tests/filelock2: fix -Wall warnings cr_tests/fsetown1: fix -Wall warnings cr_tests/filelease1: fix -Wall warnings cr_tests/filelease2: fix -Wall warnings cr_tests/ptree1: fix -Wall warnings etc cr_tests/pthread1: fix -Wall warnings cr_tests/pthread2: fix -Wall warnings cr_tests/pthread3: fix -Wall warnings cr_tests/pthread4: fix -Wall warnings cr_tests/create-sem: fix -Wall warnings cr_tests/check-mq: include libcrtest.h cr_tests/chrootsleep: fix -Wall warnings cr_tests/userns_ckptme: fix -Wall warnings cr_tests/usertask: fix -Wall warnings cr_tests/userns_deep: fix -Wall warnings cr_tests/simple_deep: fix -Wall warnings cr_tests/epoll: strlen returns size_t cr_tests/pthread: use correct size_t printf conversion
cr_tests: rework build system
cr_tests: remove old Makefiles

 Makefile                  |   50 +++++++++++++++++++++++++++++++----------
 bashckpt/module.mk        |    3 ++
 counterloop/Makefile      |    7 -----
 counterloop/module.mk     |    5 ++++
 eclone/Makefile           |   21 -----------------
 eclone/eclone-1.c         |    8 +++---
 eclone/eclone-2.c         |    8 +++---
 eclone/eclone-3.c         |    8 +++---
 eclone/eclone-4.c         |    8 +++---
 eclone/eclone-5.c         |    8 +++---
 eclone/module.mk          |    9 +++++++
 epoll/Makefile            |   29 ------------------------
 epoll/cycle.c             |    4 +-
 epoll/module.mk           |   11 +++++++++
 epoll/pipe.c              |    4 +-
 epoll/scm.c               |    4 +-
 epoll/sk10k.c             |    4 +-
 fileio/Makefile           |   12 ----------
 fileio/fileio1.c          |    3 ++
 fileio/filelease1.c       |    9 +++++--
 fileio/filelease2.c       |   19 ++++++++++-----
 fileio/filelock1.c        |   16 ++++++++-----
 fileio/filelock2.c        |   29 +++++++++---------------
 fileio/fsetown1.c         |   16 ++++++------
 fileio/module.mk          |   12 ++++++++++
 futex/Makefile            |   44 ------------------------------------
 futex/libfutex/Makefile   |   16 -------------
 futex/libfutex/libfutex.h |    2 +-
 futex/libfutex/module.mk  |   11 +++++++++
 futex/module.mk           |   15 ++++++++++++
 ipc/Makefile              |   18 ---------------
 ipc/check-mq.c            |    2 +
 ipc/create-sem.c          |    5 +++-
 ipc/module.mk             |   10 ++++++++
 libcrtest/Makefile        |   11 ---------
 libcrtest/common.c        |   16 ++++++++++---
 libcrtest/libcrtest.h     |    4 +-
 libcrtest/module.mk       |   11 +++++++++
 ns_exec.c                 |    6 ++--

A message that is not in the archive (sent off-list or not yet received): 1265930227.17626.3313.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/[email protected]

#2 lore raw
Quoted 11 lines · Nathan Lynch

Hi all,

Serge has kindly pulled a pile of -Wall fixes and Makefile changes into the "ntl" branch at git://git.sr71.net/~hallyn/cr_tests.git. The motivation behind this is that building the testsuite with a non-default word size (e.g. 64-bit on most powerpc distributions) is basically impossible with the current set of Makefiles, some of which use CFLAGS improperly or hard-code "gcc". With the changes in this branch, "make CFLAGS=-m64" does the right thing, and the test suite builds cleanly with -Wall and both 32- and 64-bit output.

Quoted 2 lines

Patch summaries and overall diffstat below. Please follow up here with any concerns, thanks!

Mostly compiled and ran fine on my end so I expect to push it to master branch today. The two problems I had resulted from an old userspace.

Thanks for cleaning this up.

-serge

Quoted 71 lines

Nathan Lynch (29):
cr_tests/eclone: add USER_CR_DIR to linker search path cr_tests/libcrtest: add declaration for print_exit_status cr_tests/libcrtest: make u64 unsigned long long cr_tests/libfutex: include local header with quotes, not brackets cr_tests/nsexec: fix -Wall warnings cr_tests/libcrtest: fix -Wall warnings etc cr_tests/eclone: fix -Wall warnings
cr_tests/fileio1: fix -Wall warnings cr_tests/filelock1: fix -Wall warnings cr_tests/filelock2: fix -Wall warnings cr_tests/fsetown1: fix -Wall warnings cr_tests/filelease1: fix -Wall warnings cr_tests/filelease2: fix -Wall warnings cr_tests/ptree1: fix -Wall warnings etc cr_tests/pthread1: fix -Wall warnings cr_tests/pthread2: fix -Wall warnings cr_tests/pthread3: fix -Wall warnings cr_tests/pthread4: fix -Wall warnings cr_tests/create-sem: fix -Wall warnings cr_tests/check-mq: include libcrtest.h cr_tests/chrootsleep: fix -Wall warnings cr_tests/userns_ckptme: fix -Wall warnings cr_tests/usertask: fix -Wall warnings cr_tests/userns_deep: fix -Wall warnings cr_tests/simple_deep: fix -Wall warnings cr_tests/epoll: strlen returns size_t cr_tests/pthread: use correct size_t printf conversion
cr_tests: rework build system
cr_tests: remove old Makefiles

 Makefile                  |   50 +++++++++++++++++++++++++++++++----------
 bashckpt/module.mk        |    3 ++
 counterloop/Makefile      |    7 -----
 counterloop/module.mk     |    5 ++++
 eclone/Makefile           |   21 -----------------
 eclone/eclone-1.c         |    8 +++---
 eclone/eclone-2.c         |    8 +++---
 eclone/eclone-3.c         |    8 +++---
 eclone/eclone-4.c         |    8 +++---
 eclone/eclone-5.c         |    8 +++---
 eclone/module.mk          |    9 +++++++
 epoll/Makefile            |   29 ------------------------
 epoll/cycle.c             |    4 +-
 epoll/module.mk           |   11 +++++++++
 epoll/pipe.c              |    4 +-
 epoll/scm.c               |    4 +-
 epoll/sk10k.c             |    4 +-
 fileio/Makefile           |   12 ----------
 fileio/fileio1.c          |    3 ++
 fileio/filelease1.c       |    9 +++++--
 fileio/filelease2.c       |   19 ++++++++++-----
 fileio/filelock1.c        |   16 ++++++++-----
 fileio/filelock2.c        |   29 +++++++++---------------
 fileio/fsetown1.c         |   16 ++++++------
 fileio/module.mk          |   12 ++++++++++
 futex/Makefile            |   44 ------------------------------------
 futex/libfutex/Makefile   |   16 -------------
 futex/libfutex/libfutex.h |    2 +-
 futex/libfutex/module.mk  |   11 +++++++++
 futex/module.mk           |   15 ++++++++++++
 ipc/Makefile              |   18 ---------------
 ipc/check-mq.c            |    2 +
 ipc/create-sem.c          |    5 +++-
 ipc/module.mk             |   10 ++++++++
 libcrtest/Makefile        |   11 ---------
 libcrtest/common.c        |   16 ++++++++++---
 libcrtest/libcrtest.h     |    4 +-
 libcrtest/module.mk       |   11 +++++++++
 ns_exec.c                 |    6 ++--
#3 lore raw
In reply to a message not in the archive
Quoted 3 lines · Nathan Lynch

Hi all,
Patch summaries and overall diffstat below. Please follow up here with any concerns, thanks!

Was it on purpose that you no longer delete the cr_* directories with the test results on a 'make clean'? If you're concerned about accidentally losing info, then how about adding 'make distclean' to do that?

-serge

A message that is not in the archive (sent off-list or not yet received): 20100215154751.GA2482-r/[email protected]

#5 lore raw
Quoted 4 lines · Serge E. Hallyn

Was it on purpose that you no longer delete the cr_* directories with the test results on a 'make clean'? If you're concerned about accidentally losing info, then how about adding 'make distclean' to do that?

There is a "testclean" target which does this. The changelog notes this change in behavior.

A message that is not in the archive (sent off-list or not yet received): 1266250490.6542.6.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/[email protected]

#7 lore raw
Quoted 9 lines · Nathan Lynch
Quoted 4 lines · Serge E. Hallyn

Was it on purpose that you no longer delete the cr_* directories with the test results on a 'make clean'? If you're concerned about accidentally losing info, then how about adding 'make distclean' to do that?

There is a "testclean" target which does this. The changelog notes this change in behavior.

Oops.

thanks,
-serge