2011-03-01 22:21:30 +01:00
|
|
|
bin_PROGRAMS = snapraid
|
2011-03-12 23:21:32 +01:00
|
|
|
check_PROGRAMS = mktest
|
2011-03-01 22:21:30 +01:00
|
|
|
|
|
|
|
|
snapraid_SOURCES = \
|
|
|
|
|
snapraid.c \
|
2011-03-06 22:52:50 +01:00
|
|
|
tommy.c \
|
|
|
|
|
util.c \
|
|
|
|
|
elem.c \
|
|
|
|
|
state.c \
|
|
|
|
|
scan.c \
|
|
|
|
|
sync.c \
|
|
|
|
|
check.c \
|
2011-04-08 22:32:40 +02:00
|
|
|
dry.c \
|
2011-12-08 20:37:27 +01:00
|
|
|
dup.c \
|
2011-03-06 22:52:50 +01:00
|
|
|
parity.c \
|
2011-03-20 13:54:05 +01:00
|
|
|
handle.c \
|
2011-04-23 21:38:26 +02:00
|
|
|
fnmatch.c \
|
|
|
|
|
raid.c \
|
|
|
|
|
selftest.c \
|
2011-05-10 19:29:15 +02:00
|
|
|
speed.c \
|
2012-06-20 22:37:19 +02:00
|
|
|
mingw.c \
|
|
|
|
|
os.c
|
2011-03-01 22:21:30 +01:00
|
|
|
|
|
|
|
|
noinst_HEADERS = \
|
|
|
|
|
portable.h \
|
2011-04-23 21:38:26 +02:00
|
|
|
snapraid.h \
|
2011-03-06 22:52:50 +01:00
|
|
|
util.h \
|
|
|
|
|
elem.h \
|
|
|
|
|
state.h \
|
|
|
|
|
parity.h \
|
|
|
|
|
handle.h \
|
2011-04-23 21:38:26 +02:00
|
|
|
murmurhash3.c \
|
2011-03-01 22:21:30 +01:00
|
|
|
tommyarray.h \
|
|
|
|
|
tommychain.h \
|
|
|
|
|
tommyhash.h \
|
|
|
|
|
tommyhashdyn.h \
|
|
|
|
|
tommylist.h \
|
|
|
|
|
tommytypes.h \
|
|
|
|
|
tommyarray.c \
|
|
|
|
|
tommyhash.c \
|
|
|
|
|
tommyhashdyn.c \
|
2011-03-20 13:54:05 +01:00
|
|
|
tommylist.c \
|
2011-04-23 21:38:26 +02:00
|
|
|
fnmatch.h \
|
|
|
|
|
cpu.h \
|
2011-04-24 10:24:05 +02:00
|
|
|
raid.h \
|
2011-05-10 19:29:15 +02:00
|
|
|
tables.h \
|
2012-06-20 22:37:19 +02:00
|
|
|
mingw.h \
|
|
|
|
|
os.h
|
2011-03-01 22:21:30 +01:00
|
|
|
|
2011-03-12 23:21:32 +01:00
|
|
|
mktest_SOURCES = \
|
2011-05-10 19:29:15 +02:00
|
|
|
mktest.c \
|
|
|
|
|
mingw.c
|
2011-03-01 22:21:30 +01:00
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
|
autogen.sh \
|
|
|
|
|
noautomake.sh \
|
2012-09-19 18:30:23 +02:00
|
|
|
README AUTHORS HISTORY INSTALL COPYING TODO TEST INSTALL.windows \
|
2011-03-22 23:21:19 +01:00
|
|
|
snapraid.d snapraid.1 snapraid.txt \
|
2011-10-01 19:18:32 +02:00
|
|
|
test-raid5.conf test-raid6.conf test-raid6-hole.conf \
|
2011-03-12 10:23:42 +01:00
|
|
|
snapraid.conf.example \
|
2011-05-04 19:21:34 +02:00
|
|
|
configure.windows-x86 configure.windows-x64 snapraid.conf.example.windows \
|
2011-03-01 22:21:30 +01:00
|
|
|
acinclude.m4
|
|
|
|
|
|
2011-03-12 10:23:42 +01:00
|
|
|
man_MANS = snapraid.1
|
|
|
|
|
|
2011-03-01 22:21:30 +01:00
|
|
|
clean-local:
|
2011-03-22 23:21:19 +01:00
|
|
|
rm -f valgrind.log callgrind.log cachegrind.log
|
2011-03-01 22:21:30 +01:00
|
|
|
rm -rf test
|
2011-06-11 12:04:15 +02:00
|
|
|
rm -f test.log
|
2011-04-30 10:59:02 +02:00
|
|
|
rm -f *.gcda *.gcno *.gcov
|
|
|
|
|
rm -rf cov
|
|
|
|
|
rm -f lcov.info
|
2011-06-21 23:57:09 +02:00
|
|
|
rm -f gmon.out
|
2011-03-01 22:21:30 +01:00
|
|
|
|
2011-03-06 22:52:50 +01:00
|
|
|
maintainer-clean-local:
|
2011-03-22 23:21:19 +01:00
|
|
|
rm -f snapraid.1 snapraid.txt
|
2011-03-06 22:52:50 +01:00
|
|
|
|
2011-03-16 23:52:10 +01:00
|
|
|
# Automatic testing
|
2011-09-03 11:23:10 +02:00
|
|
|
|
2011-09-20 22:35:15 +02:00
|
|
|
CHECKFLAGS = --test-skip-device
|
2011-08-31 23:33:43 +02:00
|
|
|
CHECKCOUNT = 2000
|
|
|
|
|
CHECKSIZE = 4000
|
2011-03-16 23:52:10 +01:00
|
|
|
|
2011-03-01 22:21:30 +01:00
|
|
|
check-local:
|
|
|
|
|
rm -rf test
|
2011-06-11 12:04:15 +02:00
|
|
|
rm -f test.log
|
2011-03-01 22:21:30 +01:00
|
|
|
mkdir test
|
|
|
|
|
mkdir test/disk1
|
|
|
|
|
mkdir test/disk2
|
|
|
|
|
mkdir test/disk3
|
2011-05-05 21:12:42 +02:00
|
|
|
echo --- Help
|
2011-06-20 20:35:04 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -h
|
2011-03-17 16:17:59 +01:00
|
|
|
echo --- As empty, sync and check
|
2011-06-20 20:35:04 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -v -c $(srcdir)/test-raid6.conf diff
|
2011-12-08 20:37:27 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -v -c $(srcdir)/test-raid6.conf dup
|
2011-06-20 20:35:04 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -v -c $(srcdir)/test-raid6.conf sync
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2012-10-10 23:32:09 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf -a check
|
2011-04-24 10:24:05 +02:00
|
|
|
echo --- Create some files, sync raid6 and check
|
2011-08-31 23:33:43 +02:00
|
|
|
$(TESTENV) ./mktest$(EXEEXT) generate 1 3 $(CHECKCOUNT) $(CHECKSIZE)
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -v -c $(srcdir)/test-raid6.conf diff
|
2011-12-08 20:37:27 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -v -c $(srcdir)/test-raid6.conf dup
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -v -c $(srcdir)/test-raid6.conf sync
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf check
|
2012-10-10 23:32:09 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf -a check
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2012-10-10 23:32:09 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf -a check
|
2013-01-27 16:44:04 +01:00
|
|
|
echo --- Create some more files and empty directories, sync raid5 and check
|
2011-08-31 23:33:43 +02:00
|
|
|
$(TESTENV) ./mktest$(EXEEXT) generate 2 3 $(CHECKCOUNT) $(CHECKSIZE)
|
2013-01-27 16:44:04 +01:00
|
|
|
mkdir test/disk1/empty1
|
|
|
|
|
mkdir test/disk2/empty2
|
|
|
|
|
mkdir test/disk3/empty3a
|
|
|
|
|
mkdir test/disk3/empty3a/emptyinner
|
|
|
|
|
mkdir test/disk3/empty3b
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -v -c $(srcdir)/test-raid5.conf diff
|
2011-12-08 20:37:27 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -v -c $(srcdir)/test-raid5.conf dup
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -v -c $(srcdir)/test-raid5.conf sync
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf check
|
2011-04-24 10:24:05 +02:00
|
|
|
echo --- Extend raid5 to raid6 with fix and check
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid6.conf check 2>> test.log
|
2011-10-01 19:18:32 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf check
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-08 22:32:40 +02:00
|
|
|
echo --- Dry
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf dry
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf dry
|
2011-12-08 20:37:27 +01:00
|
|
|
echo --- Make a hole in the disk array
|
2011-10-01 19:18:32 +02:00
|
|
|
mv test/disk2 test/disk2.old
|
|
|
|
|
mkdir test/disk2
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --force-empty -c $(srcdir)/test-raid6.conf sync
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
|
|
|
|
echo --- Use the with the hole
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6-hole.conf sync
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6-hole.conf check
|
|
|
|
|
rm -r test/disk1/_a
|
|
|
|
|
rm -r test/disk3/_a
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6-hole.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6-hole.conf check
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6-hole.conf dry
|
2011-12-08 20:37:27 +01:00
|
|
|
echo --- Fill the hole with a new disk
|
2011-10-01 19:18:32 +02:00
|
|
|
rm -r test/disk2
|
|
|
|
|
mv test/disk2.old test/disk2
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf sync
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-24 10:24:05 +02:00
|
|
|
echo --- Delete some files, create some new, sync and check
|
2011-03-22 23:21:19 +01:00
|
|
|
rm test/disk1/1*
|
|
|
|
|
rm test/disk2/2*
|
2011-03-30 00:14:43 +02:00
|
|
|
rm test/disk3/3*
|
2011-08-31 23:33:43 +02:00
|
|
|
$(TESTENV) ./mktest$(EXEEXT) generate 3 3 $(CHECKCOUNT) $(CHECKSIZE)
|
2012-02-09 23:17:36 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf sync
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-03-30 00:14:43 +02:00
|
|
|
echo --- Move some files, sync and check
|
|
|
|
|
mv test/disk1/7* test/disk1/_a/
|
|
|
|
|
mv test/disk2/7* test/disk2/_a/
|
|
|
|
|
mv test/disk3/7* test/disk3/_a/
|
2012-02-09 23:17:36 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf sync
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-24 10:24:05 +02:00
|
|
|
echo --- Delete one disk, fix and check with raid5
|
|
|
|
|
rm -r test/disk3
|
|
|
|
|
mkdir test/disk3
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid5.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-10-09 23:41:08 +02:00
|
|
|
echo --- Sync after all the fixes with an empty drive to test --force-empty
|
2012-02-09 23:17:36 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --force-empty -c $(srcdir)/test-raid6.conf sync
|
2011-10-09 23:41:08 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-24 10:24:05 +02:00
|
|
|
echo --- Delete two disks, fix and check with raid6
|
|
|
|
|
rm -r test/disk1
|
|
|
|
|
mkdir test/disk1
|
|
|
|
|
rm -r test/disk2
|
|
|
|
|
mkdir test/disk2
|
2011-10-10 20:42:52 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-unrecoverable -c $(srcdir)/test-raid5.conf fix 2>> test.log
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid6.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf check
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-10-09 23:41:08 +02:00
|
|
|
echo --- Sync after all the fixes with an empty drive to test --find-by-name
|
2012-02-09 23:17:36 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --find-by-name -c $(srcdir)/test-raid6.conf sync
|
2011-10-09 23:41:08 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-03-23 18:54:08 +01:00
|
|
|
echo --- Delete some files and create some new, sync and check in multiple steps
|
|
|
|
|
rm test/disk1/4*
|
|
|
|
|
rm test/disk2/5*
|
2011-03-30 00:14:43 +02:00
|
|
|
rm test/disk3/6*
|
2011-08-31 23:33:43 +02:00
|
|
|
$(TESTENV) ./mktest$(EXEEXT) generate 4 3 $(CHECKCOUNT) $(CHECKSIZE)
|
2012-02-09 23:17:36 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf -t 100 sync
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check 2>> test.log
|
2012-02-09 23:17:36 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf -t 700 sync
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check 2>> test.log
|
2012-02-09 23:17:36 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf -t 1000 sync
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check 2>> test.log
|
2012-02-09 23:17:36 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf sync
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2012-02-09 23:17:36 +01:00
|
|
|
echo --- Abort sync with additions and then delete the new additions
|
2012-10-09 22:54:47 +02:00
|
|
|
cp -pR test/disk1/_a test/disk1/_c
|
|
|
|
|
cp -pR test/disk2/_a test/disk2/_c
|
|
|
|
|
cp -pR test/disk3/_a test/disk3/_c
|
2012-02-09 23:17:36 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-kill-after-sync -c $(srcdir)/test-raid6.conf sync
|
2011-11-14 19:21:33 +01:00
|
|
|
rm -r test/disk1/_c
|
|
|
|
|
rm -r test/disk2/_c
|
|
|
|
|
rm -r test/disk3/_c
|
2012-02-09 23:17:36 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf sync
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2012-02-09 23:17:36 +01:00
|
|
|
echo --- Abort sync late with more additions than deletion and then delete after
|
2012-10-09 22:54:47 +02:00
|
|
|
cp -pR test/disk1/_a test/disk1/_c
|
|
|
|
|
cp -pR test/disk1/_b test/disk1/_d
|
2012-02-09 23:17:36 +01:00
|
|
|
mv test/disk1/_a test/_a
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf --test-kill-after-sync sync
|
|
|
|
|
rm -r test/disk2/_a
|
|
|
|
|
rm -r test/disk2/_b
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
|
|
|
|
-rm -r test/disk1/_a
|
|
|
|
|
rm -r test/disk1/_c
|
|
|
|
|
rm -r test/disk1/_d
|
|
|
|
|
mv test/_a test/disk1/_a
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf sync
|
|
|
|
|
echo --- Abort sync late with more deletions than additions and then delete after
|
2012-10-09 22:54:47 +02:00
|
|
|
cp -pR test/disk1/_a test/disk1/_c
|
2012-02-09 23:17:36 +01:00
|
|
|
mv test/disk1/_a test/_a
|
|
|
|
|
mv test/disk1/_b test/_b
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf --test-kill-after-sync sync
|
|
|
|
|
rm -r test/disk2/_a
|
|
|
|
|
rm -r test/disk2/_b
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
|
|
|
|
-rm -r test/disk1/_a
|
|
|
|
|
-rm -r test/disk1/_b
|
|
|
|
|
rm -r test/disk1/_c
|
|
|
|
|
mv test/_a test/disk1/_a
|
|
|
|
|
mv test/_b test/disk1/_b
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf sync
|
|
|
|
|
echo --- Abort sync early with more additions than deletions and then delete after
|
2012-10-09 22:54:47 +02:00
|
|
|
cp -pR test/disk1/_a test/disk1/_c
|
|
|
|
|
cp -pR test/disk1/_b test/disk1/_d
|
2012-02-09 23:17:36 +01:00
|
|
|
mv test/disk1/_a test/_a
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf -t 1 --test-kill-after-sync sync
|
|
|
|
|
rm -r test/disk2/_a
|
|
|
|
|
rm -r test/disk2/_b
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
|
|
|
|
-rm -r test/disk1/_a
|
|
|
|
|
rm -r test/disk1/_c
|
|
|
|
|
rm -r test/disk1/_d
|
|
|
|
|
mv test/_a test/disk1/_a
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf sync
|
|
|
|
|
echo --- Abort sync early with more deletions than additions and then delete after
|
2012-10-09 22:54:47 +02:00
|
|
|
cp -pR test/disk1/_a test/disk1/_c
|
2012-02-09 23:17:36 +01:00
|
|
|
mv test/disk1/_a test/_a
|
|
|
|
|
mv test/disk1/_b test/_b
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf -t 1 --test-kill-after-sync sync
|
|
|
|
|
rm -r test/disk2/_a
|
|
|
|
|
rm -r test/disk2/_b
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
|
|
|
|
-rm -r test/disk1/_a
|
|
|
|
|
-rm -r test/disk1/_b
|
|
|
|
|
rm -r test/disk1/_c
|
|
|
|
|
mv test/_a test/disk1/_a
|
|
|
|
|
mv test/_b test/disk1/_b
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf sync
|
2011-04-24 10:24:05 +02:00
|
|
|
echo --- Delete some files, fix and check with raid5
|
2011-08-26 14:18:38 +02:00
|
|
|
rm test/disk1/8*
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid5.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-24 10:24:05 +02:00
|
|
|
echo --- Delete some dirs, fix and check with raid5
|
2011-03-22 23:21:19 +01:00
|
|
|
rm -r test/disk2/_a
|
|
|
|
|
rm -r test/disk2/_b
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid5.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2013-01-15 22:58:57 +01:00
|
|
|
echo --- Delete some dirs, fix and check with raid6 using the -d option for each disk
|
2011-04-24 10:24:05 +02:00
|
|
|
rm -r test/disk2/_a
|
|
|
|
|
rm -r test/disk2/_b
|
|
|
|
|
rm -r test/disk3/_a
|
|
|
|
|
rm -r test/disk3/_b
|
2011-10-10 20:42:52 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-unrecoverable -c $(srcdir)/test-raid5.conf fix 2>> test.log
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid6.conf check 2>> test.log
|
2013-01-15 22:58:57 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf -d disk2 fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf -d disk3 fix 2>> test.log
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-24 10:24:05 +02:00
|
|
|
echo --- Delete the parity, fix and check with raid5
|
|
|
|
|
rm test/parity
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-24 10:24:05 +02:00
|
|
|
echo --- Delete the parity and the q-parity, fix and check with raid6
|
2011-03-06 22:52:50 +01:00
|
|
|
rm test/parity
|
2011-04-24 10:24:05 +02:00
|
|
|
rm test/q-parity
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-24 10:24:05 +02:00
|
|
|
echo --- Delete the parity and a disk, fix and check with raid6
|
|
|
|
|
rm test/parity
|
|
|
|
|
rm -r test/disk2/_a
|
|
|
|
|
rm -r test/disk2/_b
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-24 10:24:05 +02:00
|
|
|
echo --- Delete the q-parity and a disk, fix and check with raid6
|
|
|
|
|
rm test/q-parity
|
|
|
|
|
rm -r test/disk3/_a
|
|
|
|
|
rm -r test/disk3/_b
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-24 10:24:05 +02:00
|
|
|
echo --- Corrupt the parity, fix and check with raid5
|
2011-04-28 21:38:25 +02:00
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 1 100 10000 test/parity
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid5.conf check 2>> test.log
|
2012-10-10 23:32:09 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf -a check
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-24 23:36:59 +02:00
|
|
|
echo --- Corrupt the parity and the q-parity, fix and check with raid6
|
2011-04-28 21:38:25 +02:00
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 2 100 10000 test/parity
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 2 100 10000 test/q-parity
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid6.conf check 2>> test.log
|
2012-10-10 23:32:09 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf -a check
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-24 10:24:05 +02:00
|
|
|
echo --- Corrupt some files, fix and check with raid5
|
2011-04-28 21:38:25 +02:00
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 3 1 500 test/disk2/b*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) append 3 500 test/disk2/c*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) truncate 3 500 test/disk2/d*
|
2012-10-10 23:32:09 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid5.conf -a check 2>> test.log
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid5.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid5.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-24 23:36:59 +02:00
|
|
|
echo --- Corrupt some files, fix and check with raid6
|
2011-04-28 21:38:25 +02:00
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 4 1 500 test/disk2/_a/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 4 1 500 test/disk3/_a/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 4 1 500 test/disk2/_a/_b/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 4 1 500 test/disk3/_a/_b/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) append 4 500 test/disk2/_b/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) append 4 500 test/disk3/_b/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) truncate 4 500 test/disk2/_b/_b/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) truncate 4 500 test/disk3/_b/_b/*
|
2012-10-10 23:32:09 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid5.conf -a check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid6.conf -a check 2>> test.log
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-unrecoverable -c $(srcdir)/test-raid5.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid6.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-28 21:38:25 +02:00
|
|
|
echo --- Another time with different values
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 5 2 50 test/disk2/_a/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 5 2 50 test/disk3/_a/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) append 5 500 test/disk2/_a/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) truncate 5 500 test/disk3/_a/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 5 2 50 test/disk2/_a/_b/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 5 2 50 test/disk3/_a/_b/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) append 5 1500 test/disk2/_b/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) append 5 1500 test/disk3/_b/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) truncate 5 1500 test/disk2/_b/_b/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) truncate 5 1500 test/disk3/_b/_b/*
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-unrecoverable -c $(srcdir)/test-raid5.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid6.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-24 23:36:59 +02:00
|
|
|
echo --- Corrupt the parity and some files, fix and check with raid6
|
2011-04-28 21:38:25 +02:00
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 6 100 10000 test/parity
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 6 1 500 test/disk1/_a/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 6 1 500 test/disk1/_a/_b/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) append 6 500 test/disk1/_b/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) truncate 6 500 test/disk1/_b/_b/*
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-unrecoverable -c $(srcdir)/test-raid5.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid6.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-04-28 21:38:25 +02:00
|
|
|
echo --- Corrupt the q-parity and some files, fix and check with raid6
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 7 100 10000 test/q-parity
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 7 1 500 test/disk1/_a/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) damage 7 1 500 test/disk1/_a/_b/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) append 7 500 test/disk1/_b/_a/*
|
|
|
|
|
$(TESTENV) ./mktest$(EXEEXT) truncate 7 500 test/disk1/_b/_b/*
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid5.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self --test-expect-recoverable -c $(srcdir)/test-raid6.conf check 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf fix 2>> test.log
|
|
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-03-30 00:14:43 +02:00
|
|
|
echo --- Sync after all the fixes
|
2012-02-09 23:17:36 +01:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf sync
|
2011-09-03 22:21:45 +02:00
|
|
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-skip-self -c $(srcdir)/test-raid6.conf check
|
2011-03-01 22:21:30 +01:00
|
|
|
echo Success!
|
|
|
|
|
|
2011-03-22 23:21:19 +01:00
|
|
|
# Manual testing
|
|
|
|
|
|
2011-10-01 19:18:32 +02:00
|
|
|
MANUAL = ./snapraid --test-skip-self --test-skip-device -c test-raid5.conf sync
|
2011-03-16 23:52:10 +01:00
|
|
|
|
2011-03-01 22:21:30 +01:00
|
|
|
valgrind:
|
|
|
|
|
valgrind \
|
|
|
|
|
--tool=memcheck \
|
|
|
|
|
--track-origins=yes \
|
|
|
|
|
--read-var-info=yes \
|
|
|
|
|
--leak-check=full \
|
2011-09-03 11:23:10 +02:00
|
|
|
-v $(MANUAL) \
|
2011-03-01 22:21:30 +01:00
|
|
|
2> valgrind.log
|
|
|
|
|
tail valgrind.log
|
|
|
|
|
|
|
|
|
|
callgrind:
|
|
|
|
|
valgrind \
|
|
|
|
|
--tool=callgrind \
|
|
|
|
|
--dump-instr=yes \
|
|
|
|
|
--trace-jump=yes \
|
2011-06-21 23:57:09 +02:00
|
|
|
--collect-systime=yes \
|
2011-09-03 11:23:10 +02:00
|
|
|
-v $(MANUAL) \
|
2011-03-01 22:21:30 +01:00
|
|
|
2> callgrind.log
|
|
|
|
|
tail callgrind.log
|
|
|
|
|
|
|
|
|
|
cachegrind:
|
|
|
|
|
valgrind \
|
|
|
|
|
--tool=cachegrind \
|
2011-09-03 11:23:10 +02:00
|
|
|
-v $(MANUAL) \
|
2011-03-01 22:21:30 +01:00
|
|
|
2> cachegrind.log
|
|
|
|
|
tail cachegrind.log
|
|
|
|
|
|
2011-04-30 10:59:02 +02:00
|
|
|
lcov_reset:
|
|
|
|
|
lcov --directory . -z
|
|
|
|
|
rm -f ./lcov.info
|
|
|
|
|
|
|
|
|
|
lcov_capture:
|
|
|
|
|
lcov --directory . --capture -o lcov.info
|
|
|
|
|
|
|
|
|
|
lcov_html:
|
|
|
|
|
rm -rf ./cov
|
|
|
|
|
mkdir cov
|
|
|
|
|
genhtml -o ./cov lcov.info
|
|
|
|
|
|
2011-03-06 22:52:50 +01:00
|
|
|
# Rules for documentation
|
2011-04-30 10:59:02 +02:00
|
|
|
|
2011-04-28 23:58:31 +02:00
|
|
|
if HAVE_ADVD2
|
2011-03-23 20:58:03 +01:00
|
|
|
snapraid.1 : snapraid.d
|
2011-03-06 22:52:50 +01:00
|
|
|
advd2 man < $(srcdir)/$< > $@
|
|
|
|
|
|
2011-03-23 20:58:03 +01:00
|
|
|
snapraid.txt : snapraid.d
|
2011-05-02 20:31:33 +02:00
|
|
|
advd2 txt < $(srcdir)/$< | utod > $@
|
2011-03-06 22:52:50 +01:00
|
|
|
|
2011-03-23 20:58:03 +01:00
|
|
|
snapraid.html : snapraid.d
|
2011-03-06 22:52:50 +01:00
|
|
|
advd2 html < $(srcdir)/$< > $@
|
|
|
|
|
|
2011-04-23 21:38:26 +02:00
|
|
|
snapraid.hh : snapraid.d
|
|
|
|
|
advd2 frame < $(srcdir)/$< > $@
|
2011-04-28 23:58:31 +02:00
|
|
|
endif
|
2011-04-23 21:38:26 +02:00
|
|
|
|
2011-03-06 22:52:50 +01:00
|
|
|
# Windows distribution
|
|
|
|
|
|
|
|
|
|
DISTWIN = \
|
|
|
|
|
snapraid.txt \
|
2011-03-30 17:47:29 +02:00
|
|
|
snapraid.exe
|
2011-03-06 22:52:50 +01:00
|
|
|
|
2011-04-29 22:07:50 +02:00
|
|
|
distwindows-x86: $(DISTWIN)
|
2011-03-06 22:52:50 +01:00
|
|
|
rm -f $(PACKAGE)-$(VERSION)-windows-x86.zip
|
|
|
|
|
mkdir tmp
|
|
|
|
|
cp $(DISTWIN) tmp
|
2011-05-02 20:31:33 +02:00
|
|
|
utod < snapraid.conf.example.windows > tmp/snapraid.conf.example
|
|
|
|
|
utod < INSTALL.windows > tmp/install.txt
|
|
|
|
|
utod < README > tmp/readme.txt
|
|
|
|
|
utod < AUTHORS > tmp/authors.txt
|
|
|
|
|
utod < HISTORY > tmp/history.txt
|
|
|
|
|
utod < COPYING > tmp/copying.txt
|
|
|
|
|
utod < TODO > tmp/todo.txt
|
2011-03-06 22:52:50 +01:00
|
|
|
cd tmp && zip -r ../$(PACKAGE)-$(VERSION)-windows-x86.zip *
|
|
|
|
|
rm -r tmp
|
|
|
|
|
|
2011-04-29 22:07:50 +02:00
|
|
|
distwindows-x64: $(DISTWIN)
|
|
|
|
|
rm -f $(PACKAGE)-$(VERSION)-windows-x64.zip
|
|
|
|
|
mkdir tmp
|
|
|
|
|
cp $(DISTWIN) tmp
|
2011-05-02 20:31:33 +02:00
|
|
|
utod < snapraid.conf.example.windows > tmp/snapraid.conf.example
|
|
|
|
|
utod < INSTALL.windows > tmp/install.txt
|
|
|
|
|
utod < README > tmp/readme.txt
|
|
|
|
|
utod < AUTHORS > tmp/authors.txt
|
|
|
|
|
utod < HISTORY > tmp/history.txt
|
|
|
|
|
utod < COPYING > tmp/copying.txt
|
|
|
|
|
utod < TODO > tmp/todo.txt
|
2011-04-29 22:07:50 +02:00
|
|
|
cd tmp && zip -r ../$(PACKAGE)-$(VERSION)-windows-x64.zip *
|
|
|
|
|
rm -r tmp
|
|
|
|
|
|