~ubuntu-branches/ubuntu/lucid/linux-ntfs/lucid

« back to all changes in this revision

Viewing changes to test/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): David Martínez Moreno
  • Date: 2005-11-08 20:20:23 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20051108202023-dpn4lutm8o0div8g
Tags: 1.12.1-1
* New upstream release (closes: #332930):
  - Fixed lots of memory leaks in the tools.
  - ntfsmount now uses the new API, and it has several fixes.
  - Support journals which have been modified by chkdsk.
  - New API for creating hard links, index handling, high-level creation and
    deletion of files and directories.
  - New utility ntfscmp (make extra) which compares two NTFS volumes and
    tell the differences. It's used for development, debugging, testing, etc.
  - Added robustness to several tools.
  - ntfsclone: fix saving by sectors during --rescue.
  - ntfsmount: Add 'locale' option and change interface to 'ntfsmount device
    mount_point'.
  - Fixed problem with kernel 2.4 and mkntfs.
  - Change ALL utilities to display the libntfs version they are running on.
    This should make debugging easier in the case that people are running
    mismatched utilities/library.
* This new release fixes problems with libfuse 2.4.0 (closes: #336357).
* Fixed a lot of typos in the manpages, kindly submitted by A Costa. Thanks!
  (closes: #336143, #336144, #336145, #336147, #336148).
* Fixed a couple of typos by me.
* debian/control: The SONAME of libntfs was bumped. Created new package
  (libntfs8) and removed the old one.
* debian/copyright: Updated the FSF postal address.
* Added debian/ntfsprogs.links in order to ship mkfs.ntfs and
  mount.ntfs-fuse.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if REALLYSTATIC
 
2
AM_LIBS         = $(top_builddir)/libntfs/.libs/libntfs.a
 
3
AM_LFLAGS       = -static
 
4
STATIC_LINK     = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
 
5
else
 
6
AM_LIBS         = $(top_builddir)/libntfs/libntfs.la
 
7
AM_LFLAGS       = $(all_libraries)
 
8
LIBTOOL_LINK    = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
 
9
endif
 
10
 
 
11
# Workaround to make REALLYSTATIC work with automake 1.5.
 
12
LINK=$(STATIC_LINK) $(LIBTOOL_LINK)
 
13
 
 
14
#TEST_VALGRIND          = valgrind
 
15
 
 
16
bin_PROGRAMS            = runlist
 
17
 
 
18
CLEANFILES              = attr[123].bin frag[123][123][123] pure-[cn][ms] zero
 
19
MAINTAINERCLEANFILES    = Makefile.in
 
20
 
 
21
linux_ntfsincludedir    = -I$(top_srcdir)/include/ntfs
 
22
 
 
23
# Set the include path.
 
24
AM_CPPFLAGS             = -I$(top_srcdir)/include/ntfs $(all_includes)
 
25
 
 
26
runlist_SOURCES         = runlist.c
 
27
runlist_LDADD           = $(AM_LIBS)
 
28
runlist_LDFLAGS         = $(AM_LFLAGS)
 
29
 
 
30
# Extra targets
 
31
 
 
32
libs:
 
33
        (cd ../libntfs && $(MAKE) libs) || exit 1;
 
34
 
 
35
test:   runlist testz testp testf
 
36
 
 
37
testz:  runlist
 
38
        @$(TEST_VALGRIND) ./runlist zero > zero
 
39
        @diff -qs {runlist-data/,}zero
 
40
 
 
41
testp:  runlist
 
42
        @for i in contig noncontig; do                                          \
 
43
                for j in single multi; do                                       \
 
44
                        L1=`echo $$i | cut -b1`;                                \
 
45
                        L2=`echo $$j | cut -b1`;                                \
 
46
                        FILE=pure-$$L1$$L2;                                     \
 
47
                        $(TEST_VALGRIND) ./runlist pure $$i $$j > $$FILE;       \
 
48
                        diff -qs {runlist-data/,}$$FILE;                        \
 
49
                done;                                                           \
 
50
        done
 
51
 
 
52
testf:  runlist
 
53
        @for i in 123 132 213 231 312 321; do                                   \
 
54
                $(TEST_VALGRIND) ./runlist frag $$i > frag$$i;          \
 
55
                diff -qs {runlist-data/,}frag$$i;                               \
 
56
        done
 
57