From aa7b7c5bcc623a4da00f349c54c3465ad26d8709 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Mon, 17 Mar 2025 11:12:10 +0100
Subject: [PATCH] testrun: add exampoles in help page

---
 tests/00_start.php | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/tests/00_start.php b/tests/00_start.php
index 57998bf..d8309aa 100755
--- a/tests/00_start.php
+++ b/tests/00_start.php
@@ -31,6 +31,7 @@ if ($argc > 1) {
 }
 
 if(isset($ARGS['-h']) || isset($ARGS['--help'])){
+    $_self=basename(__FILE__);
     echo "
 This ist the test suite for amcli calls.
 It executes all scripts in this directory. They perform checks for metadata, 
@@ -38,7 +39,7 @@ help, all checks and ini features.
 
  ✨ \e[1mSYNTAX:\e[0m
 
-    ./00_start.php [-b]
+    $_self [-b]
 
  🔷 \e[1mOPTIONS:\e[0m
 
@@ -51,6 +52,13 @@ help, all checks and ini features.
                          $AMCLIBIN
     -l, --list           list filenames of tests
 
+ 👉 \e[1mEXAMPLES:\e[0m
+
+    $_self         Run all tests with php sccript src/amcli.php
+    $_self --bin   Run all tests with compiled binary built_packages/amcli
+    $_self --bin=<FILE>
+                         Run all tests with given binary
+
 ";
     exit(0);
 }
-- 
GitLab