chore: add socket and constants test suites, async file I/O tests, and strcmp tests

This commit is contained in:
2025-11-24 09:00:49 +00:00
parent b6a99ec2c8
commit 5ba90c77f3
6 changed files with 306 additions and 13 deletions
+29 -13
View File
@@ -37,7 +37,9 @@ TESTS = $(TEST_DIR)/unittest.rc \
$(TEST_DIR)/test_stdlib_string.rc \
$(TEST_DIR)/test_stdlib_math.rc \
$(TEST_DIR)/test_stdlib_io.rc \
$(TEST_DIR)/test_stdlib_socket.rc \
$(TEST_DIR)/test_stdlib_async.rc \
$(TEST_DIR)/test_stdlib_constants.rc \
$(TEST_DIR)/test_oop.rc \
$(TEST_DIR)/test_preprocessor.rc \
$(TEST_DIR)/test_eval.rc \
@@ -77,31 +79,37 @@ test: $(TARGET)
@echo " RC LANGUAGE - COMPREHENSIVE TEST SUITE"
@echo "================================================================"
@echo ""
@echo "[1/9] Running Language Features Tests..."
@echo "[1/11] Running Language Features Tests..."
@$(TARGET) $(TEST_DIR)/test_language_features.rc
@echo ""
@echo "[2/9] Running String Standard Library Tests..."
@echo "[2/11] Running String Standard Library Tests..."
@$(TARGET) $(TEST_DIR)/test_stdlib_string.rc
@echo ""
@echo "[3/9] Running Math Standard Library Tests..."
@echo "[3/11] Running Math Standard Library Tests..."
@$(TARGET) $(TEST_DIR)/test_stdlib_math.rc
@echo ""
@echo "[4/9] Running I/O Standard Library Tests..."
@echo "[4/11] Running I/O Standard Library Tests..."
@$(TARGET) $(TEST_DIR)/test_stdlib_io.rc
@echo ""
@echo "[5/9] Running Async Standard Library Tests..."
@echo "[5/11] Running Socket Standard Library Tests..."
@$(TARGET) $(TEST_DIR)/test_stdlib_socket.rc
@echo ""
@echo "[6/11] Running Async Standard Library Tests..."
@$(TARGET) $(TEST_DIR)/test_stdlib_async.rc
@echo ""
@echo "[6/9] Running OOP Features Tests..."
@echo "[7/11] Running Constants Standard Library Tests..."
@$(TARGET) $(TEST_DIR)/test_stdlib_constants.rc
@echo ""
@echo "[8/11] Running OOP Features Tests..."
@$(TARGET) $(TEST_DIR)/test_oop.rc
@echo ""
@echo "[7/9] Running Preprocessor Tests..."
@echo "[9/11] Running Preprocessor Tests..."
@$(TARGET) $(TEST_DIR)/test_preprocessor.rc
@echo ""
@echo "[8/9] Running Eval Function Tests..."
@echo "[10/11] Running Eval Function Tests..."
@$(TARGET) $(TEST_DIR)/test_eval.rc
@echo ""
@echo "[9/9] Running Input Validation Tests..."
@echo "[11/11] Running Input Validation Tests..."
@$(TARGET) $(TEST_DIR)/test_input_validation.rc
@echo ""
@echo "================================================================"
@@ -123,6 +131,9 @@ test-math: $(TARGET)
test-io: $(TARGET)
$(TARGET) $(TEST_DIR)/test_stdlib_io.rc
test-socket: $(TARGET)
$(TARGET) $(TEST_DIR)/test_stdlib_socket.rc
test-async: $(TARGET)
$(TARGET) $(TEST_DIR)/test_stdlib_async.rc
@@ -138,6 +149,9 @@ test-eval: $(TARGET)
test-validation: $(TARGET)
$(TARGET) $(TEST_DIR)/test_input_validation.rc
test-constants: $(TARGET)
$(TARGET) $(TEST_DIR)/test_stdlib_constants.rc
test-robustness: $(TARGET)
$(TARGET) $(TEST_DIR)/test_robustness.rc
@@ -172,16 +186,18 @@ help:
@echo ""
@echo "Usage:"
@echo " make - Build the interpreter"
@echo " make test - Run ALL comprehensive tests (178+ tests)"
@echo " make test - Run ALL comprehensive tests (250+ tests)"
@echo " make test-smoke - Run quick smoke test (31 tests)"
@echo " make clean - Remove all build artifacts"
@echo ""
@echo "Test Categories (organized by src/ structure):"
@echo " make test-language - Language features (63 tests)"
@echo " make test-string - String stdlib (31 tests)"
@echo " make test-string - String stdlib (40 tests)"
@echo " make test-math - Math stdlib (26 tests)"
@echo " make test-io - I/O stdlib (comprehensive)"
@echo " make test-async - Async stdlib (20+ tests)"
@echo " make test-io - I/O stdlib (20 tests)"
@echo " make test-socket - Socket stdlib (19 tests)"
@echo " make test-async - Async stdlib (37 tests)"
@echo " make test-constants - Constants stdlib (13 tests)"
@echo " make test-oop - OOP features (31 tests)"
@echo " make test-preprocessor - Preprocessor (2 tests)"
@echo " make test-eval - Eval function (30 tests)"