File: extract.mk

package info (click to toggle)
bart-cuda 0.8.00-2
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm, sid
  • size: 7,752 kB
  • sloc: ansic: 100,267; python: 717; makefile: 576; sh: 564; cpp: 104
file content (23 lines) | stat: -rw-r--r-- 812 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

tests/test-extract: ones extract resize nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/ones 2 10 10 o.ra								;\
	$(TOOLDIR)/resize -c 0 100 1 100 o.ra o0.ra						;\
	$(TOOLDIR)/extract 1 45 55 o0.ra o1.ra							;\
	$(TOOLDIR)/extract 0 45 55 o1.ra o2.ra							;\
	$(TOOLDIR)/nrmse -t 0. o2.ra o.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@


tests/test-extract-multidim: ones extract resize nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/ones 3 10 10 10 o.ra								;\
	$(TOOLDIR)/resize -c 0 100 1 100 2 100 o.ra o0.ra						;\
	$(TOOLDIR)/extract 0 45 55 1 45 55 2 45 55 o0.ra o1.ra							;\
	$(TOOLDIR)/nrmse -t 0. o1.ra o.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

TESTS += tests/test-extract tests/test-extract-multidim