File: TR_makeflow_linker_complex.sh

package info (click to toggle)
cctools 1%3A7.14.5-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 36,956 kB
  • sloc: ansic: 114,614; python: 29,532; cpp: 20,313; sh: 13,675; perl: 4,056; xml: 3,688; makefile: 1,436
file content (37 lines) | stat: -rwxr-xr-x 618 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh

. ../../dttools/test/test_runner_common.sh

out_dir="linker_complex_out"
COMPLEX="/tmp/makeflow_test_complex"

prepare() {
	(
		set -e
		touch "$COMPLEX"path
		mkdir -p "$COMPLEX"/a/b/x
		printf '' > "$COMPLEX"/a/b/x/y
		chmod 777 "$COMPLEX"/a/b/x/y || true
	)
	return $?
}

run() {
	(
		set -e
		cd linker
		../../src/makeflow_analyze -b "$out_dir" complex.mf > tmp 2>&1
		< tmp awk '{print $2}' | sort > tmp2
		diff tmp2 expected/complex.mf
	)
	return $?
}

clean() {
	rm -rf linker/"$out_dir" linker/tmp linker/tmp2 "$COMPLEX" "$COMPLEX"path
	return 0
}

dispatch "$@"

# vim: set noexpandtab tabstop=4: