r8271: make the ejs test scripts directly executable scripts using:
authorAndrew Tridgell <tridge@samba.org>
Sun, 10 Jul 2005 00:26:54 +0000 (00:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:19:28 +0000 (13:19 -0500)
  #!/usr/bin/env smbscript

I'll be interested to see how portable this is in the build farm.

source/script/tests/test_ejs.sh
testprogs/ejs/echo.js [changed mode: 0644->0755]
testprogs/ejs/samr.js [changed mode: 0644->0755]

index 83a16c631b2fd6540540ac23c5309a6d102e426b..3e2a2a788496f944351d9d5b4b490a3c593e7086 100755 (executable)
@@ -17,7 +17,10 @@ incdir=`dirname $0`
 
 SCRIPTDIR=../testprogs/ejs
 
+PATH=bin:$PATH
+export PATH
+
 for f in samr.js echo.js; do
-    testit "$f" bin/smbscript $SCRIPTDIR/$f ncacn_np:$SERVER -U$USERNAME%$PASSWORD || failed=`expr $failed + 1`
+    testit "$f" $SCRIPTDIR/$f ncacn_np:$SERVER -U$USERNAME%$PASSWORD || failed=`expr $failed + 1`
 done
 
old mode 100644 (file)
new mode 100755 (executable)
index 9607466..4f0fc79
@@ -1,3 +1,4 @@
+#!/usr/bin/env smbscript
 /*
        test echo pipe calls from ejs
 */     
old mode 100644 (file)
new mode 100755 (executable)
index 1a1ca50..ec2096b
@@ -1,3 +1,4 @@
+#!/usr/bin/env smbscript
 /*
   test samr calls from ejs
 */