-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_compile.sh
executable file
·52 lines (52 loc) · 1.43 KB
/
test_compile.sh
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
#!/bin/bash
# $Id$
unset LANG
unset ${!LC_*}
numcpus=`grep -Ec '^cpu[0-9]' /proc/stat || echo 1`
i=0
for CONFIG_COLOR_TEXT in y n
do
for CONFIG_FS_REISERFS in y n
do
for CONFIG_FS_XFS in y n
do
for CONFIG_SET_COLORMAP in y n
do
for USE_MD5_PASSWORDS in y n
do
for DEBUG in 0 1 2
do
make clean -j $numcpus &> /dev/null
: $(( i++ ))
echo config: \
CONFIG_COLOR_TEXT=$CONFIG_COLOR_TEXT \
CONFIG_COLOR_TEXT=$CONFIG_COLOR_TEXT \
CONFIG_FS_REISERFS=$CONFIG_FS_REISERFS \
CONFIG_FS_XFS=$CONFIG_FS_XFS \
CONFIG_SET_COLORMAP=$CONFIG_SET_COLORMAP \
USE_MD5_PASSWORDS=$USE_MD5_PASSWORDS \
DEBUG=$DEBUG > log.$i.txt
make \
-j $numcpus \
CONFIG_COLOR_TEXT=$CONFIG_COLOR_TEXT \
CONFIG_COLOR_TEXT=$CONFIG_COLOR_TEXT \
CONFIG_FS_REISERFS=$CONFIG_FS_REISERFS \
CONFIG_FS_XFS=$CONFIG_FS_XFS \
CONFIG_SET_COLORMAP=$CONFIG_SET_COLORMAP \
USE_MD5_PASSWORDS=$USE_MD5_PASSWORDS \
DEBUG=$DEBUG >> log.$i.txt 2>&1
echo $? \
CONFIG_COLOR_TEXT=$CONFIG_COLOR_TEXT \
CONFIG_COLOR_TEXT=$CONFIG_COLOR_TEXT \
CONFIG_FS_REISERFS=$CONFIG_FS_REISERFS \
CONFIG_FS_XFS=$CONFIG_FS_XFS \
CONFIG_SET_COLORMAP=$CONFIG_SET_COLORMAP \
USE_MD5_PASSWORDS=$USE_MD5_PASSWORDS \
DEBUG=$DEBUG
done
done
done
done
done
done
grep -w Error log.*.txt || echo no errors in $i combinations