[mousetrap/gnome3-wip: 33/240] Add test.sh to run python AND shell tests.



commit 8b4150fb859cd13f43a527908df1a12362c4fb12
Author: Stoney Jackson <dr stoney gmail com>
Date:   Fri May 9 21:21:22 2014 -0400

    Add test.sh to run python AND shell tests.

 README      |   20 ++++++++++++++++++++
 bin/test.sh |    8 ++++++++
 2 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/README b/README
index c1e537e..293c533 100644
--- a/README
+++ b/README
@@ -17,3 +17,23 @@ From the mousetrap project directory:
 * bin/pylint.sh
 * bin/test.py
 * bin/mousetrap.sh
+
+## Developers
+
+### Building the project
+
+    $ bin/build.sh
+
+### Running in place (without installing)
+
+    $ bin/mousetrap.sh
+    
+### Running tests
+
+    $ bin/test.sh
+
+### Checking style
+
+You'll need pylint installed.
+
+    $ bin/pylint.sh
diff --git a/bin/test.sh b/bin/test.sh
new file mode 100755
index 0000000..a30938b
--- /dev/null
+++ b/bin/test.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+test -z "$PROJECT_DIRECTORY" && . "$(dirname "$0")"/lib/environment_up.sh
+cd "$PROJECT_DIRECTORY"
+
+find . -name "test_*.sh" -exec "{}" \;
+bin/test.py
+
+cd -


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]