This is an automated email from the ASF dual-hosted git repository.

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit bb14cf9af3c90deb837849e0471a329318ea70bd
Author: Robert Lazarski <[email protected]>
AuthorDate: Fri Nov 21 15:23:03 2025 -1000

    code cleanup
---
 .gitignore       |  2 +-
 run_all_tests.sh | 25 +++++++++++++++----------
 2 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/.gitignore b/.gitignore
index 5b61a2199..483b9106b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -70,7 +70,7 @@ clean
 *.bak
 *.swp
 *.tmp
-wtf.txt
+log.txt
 
 # IDE files
 .vscode/
diff --git a/run_all_tests.sh b/run_all_tests.sh
index e63b12138..6814a51cf 100644
--- a/run_all_tests.sh
+++ b/run_all_tests.sh
@@ -3,54 +3,59 @@
 echo "๐ŸŽฏ Testing Axis2/C Native WSDL2C Generator - Advanced Features"
 echo "============================================================="
 
-cd /home/robert/repos/axis-axis2-c-core/tools/codegen/native/test
+# Get the script directory and navigate to test directory
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+TEST_DIR="${SCRIPT_DIR}/tools/codegen/native/test"
+LOG_FILE="${SCRIPT_DIR}/log.txt"
+
+cd "${TEST_DIR}"
 
 echo "๐Ÿงน Cleaning previous build..."
 make clean
 
 echo "๐Ÿ”จ Building and running comprehensive tests..."
-make check > /home/robert/repos/axis-axis2-c-core/wtf.txt 2>&1
+make check > "${LOG_FILE}" 2>&1
 
 echo ""
 echo "๐Ÿ“Š RESULTS SUMMARY:"
 echo "=================="
 
-if grep -q "Pass Rate:" /home/robert/repos/axis-axis2-c-core/wtf.txt; then
+if grep -q "Pass Rate:" "${LOG_FILE}"; then
     echo "โœ… Tests completed successfully!"
     echo ""
 
     # Show overall results
     echo "๐Ÿ“ˆ Overall Results:"
-    grep -A 10 "Pass Rate:" /home/robert/repos/axis-axis2-c-core/wtf.txt | 
tail -6
+    grep -A 10 "Pass Rate:" "${LOG_FILE}" | tail -6
     echo ""
 
     # Show individual test suite results
     echo "๐Ÿ“‹ Test Suite Breakdown:"
-    grep -B 1 -A 4 "Pass Rate:" /home/robert/repos/axis-axis2-c-core/wtf.txt | 
head -25
+    grep -B 1 -A 4 "Pass Rate:" "${LOG_FILE}" | head -25
 
     echo ""
     echo "๐ŸŽ‰ Advanced Features Status:"
-    if grep -q "test_complex_choice.*PASSED" 
/home/robert/repos/axis-axis2-c-core/wtf.txt; then
+    if grep -q "test_complex_choice.*PASSED" "${LOG_FILE}"; then
         echo "  โœ… Complex Choice Elements: WORKING"
     else
         echo "  โŒ Complex Choice Elements: NEEDS WORK"
     fi
 
-    if grep -q "test_nested_arrays.*PASSED" 
/home/robert/repos/axis-axis2-c-core/wtf.txt; then
+    if grep -q "test_nested_arrays.*PASSED" "${LOG_FILE}"; then
         echo "  โœ… Nested Arrays: WORKING"
     else
         echo "  โŒ Nested Arrays: NEEDS WORK"
     fi
 
-    if grep -q "test_numeric_enumeration.*PASSED" 
/home/robert/repos/axis-axis2-c-core/wtf.txt; then
+    if grep -q "test_numeric_enumeration.*PASSED" "${LOG_FILE}"; then
         echo "  โœ… Numeric Enumerations: WORKING"
     else
         echo "  โŒ Numeric Enumerations: NEEDS WORK"
     fi
 
 else
-    echo "โŒ Tests failed to complete. Check wtf.txt for errors."
+    echo "โŒ Tests failed to complete. Check log.txt for errors."
 fi
 
 echo ""
-echo "๐Ÿ“„ Full details: /home/robert/repos/axis-axis2-c-core/wtf.txt"
\ No newline at end of file
+echo "๐Ÿ“„ Full details: ${LOG_FILE}"
\ No newline at end of file

Reply via email to