#!/bin/bash BUILD_BIN="/home/retoor/projects/tikker/build/bin" echo "=== Tikker CLI Tools Integration Tests ===" echo passed=0 failed=0 # Test 1: Decoder help echo -n "Testing decoder --help... " if $BUILD_BIN/tikker-decoder --help 2>&1 | grep -q "Usage:"; then echo "✓ PASS" ((passed++)) else echo "✗ FAIL" ((failed++)) fi # Test 2: Indexer help echo -n "Testing indexer --help... " if $BUILD_BIN/tikker-indexer --help 2>&1 | grep -q "Usage:"; then echo "✓ PASS" ((passed++)) else echo "✗ FAIL" ((failed++)) fi # Test 3: Aggregator help echo -n "Testing aggregator --help... " if $BUILD_BIN/tikker-aggregator --help 2>&1 | grep -q "Usage:"; then echo "✓ PASS" ((passed++)) else echo "✗ FAIL" ((failed++)) fi # Test 4: Report help echo -n "Testing report --help... " if $BUILD_BIN/tikker-report --help 2>&1 | grep -q "Usage:"; then echo "✓ PASS" ((passed++)) else echo "✗ FAIL" ((failed++)) fi # Test 5: Decoder exists and is executable echo -n "Testing decoder binary... " if [ -x $BUILD_BIN/tikker-decoder ]; then echo "✓ PASS" ((passed++)) else echo "✗ FAIL" ((failed++)) fi # Test 6: Indexer exists and is executable echo -n "Testing indexer binary... " if [ -x $BUILD_BIN/tikker-indexer ]; then echo "✓ PASS" ((passed++)) else echo "✗ FAIL" ((failed++)) fi # Test 7: Aggregator exists and is executable echo -n "Testing aggregator binary... " if [ -x $BUILD_BIN/tikker-aggregator ]; then echo "✓ PASS" ((passed++)) else echo "✗ FAIL" ((failed++)) fi # Test 8: Report exists and is executable echo -n "Testing report binary... " if [ -x $BUILD_BIN/tikker-report ]; then echo "✓ PASS" ((passed++)) else echo "✗ FAIL" ((failed++)) fi echo echo "=== Test Summary ===" echo "Passed: $passed" echo "Failed: $failed" if [ $failed -eq 0 ]; then echo "✓ All tests passed!" exit 0 else echo "✗ Some tests failed" exit 1 fi