1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
tests/test-copy: ones copy nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/ones 2 50 50 a.ra ;\
$(TOOLDIR)/copy a.ra b.ra ;\
$(TOOLDIR)/nrmse -t 0. a.ra b.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-copy-out: ones zeros copy resize nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/ones 2 50 50 o.ra ;\
$(TOOLDIR)/resize -c 0 100 1 100 o.ra o0.ra ;\
$(TOOLDIR)/zeros 2 50 50 o1.ra ;\
$(TOOLDIR)/copy 0 25 1 25 o0.ra o1.ra ;\
$(TOOLDIR)/nrmse -t 0. o1.ra o.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
tests/test-copy-in: ones zeros copy resize nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/ones 2 50 50 o.ra ;\
$(TOOLDIR)/resize -c 0 100 1 100 o.ra o0.ra ;\
$(TOOLDIR)/zeros 2 100 100 o1.ra ;\
$(TOOLDIR)/copy 0 25 1 25 o.ra o1.ra ;\
$(TOOLDIR)/nrmse -t 0. o1.ra o0.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
TESTS += tests/test-copy tests/test-copy-out tests/test-copy-in
|