Skip to content

Commit 3255ad2

Browse files
authored
Update multi-target-ci.yml
1 parent bed23b5 commit 3255ad2

1 file changed

Lines changed: 36 additions & 36 deletions

File tree

.github/workflows/multi-target-ci.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -29,63 +29,63 @@ jobs:
2929
javac -cp "lib/antlr4-runtime-4.13.2.jar" -d target/classes @sources.txt
3030
echo "Java compiler built successfully"
3131
32-
- name: List available CDRV test files
32+
- name: List available Coderive test files
3333
run: |
34-
echo "Available CDRV test files:"
35-
find src/main/cdrv -name "*.cdrv" -type f | while read file; do
34+
echo "Available Coderive test files:"
35+
find src/main/cod -name "*.cod" -type f | while read file; do
3636
echo " - $file"
3737
done
38-
echo "Total files: $(find src/main/cdrv -name "*.cdrv" -type f | wc -l)"
38+
echo "Total files: $(find src/main/cod -name "*.cod" -type f | wc -l)"
3939
4040
- name: Test CommandRunner help functionality
4141
run: |
4242
# Test that CommandRunner can be loaded and shows help
4343
echo "Testing help command..."
44-
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cdrv.runner.CommandRunner --help
44+
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cod.runner.CommandRunner --help
4545
echo "CommandRunner help functionality test passed"
4646
47-
- name: Test interpretation on all CDRV files
47+
- name: Test interpretation on all Coderive files
4848
run: |
49-
echo "Testing interpretation on all CDRV files with manual parser..."
50-
find src/main/cdrv -name "*.cdrv" -type f | while read file; do
49+
echo "Testing interpretation on all Coderive files with manual parser..."
50+
find src/main/cod -name "*.cod" -type f | while read file; do
5151
echo "Testing: $file"
52-
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cdrv.runner.CommandRunner "$file" --interpret || echo "Test completed for $file"
52+
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cod.runner.CommandRunner "$file" --interpret || echo "Test completed for $file"
5353
echo "----------------------------------------"
5454
done
5555
echo "All interpretation tests completed"
5656
57-
- name: Test bytecode compilation on all CDRV files
57+
- name: Test bytecode compilation on all Coderive files
5858
run: |
59-
echo "Testing bytecode compilation on all CDRV files..."
60-
find src/main/cdrv -name "*.cdrv" -type f | while read file; do
59+
echo "Testing bytecode compilation on all Coderive files..."
60+
find src/main/cod -name "*.cod" -type f | while read file; do
6161
echo "Testing bytecode compilation: $file"
62-
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cdrv.runner.CommandRunner "$file" --compile-bytecode || echo "Bytecode test completed for $file"
62+
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cod.runner.CommandRunner "$file" --compile-bytecode || echo "Bytecode test completed for $file"
6363
echo "----------------------------------------"
6464
done
6565
echo "All bytecode compilation tests completed"
6666
67-
- name: Test native compilation on all CDRV files
67+
- name: Test native compilation on all Coderive files
6868
run: |
6969
mkdir -p compiled_output
70-
echo "Testing native compilation on all CDRV files..."
71-
find src/main/cdrv -name "*.cdrv" -type f | while read file; do
72-
filename=$(basename "$file" .cdrv)
70+
echo "Testing native compilation on all Coderive files..."
71+
find src/main/cod -name "*.cod" -type f | while read file; do
72+
filename=$(basename "$file" .cod)
7373
output_file="compiled_output/${filename}.s"
7474
echo "Testing native compilation: $file -> $output_file"
75-
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cdrv.runner.CommandRunner "$file" --compile -o "$output_file" || echo "Native compilation test completed for $file"
75+
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cod.runner.CommandRunner "$file" --compile -o "$output_file" || echo "Native compilation test completed for $file"
7676
echo "----------------------------------------"
7777
done
7878
echo "All native compilation tests completed"
7979
80-
- name: Test both compilation modes on all CDRV files
80+
- name: Test both compilation modes on all Coderive files
8181
run: |
8282
mkdir -p compiled_both
83-
echo "Testing both compilation modes on all CDRV files..."
84-
find src/main/cdrv -name "*.cdrv" -type f | while read file; do
85-
filename=$(basename "$file" .cdrv)
83+
echo "Testing both compilation modes on all Coderive files..."
84+
find src/main/cod -name "*.cod" -type f | while read file; do
85+
filename=$(basename "$file" .cod)
8686
output_file="compiled_both/${filename}.s"
8787
echo "Testing both compilation modes: $file -> $output_file"
88-
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cdrv.runner.CommandRunner "$file" --compile-both -o "$output_file" || echo "Both compilation test completed for $file"
88+
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cod.runner.CommandRunner "$file" --compile-both -o "$output_file" || echo "Both compilation test completed for $file"
8989
echo "----------------------------------------"
9090
done
9191
echo "All both compilation tests completed"
@@ -111,38 +111,38 @@ jobs:
111111
fi
112112
done
113113
114-
- name: Test debugging features on sample CDRV files
114+
- name: Test debugging features on sample Coderive files
115115
run: |
116-
echo "Testing debugging features on sample CDRV files..."
116+
echo "Testing debugging features on sample Coderive files..."
117117
# Test on first few files to avoid too much output
118-
find src/main/cdrv -name "*.cdrv" -type f | head -3 | while read file; do
118+
find src/main/cod -name "*.cod" -type f | head -3 | while read file; do
119119
echo "Testing debug features on: $file"
120120
121121
echo " - Testing debug output..."
122-
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cdrv.runner.CommandRunner "$file" --interpret --debug || echo "Debug test completed"
122+
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cod.runner.CommandRunner "$file" --interpret --debug || echo "Debug test completed"
123123
124124
echo " - Testing AST printing..."
125-
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cdrv.runner.CommandRunner "$file" --interpret --print-ast || echo "AST printing test completed"
125+
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cod.runner.CommandRunner "$file" --interpret --print-ast || echo "AST printing test completed"
126126
127127
echo " - Testing linting control..."
128-
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cdrv.runner.CommandRunner "$file" --interpret --no-lint || echo "Linting control test completed"
128+
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cod.runner.CommandRunner "$file" --interpret --no-lint || echo "Linting control test completed"
129129
130130
echo "----------------------------------------"
131131
done
132132
echo "Debugging feature tests completed"
133133
134134
- name: Test parser combination options
135135
run: |
136-
echo "Testing parser combination options on sample CDRV files..."
136+
echo "Testing parser combination options on sample Coderive files..."
137137
# Test on first few files
138-
find src/main/cdrv -name "*.cdrv" -type f | head -2 | while read file; do
138+
find src/main/cod -name "*.cod" -type f | head -2 | while read file; do
139139
echo "Testing combinations on: $file"
140140
141141
echo " - Testing manual parser with bytecode compilation..."
142-
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cdrv.runner.CommandRunner "$file" --manual --compile-bytecode || echo "Manual + bytecode test completed"
142+
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cod.runner.CommandRunner "$file" --manual --compile-bytecode || echo "Manual + bytecode test completed"
143143
144144
echo " - Testing trace debugging..."
145-
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cdrv.runner.CommandRunner "$file" --interpret --trace || echo "Trace debugging test completed"
145+
java -cp "target/classes:lib/antlr4-runtime-4.13.2.jar" cod.runner.CommandRunner "$file" --interpret --trace || echo "Trace debugging test completed"
146146
147147
echo "----------------------------------------"
148148
done
@@ -155,11 +155,11 @@ jobs:
155155
156156
- name: Summary
157157
run: |
158-
total_files=$(find src/main/cdrv -name "*.cdrv" -type f | wc -l)
158+
total_files=$(find src/main/cod -name "*.cod" -type f | wc -l)
159159
echo "✅ All CommandRunner tests completed successfully"
160-
echo "✅ Tested $total_files CDRV files from src/main/cdrv/"
160+
echo "✅ Tested $total_files Coderive files from src/main/cod/"
161161
echo "✅ Manual parser mode tested on all files"
162162
echo "✅ All execution modes verified (interpret, bytecode, native, both)"
163163
echo "✅ Compilation pipeline working across all test files"
164164
echo "✅ Debug and analysis features functional"
165-
echo "📝 Using real CDRV test files from repository"
165+
echo "📝 Using real Coderive test files from repository"

0 commit comments

Comments
 (0)