Index: /trunk/Ohana/src/opihi/cmd.basic/test/file.sh
===================================================================
--- /trunk/Ohana/src/opihi/cmd.basic/test/file.sh	(revision 6264)
+++ /trunk/Ohana/src/opihi/cmd.basic/test/file.sh	(revision 6264)
@@ -0,0 +1,19 @@
+
+list tests
+ test1
+end
+
+# test that the file test function works at all
+macro test1
+ $PASS = 1
+ exec touch foo.test
+ file foo.test exists
+ if ($exists != 1)
+   $PASS = 0
+ end
+ exec rm -f foo.test
+ file foo.test exists
+ if ($exists != 0)
+   $PASS = 0
+ end
+end
Index: /trunk/Ohana/src/opihi/cmd.basic/test/shell.sh
===================================================================
--- /trunk/Ohana/src/opihi/cmd.basic/test/shell.sh	(revision 6264)
+++ /trunk/Ohana/src/opihi/cmd.basic/test/shell.sh	(revision 6264)
@@ -0,0 +1,35 @@
+
+list tests
+ test1
+ test2
+end
+
+# test that a shell function works at all
+macro test1
+ $PASS = 1
+ exec touch foo.test
+ file foo.test exists
+ if ($exists != 1)
+   $PASS = 0
+ end
+ exec rm -f foo.test
+ file foo.test exists
+ if ($exists != 0)
+   $PASS = 0
+ end
+end
+
+# test that the shell status is returned
+macro test2
+ $PASS = 1
+ exec touch foo.test
+ exec ls foo.test >& /dev/null
+ if ($STATUS != 1)
+   $PASS = 0
+ end
+ exec rm -f foo.test
+ exec ls foo.test >& /dev/null
+ if ($STATUS != 0)
+   $PASS = 0
+ end
+end
