blob: 3ba7e1023d5021d39e33b14b7b19d5c8165ff99c [file] [log] [blame]
Sean Daguee0f40652013-10-14 17:46:51 -04001#!/bin/bash
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14#
15#
16# this runs a series of unit tests for devstack to ensure it's functioning
17
Dean Troyerd401c842014-03-21 11:48:01 -050018PASSES=""
19FAILURES=""
20
Sean Daguef5d2a5c2014-03-06 13:45:42 -050021# Test that no one is trying to land crazy refs as branches
22
Sean Dague9f20ea12014-11-17 15:14:49 -050023for testfile in tests/test_*.sh; do
24 $testfile
25 if [[ $? -eq 0 ]]; then
26 PASSES="$PASSES $testfile"
27 else
28 FAILURES="$FAILURES $testfile"
29 fi
30done
Sean Daguef5d2a5c2014-03-06 13:45:42 -050031
Sean Dague9f20ea12014-11-17 15:14:49 -050032# Summary display now that all is said and done
Dean Troyerd401c842014-03-21 11:48:01 -050033echo "====================================================================="
34for script in $PASSES; do
35 echo PASS $script
36done
37for script in $FAILURES; do
38 echo FAILED $script
39done
40echo "====================================================================="
41
42if [[ -n "$FAILURES" ]]; then
Sean Daguef5d2a5c2014-03-06 13:45:42 -050043 exit 1
44fi