diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index f9b53bb2..7ff67b21 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -47,7 +47,7 @@ jobs: - name: Check cargo build if: ${{ matrix.target != 'wasm32-unknown-unknown' && matrix.target != 'x86_64-pc-windows-gnu' }} run: | - python ./scripts/ci.py ${{ runner.temp }} _ CargoDev 0 ./tests/ci.json + python ./scripts/ci.py ${{ runner.temp }} _ CargoDev 0 ./tests/ci-dev.json - name: Check cargo build --release if: ${{ matrix.target != 'wasm32-unknown-unknown' && matrix.target != 'x86_64-pc-windows-gnu' }} run: | diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 26a7b064..7b888ff6 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -49,7 +49,7 @@ jobs: - name: Check cargo build if: ${{ matrix.target != 'wasm32-unknown-unknown' }} run: | - python3 ./scripts/ci.py ${{ runner.temp }} _ CargoDev 0 ./tests/ci.json + python3 ./scripts/ci.py ${{ runner.temp }} _ CargoDev 0 ./tests/ci-dev.json - name: Check cargo build --release if: ${{ matrix.target != 'wasm32-unknown-unknown' }} run: | diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 1f780b67..3d60dbd1 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -46,7 +46,7 @@ jobs: - name: Check cargo build if: ${{ matrix.target != 'wasm32-unknown-unknown' }} run: | - python .\scripts\ci.py ${{ runner.temp }} _ CargoDev 0 .\tests\ci.json + python .\scripts\ci.py ${{ runner.temp }} _ CargoDev 0 .\tests\ci-dev.json - name: Check cargo build --release if: ${{ matrix.target != 'wasm32-unknown-unknown' }} run: | diff --git a/scripts/ci.py b/scripts/ci.py index 979600fd..b85514b5 100644 --- a/scripts/ci.py +++ b/scripts/ci.py @@ -13,7 +13,7 @@ import sys if __name__ == "__main__": - with open("tests/ci.json", "r") as f: + with open(sys.argv[5], "r") as f: ci_jobs = json.load(f) try: diff --git a/tests/boj_2751_small.in b/tests/boj_2751_small.in new file mode 100644 index 00000000..c4447d2f --- /dev/null +++ b/tests/boj_2751_small.in @@ -0,0 +1,6 @@ +5 +1000000 +-1000000 +999999 +0 +-461 \ No newline at end of file diff --git a/tests/boj_2751_small.out b/tests/boj_2751_small.out new file mode 100644 index 00000000..b89301ac --- /dev/null +++ b/tests/boj_2751_small.out @@ -0,0 +1,5 @@ +-1000000 +-461 +0 +999999 +1000000 \ No newline at end of file diff --git a/tests/ci-dev.json b/tests/ci-dev.json new file mode 100644 index 00000000..65683df4 --- /dev/null +++ b/tests/ci-dev.json @@ -0,0 +1,42 @@ +[ + { + "solution": "./basm/src/solution.rs", + "input": "./tests/boj_1000.in", + "output": "./tests/boj_1000.out" + }, + { + "solution": "./tests/boj_1001.rs", + "input": "./tests/boj_1001.in", + "output": "./tests/boj_1001.out" + }, + { + "solution": "./tests/boj_2587.rs", + "input": "./tests/boj_2587.in", + "output": "./tests/boj_2587.out" + }, + { + "solution": "./tests/boj_2751.rs", + "input": "./tests/boj_2751_small.in", + "output": "./tests/boj_2751_small.out" + }, + { + "solution": "./tests/boj_3745.rs", + "input": "./tests/boj_3745.in", + "output": "./tests/boj_3745.out" + }, + { + "solution": "./tests/boj_14939.rs", + "input": "./tests/boj_14939.in", + "output": "./tests/boj_14939.out" + }, + { + "solution": "./tests/reloc.rs", + "input": "./tests/reloc.in", + "output": "./tests/reloc.out" + }, + { + "solution": "./tests/utf8.rs", + "input": "./tests/utf8.in", + "output": "./tests/utf8.out" + } +] \ No newline at end of file