Fix 'make distcheck'
authorWouter Verhelst <w@uter.be>
Fri, 27 May 2011 15:57:05 +0000 (17:57 +0200)
committerWouter Verhelst <w@uter.be>
Fri, 27 May 2011 16:25:27 +0000 (18:25 +0200)
if we want the test suite to remain working, it has to have all the data
it wants. Ship it with the .tgz so the test suite doesn't have to
generate it (though I suppose we could make it do so if we wanted).

Also, rename the file so it's clear what it's needed for, and so it
isn't accidentally overwritten just because it's the default name.

Makefile.am
integrity-test.tr [new file with mode: 0644]
nbd-tester-client.tr [deleted file]
simple_test

index bded5a0..9deae7f 100644 (file)
@@ -15,7 +15,7 @@ nbd_tester_client_CFLAGS = @CFLAGS@ @GLIB_CFLAGS@
 nbd_trdump_CFLAGS = @CFLAGS@ @GLIB_CFLAGS@
 nbd_server_LDADD = @GLIB_LIBS@
 nbd_tester_client_LDADD = @GLIB_LIBS@
-EXTRA_DIST = gznbd simple_test
+EXTRA_DIST = gznbd simple_test integrity-test.tr
 dist-hook:
        rm -Rf `find $(distdir) -name '.svn' -type d -print`
 cmd:
diff --git a/integrity-test.tr b/integrity-test.tr
new file mode 100644 (file)
index 0000000..5d222aa
Binary files /dev/null and b/integrity-test.tr differ
diff --git a/nbd-tester-client.tr b/nbd-tester-client.tr
deleted file mode 100644 (file)
index 5d222aa..0000000
Binary files a/nbd-tester-client.tr and /dev/null differ
index 44191eb..1ccf84b 100755 (executable)
@@ -145,7 +145,7 @@ EOF
                ./nbd-server -C ${conffile} -p ${pidfile} &
                PID=$!
                sleep 1
-               ./nbd-tester-client localhost -N export1 -i
+               ./nbd-tester-client localhost -N export1 -i -t $(dirname $1)/integrity-test.tr
                retval=$?
        ;;
        *)