From 8a3b71cec89393172a182b82c5e91f58b35685e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 6 Nov 2014 20:38:04 -0500 Subject: [PATCH] jenkins: add the nitester-wrapper script MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- misc/jenkins/nitester-wrapper.sh | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 misc/jenkins/nitester-wrapper.sh diff --git a/misc/jenkins/nitester-wrapper.sh b/misc/jenkins/nitester-wrapper.sh new file mode 100755 index 0000000..2f9e20f --- /dev/null +++ b/misc/jenkins/nitester-wrapper.sh @@ -0,0 +1,47 @@ +#!/bin/bash +# This file is part of NIT ( http://www.nitlanguage.org ). +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# This script is a wrapper for `nitester` which also manages a local repo +# +# The first argument _must_ be the hash of the commit at the head of the +# branch to test. The other arguments are passed on to `nitester`. + +hash=$1 +shift + +set +x + +local_repo=nit/ +remote_repo=privat + +tools_dir=misc/jenkins/ + +cd $local_repo +git clean -fdxq . + +git fetch $remote_repo +git checkout $hash + +# Make nitg and tools +$tools_dir/unitrun.sh "run-make-0initial_make" make + +# Make nitester +$tools_dir/unitrun.sh "run-make-nitester" make -C contrib/nitester/ + +# Run tests +cd tests +mkdir -p out +rm ~/jenkins_xml/*.xml +mpirun -np 30 ../contrib/nitester/bin/nitester $@ -- 1.7.9.5