|
| 1 | +name: QA Test |
| 2 | +on: |
| 3 | + - pull_request |
| 4 | + - workflow_dispatch |
| 5 | + |
| 6 | +permissions: |
| 7 | + contents: read |
| 8 | + |
| 9 | +jobs: |
| 10 | + build: |
| 11 | + name: Build |
| 12 | + runs-on: ubuntu-20.04 |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v3 |
| 15 | + - name: Build with test flag |
| 16 | + run: | |
| 17 | + make TEST_FLAG=-DTESTING |
| 18 | + ls |
| 19 | + - run: | |
| 20 | + mkdir artifacts |
| 21 | + - uses: actions/upload-artifact@master |
| 22 | + with: |
| 23 | + name: build-artifacts |
| 24 | + path: | |
| 25 | + *.so |
| 26 | + *.so.* |
| 27 | +
|
| 28 | +
|
| 29 | + cpu-test: |
| 30 | + name: CPU Test |
| 31 | + runs-on: ubuntu-20.04 |
| 32 | + needs: build |
| 33 | + steps: |
| 34 | + - uses: actions/checkout@v3 |
| 35 | + - uses: actions/download-artifact@master |
| 36 | + with: |
| 37 | + name: build-artifacts |
| 38 | + - name: Run CPU tests |
| 39 | + run: | |
| 40 | + ./tests/CPU/cpu.sh |
| 41 | + - uses: actions/upload-artifact@master |
| 42 | + if: failure() |
| 43 | + with: |
| 44 | + name: run-artifacts |
| 45 | + path: | |
| 46 | + tests/CPU/cpu_info.orig |
| 47 | + tests/CPU/cpu_info.txt |
| 48 | +
|
| 49 | + vm-test: |
| 50 | + name: VM Test |
| 51 | + runs-on: ubuntu-20.04 |
| 52 | + needs: build |
| 53 | + steps: |
| 54 | + - uses: actions/checkout@v3 |
| 55 | + - uses: actions/download-artifact@master |
| 56 | + with: |
| 57 | + name: build-artifacts |
| 58 | + - name: Run VM tests |
| 59 | + run: | |
| 60 | + ./tests/VM/vm.sh |
| 61 | + - uses: actions/upload-artifact@master |
| 62 | + if: failure() |
| 63 | + with: |
| 64 | + name: run-artifacts |
| 65 | + path: | |
| 66 | + tests/VM/vm_info.orig |
| 67 | + tests/VM/vm_info.txt |
| 68 | +
|
| 69 | + mem-test: |
| 70 | + name: MEM Test |
| 71 | + runs-on: ubuntu-20.04 |
| 72 | + needs: build |
| 73 | + steps: |
| 74 | + - uses: actions/checkout@v3 |
| 75 | + - uses: actions/download-artifact@master |
| 76 | + with: |
| 77 | + name: build-artifacts |
| 78 | + - name: Run MEM tests |
| 79 | + run: | |
| 80 | + ./tests/MEM/mem.sh |
| 81 | + - uses: actions/upload-artifact@master |
| 82 | + if: failure() |
| 83 | + with: |
| 84 | + name: run-artifacts |
| 85 | + path: | |
| 86 | + tests/MEM/mem_info.orig |
| 87 | + tests/MEM/mem_info.txt |
| 88 | + |
| 89 | + fs-test: |
| 90 | + name: FS Test |
| 91 | + runs-on: ubuntu-20.04 |
| 92 | + needs: build |
| 93 | + steps: |
| 94 | + - uses: actions/checkout@v3 |
| 95 | + - uses: actions/download-artifact@master |
| 96 | + with: |
| 97 | + name: build-artifacts |
| 98 | + - name: Run FS tests |
| 99 | + run: | |
| 100 | + ./tests/FS/fs.sh |
| 101 | + - uses: actions/upload-artifact@master |
| 102 | + if: failure() |
| 103 | + with: |
| 104 | + name: run-artifacts |
| 105 | + path: | |
| 106 | + tests/FS/fs_info.orig |
| 107 | + tests/FS/fs_info.txt |
| 108 | +
|
| 109 | + #route-test: |
| 110 | + # name: Route Test |
| 111 | + # runs-on: ubuntu-20.04 |
| 112 | + # needs: build |
| 113 | + # steps: |
| 114 | + # - uses: actions/checkout@v3 |
| 115 | + # - uses: actions/download-artifact@master |
| 116 | + # with: |
| 117 | + # name: build-artifacts |
| 118 | + # - name: Run Route tests |
| 119 | + # run: | |
| 120 | + # ./tests/ROUTE/route.sh |
| 121 | + # - uses: actions/upload-artifact@master |
| 122 | + # if: failure() |
| 123 | + # with: |
| 124 | + # name: run-artifacts |
| 125 | + # path: | |
| 126 | + # tests/ROUTE/route_info.orig |
| 127 | + # tests/ROUTE/route_info.txt |
| 128 | + |
| 129 | + #arp-test: |
| 130 | + # name: ARP Test |
| 131 | + # runs-on: ubuntu-20.04 |
| 132 | + # needs: build |
| 133 | + # steps: |
| 134 | + # - uses: actions/checkout@v3 |
| 135 | + # - uses: actions/download-artifact@master |
| 136 | + # with: |
| 137 | + # name: build-artifacts |
| 138 | + # - name: Run ARP tests |
| 139 | + # run: | |
| 140 | + # ./tests/ARP/arp.sh |
| 141 | + # - uses: actions/upload-artifact@master |
| 142 | + # if: failure() |
| 143 | + # with: |
| 144 | + # name: run-artifacts |
| 145 | + # path: | |
| 146 | + # tests/ARP/arp_info.orig |
| 147 | + # tests/ARP/arp_info.txt |
| 148 | + |
| 149 | + stat-test: |
| 150 | + name: STAT Test |
| 151 | + runs-on: ubuntu-20.04 |
| 152 | + needs: build |
| 153 | + steps: |
| 154 | + - uses: actions/checkout@v3 |
| 155 | + - uses: actions/download-artifact@master |
| 156 | + with: |
| 157 | + name: build-artifacts |
| 158 | + - name: Run STAT tests |
| 159 | + run: | |
| 160 | + ./tests/STAT/stat.sh |
| 161 | + - uses: actions/upload-artifact@master |
| 162 | + if: failure() |
| 163 | + with: |
| 164 | + name: run-artifacts |
| 165 | + path: | |
| 166 | + tests/STAT/stat_info.orig |
| 167 | + tests/STAT/stat_info.txt |
0 commit comments