-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 903 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Run Test
on:
workflow_dispatch:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install dependencies
run: sudo apt-get install flex bison
- name: build
run: |
bison -d 15_A3.y -t
flex -olexer.c 15_A3.l
gcc -o parser 15_A3.tab.c lexer.c 15_A3.c -Werror
- name: bubble sort
run: |
./parser < sample_output_A3/bubble_sort.nc > test.out
diff ./test.out sample_output_A3/bubble_sort.output
- name: corecursive fibonacci
run: |
./parser < sample_output_A3/corecursive_fibonacci.nc > test.out
diff ./test.out sample_output_A3/corecursive_fibonacci.output
- name: error test
run: |
./parser < sample_output_A3/error_test.nc > test.out
diff ./test.out sample_output_A3/error_test.output