You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by ro...@apache.org on 2025/11/22 01:25:17 UTC
(axis-axis2-c-core) 01/02: code cleanup
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 <rl...@alphatheory.com>
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