File: tests.sh

package info (click to toggle)
libreswan 5.2-2.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 81,656 kB
  • sloc: ansic: 129,988; sh: 32,018; xml: 20,646; python: 10,303; makefile: 3,022; javascript: 1,506; sed: 574; yacc: 511; perl: 264; awk: 52
file content (51 lines) | stat: -rwxr-xr-x 748 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh -eux

# A script to put various build sequences through their paces.

j=-j$(grep ^processor /proc/cpuinfo | wc -l)
echo make $j
sleep 1

while read target
do
    case "$target" in
	"#"* ) ;;
	* )
	    log=$(echo mk/make $target | tr '[ ]' '[_]')
	    if test ! -r $log.log
	    then
		rm -rf OBJ.*
		make $j $target | tee $log.tmp
		mv $log.tmp $log.log
	    fi
	    ;;
    esac
done <<EOF
#
# GNU's "Standard 'Makefile' Targets"
#

all
install
# install-strip
uninstall
clean
distclean
#check
#installcheck
#dist
#
# Standard combinations
#
all install clean
all install distclean
#
# Local variants
#
programs
clean-manpages manpages install-manpages clean-manpages
clean-base base install-base clean-base
install_file_list
EOF

exit 0