]>
Commit | Line | Data |
---|---|---|
2d8fb463 WS |
1 | #!/bin/bash |
2 | echo "MSYSTEM: $MSYSTEM" | |
3 | echo "MINGW_CHOST: $MINGW_CHOST" | |
4 | ./bootstrap | |
5 | ./configure --host="$MINGW_CHOST" --disable-static --disable-mmap --disable-tcl --disable-perl --disable-ruby --disable-python --disable-lua --disable-rrdcached --without-libintl-prefix --without-libiconv-prefix | |
917399a9 | 6 | make CFLAGS='-D__USE_MINGW_ANSI_STDIO=1' |
2d8fb463 WS |
7 | |
8 | # The export of TZ=Europe/Zurich in tests/functions does not work under Windows. The timezone needs to be set | |
9 | # for Windows, e.g. using tzutil.exe | |
10 | # The timezone TZ=Europe/Zurich is required for several tests to pass: | |
11 | # modify1,modify2,modify3,modify4,modify5,tune1,tune2 | |
12 | TZ_BAK=$(tzutil.exe //g) | |
13 | echo Current timezone="$TZ_BAK" | |
14 | tzutil.exe //s "W. Europe Standard Time" | |
15 | echo New timezone="$(tzutil.exe //g)" | |
16 | ||
17 | # Set first day of week to Sunday. This is required for test "rpn2" | |
18 | # 0 ... Monday, 6 ... Sunday | |
19 | iFirstDayOfWeek_key=$(reg query "HKEY_CURRENT_USER\Control Panel\International" //v iFirstDayOfWeek) | |
20 | iFirstDayOfWeek_BAK="${iFirstDayOfWeek_key//[!0-9]/}" | |
21 | echo Current iFirstDayOfWeek="$iFirstDayOfWeek_BAK" | |
22 | reg add "HKEY_CURRENT_USER\Control Panel\International" //t REG_SZ //v iFirstDayOfWeek //d 6 //f | |
23 | ||
24 | make check || : | |
25 | ||
26 | # Restore first day of week | |
27 | reg add "HKEY_CURRENT_USER\Control Panel\International" //t REG_SZ //v iFirstDayOfWeek //d "$iFirstDayOfWeek_BAK" //f | |
28 | ||
29 | # Restore the timezone | |
30 | tzutil.exe //s "$TZ_BAK" | |
31 | echo Restored timezone="$(tzutil.exe //g)" |