Skip to content

Commit

Permalink
WT-2336 Add a test validating schema operations via file system call …
Browse files Browse the repository at this point in the history
…monitoring (#3059)

Take advantage of the above to create a maintainable .run file that works
on systems without ftruncate. Use macros to avoid using so many #ifdefs.

When output differences are detected, report the output's line number (or
range of lines numbers we tried to match) to make it easier to diagnose
differences.

Add O_NOATIME to list of predefines to check.  The probe needs to be
compiled -D_GNU_SOURCE on Linux.  Use all probed variables in the symbol
table when looking at strace/dtruss output, as strace uses symbolic flag names.
  • Loading branch information
ddanderson authored and agorrod committed Dec 7, 2016
1 parent e4ee4d9 commit 587be3e
Show file tree
Hide file tree
Showing 6 changed files with 1,102 additions and 2 deletions.
1 change: 1 addition & 0 deletions build_posix/Make.subdirs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ test/packing
test/readonly
test/recovery
test/salvage
test/syscall
test/thread

# Benchmark programs.
Expand Down
4 changes: 2 additions & 2 deletions dist/s_python
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ test -s $t && {
echo '[tab] characters appear in Python scripts:'
cat $t
}
# Check Python coding standards: check for trailing semi-colons.
# Check Python coding standards: check for uncommented trailing semi-colons.
# Don't check too widely, there are third-party tools that fail this test as
# well as scripts in this directory that output C code, and so fail the test.
egrep ';$' `find lang test -name '*.py'`> $t
egrep '^[^#]*;$' `find lang test -name '*.py'`> $t
test -s $t && {
echo 'trailing semi-colons in selected Python code:'
cat $t
Expand Down
7 changes: 7 additions & 0 deletions test/syscall/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/include
LDADD = $(top_builddir)/libwiredtiger.la
AM_LDFLAGS = -static
noinst_PROGRAMS =

test_wt2336_base_SOURCES = wt2336_base/main.c
noinst_PROGRAMS += test_wt2336_base
Loading

0 comments on commit 587be3e

Please sign in to comment.