this gives a simple way to run against all the files that we'd
want to check with bash8. Currently clocking in at 300+ errors
(no false pos so far that I see).
Change-Id: Idd83b0bf61029b49bb28ad8b6e6261ecbf927555
| 1 | 1 |
new file mode 100755 |
| ... | ... |
@@ -0,0 +1,29 @@ |
| 0 |
+#!/bin/bash |
|
| 1 |
+# |
|
| 2 |
+# Licensed under the Apache License, Version 2.0 (the "License"); |
|
| 3 |
+# you may not use this file except in compliance with the License. |
|
| 4 |
+# You may obtain a copy of the License at |
|
| 5 |
+# |
|
| 6 |
+# http://www.apache.org/licenses/LICENSE-2.0 |
|
| 7 |
+# |
|
| 8 |
+# Unless required by applicable law or agreed to in writing, software |
|
| 9 |
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
|
| 10 |
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
|
| 11 |
+# License for the specific language governing permissions and limitations |
|
| 12 |
+# under the License. |
|
| 13 |
+# |
|
| 14 |
+# |
|
| 15 |
+# this runs a series of unit tests for devstack to ensure it's functioning |
|
| 16 |
+ |
|
| 17 |
+if [[ -n $@ ]]; then |
|
| 18 |
+ FILES=$@ |
|
| 19 |
+else |
|
| 20 |
+ LIBS=`find lib -type f | grep -v \.md` |
|
| 21 |
+ SCRIPTS=`find . -type f -name \*\.sh` |
|
| 22 |
+ EXTRA="functions" |
|
| 23 |
+ FILES="$SCRIPTS $LIBS $EXTRA" |
|
| 24 |
+fi |
|
| 25 |
+ |
|
| 26 |
+echo "Running bash8..." |
|
| 27 |
+ |
|
| 28 |
+./tools/bash8.py $FILES |