summaryrefslogtreecommitdiff
path: root/recipes/mtd/mtd-utils-tests_1.0.0+git.bb
blob: b5240009a75ec63ebb49801f8d5bd0c2e7409f0e (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
require mtd-utils_1.0.0+git.bb

# this can probably be integrated into the main mtd-utils package
# but I did not want to risk breakage -- but would be glad to 
# integrate them if that is best -- cbrake

SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git;tag=${TAG}"

PR = "r1"

S = "${WORKDIR}/git/tests/fs-tests"

FILES_${PN} = "${datadir}/mtd-utils"

do_compile () {
	make || die "Make failed"
}

do_stage () {
}

INHIBIT_PACKAGE_STRIP = "1"

mtd_utils_tests = " \
	help_all.sh \
	run_all.sh \
	integrity/integck \
	simple/ftrunc \
	simple/test_1 \	
	simple/test_2 \	
	stress/stress00.sh \
	stress/stress01.sh \
	stress/atoms/fwrite00 \
	stress/atoms/gcd_hupper \
	stress/atoms/pdfrun \
	stress/atoms/rmdir00 \
	stress/atoms/rndrm00 \
	stress/atoms/rndrm99 \
	stress/atoms/rndwrite00 \
	stress/atoms/stress_1 \
	stress/atoms/stress_2 \
	stress/atoms/stress_3 \
	utils/free_space \
	utils/fstest_monitor \
	"
	
do_install () {
	install -d ${D}${datadir}/mtd-utils/tests
	install -d ${D}${datadir}/mtd-utils/tests/integrity  
	install -d ${D}${datadir}/mtd-utils/tests/simple  
	install -d ${D}${datadir}/mtd-utils/tests/stress
	install -d ${D}${datadir}/mtd-utils/tests/stress/atoms
	install -d ${D}${datadir}/mtd-utils/tests/utils
	for app in ${mtd_utils_tests}; do
		install -m 0755 $app ${D}${datadir}/mtd-utils/tests/$app
	done
}