File: test_10

package info (click to toggle)
aspectc%2B%2B 0.99%2B1.0pre3-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 66,496 kB
  • ctags: 243,496
  • sloc: cpp: 1,226,050; ansic: 14,778; sh: 1,963; makefile: 741
file content (28 lines) | stat: -rw-r--r-- 705 bytes parent folder | download
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
DESC="Custom Configuration Command"
main(){
	CONFIG_COMMAND="echo '#define test10'"
	if [ ${_TARGET} == "win32" ]; then
		CONFIG_COMMAND="echo #define test10"
	fi;
	
	if  ( ${AGCC} --gen_config  -o test_10.config --config_command "${CONFIG_COMMAND}" );then true;else
		ERR_MSG="Failed executing '${AGCC} --gen_config  -o test_10.config --config_command ${CONFIG_COMMAND}";
		return 0;
	fi;
	
	
	if [ ! -f test_10.config ];then
		ERR_MSG="Puma Configuration File 'test10.config' was not generated";
		return 0;
	fi;
	
	if (  diff -w test_10.config test_10.ref );then true;else
		ERR_MSG="Outputs differ: Configuration file not correctly generated";
		return 0;
	fi;
	
	

	rm -f test_10.config
	return 1;
}