diff options
author | Nils Gillmann <ng0@n0.is> | 2018-05-19 14:43:13 +0000 |
---|---|---|
committer | Nils Gillmann <ng0@n0.is> | 2018-05-19 14:43:13 +0000 |
commit | 6ab60d4920bb3199aee8cd872b930e9e3e808ba7 (patch) | |
tree | 3d761dbf8793a1d2422fbd14667255c7e0292ea4 /contrib/scripts/regression.sh | |
parent | c2f27dfe8218545c327ab49d225a49910347c5c6 (diff) | |
download | gnunet-6ab60d4920bb3199aee8cd872b930e9e3e808ba7.tar.gz gnunet-6ab60d4920bb3199aee8cd872b930e9e3e808ba7.zip |
Restructure contrib folder.
contrib/pogen.sh -> bin/pogen.sh
bootstrap: Use new pogen location and execute it.
contrib/openvpn-tap32: Move to contrib/3rdparty/Windows/openvpn-tap32.
contrib/gnunet-logo*: Move to contrib/branding/logo/
Delete old patches in contrib, predating git.
Move buildbot data to contrib/ci/buildbot,
move docker data to contrib/ci/docker.
Create contrib/conf and populate it with config files found in contrib and bin.
Move gns related data to contrib/gns.
delete contrib/repeat.sh
Move contrib/log.php into contrib/web/log.php.
Create folder contrib/scripts and use it for most scripts in contrib.
Remove trailing whitespace in doc/Makefile.am
Signed-off-by: Nils Gillmann <ng0@n0.is>
Diffstat (limited to 'contrib/scripts/regression.sh')
-rwxr-xr-x | contrib/scripts/regression.sh | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/contrib/scripts/regression.sh b/contrib/scripts/regression.sh new file mode 100755 index 000000000..1f799797a --- /dev/null +++ b/contrib/scripts/regression.sh | |||
@@ -0,0 +1,54 @@ | |||
1 | #!/bin/sh | ||
2 | cd | ||
3 | cd gnunet | ||
4 | svn up > /dev/null | ||
5 | H=`hostname` | ||
6 | echo "================START===================" >> regression.$H | ||
7 | RUN=`date +%0y%0m%0d%0k%0M` | ||
8 | uname -a >> regression.$H | ||
9 | date >> regression.$H | ||
10 | echo "Run $RUN" >> regression.$H | ||
11 | svn up >> regression.$H | ||
12 | export GNUNET_PREFIX=$HOME | ||
13 | export PATH=$HOME/bin:$PATH | ||
14 | ./bootstrap >> regression.$H.$RUN 2>&1 | ||
15 | ./configure --prefix=$HOME --with-extractor=$HOME --with-microhttpd=$HOME >> regression.$H.$RUN 2>&1 | ||
16 | if [ $? != 0 ] | ||
17 | then | ||
18 | echo configure failed >> regression.$H | ||
19 | exit | ||
20 | fi | ||
21 | KEEP=0 | ||
22 | make clean >> regression.$H.$RUN 2>&1 | ||
23 | make install >> regression.$H.$RUN 2>&1 | ||
24 | cd src | ||
25 | for n in `ls --hide "Makefile*"` | ||
26 | do | ||
27 | cd $n | ||
28 | if [ -f Makefile ] | ||
29 | then | ||
30 | make check >> ../regression.$H.$RUN.$n 2>&1 | ||
31 | if [ $? != 0 ] | ||
32 | then | ||
33 | echo Tests for $n failed >> ../regression.$H | ||
34 | echo "--------- Details for $n -----------" >> ../regression.$H | ||
35 | cat regression.$H.$RUN.$n >> ../regression.$H | ||
36 | echo "----- End of Details for $n --------" >> ../regression.$H | ||
37 | KEEP=1 | ||
38 | else | ||
39 | echo Tests for $n succeeded >> ../regression.$H | ||
40 | fi | ||
41 | fi | ||
42 | cd .. | ||
43 | done | ||
44 | echo "================END====================" >> regression.$H | ||
45 | |||
46 | if [ $KEEP == 0] | ||
47 | then | ||
48 | rm regression.$H.$RUN* | ||
49 | rm regression.$H | ||
50 | else | ||
51 | svn add regression.$H > /dev/null | ||
52 | svn commit -m "Regression in tests on $H" regression.$H | ||
53 | fi | ||
54 | |||