George Jones 6 hónapja
szülő
commit
82970cc4d2

+ 3 - 0
lib/bash/tests/test1.sh

@@ -0,0 +1,3 @@
+#! /bin/bash
+source ~/lib/bash/bashutils.sh
+echo OK - this should echo

+ 6 - 0
lib/bash/tests/test2.sh

@@ -0,0 +1,6 @@
+#! /bin/bash
+source ~/lib/bash/bashutils.sh
+
+echo OK - this should echo
+cp  asdfasdfads /dev/null
+echo BAD - after bad copy should not be here

+ 6 - 0
lib/bash/tests/test3.sh

@@ -0,0 +1,6 @@
+#! /bin/bash
+source ~/lib/bash/bashutils.sh
+
+echo OK - this should echo
+echo $UNDEFINED
+echo BAD - after undefined, should not be here

+ 4 - 0
lib/bash/tests/tests.sh

@@ -0,0 +1,4 @@
+# ! /bin/bash
+for test in test1 test2 test3; do
+    bash ${test}.sh
+done