diff --git a/README.md b/README.md index e4d7a6a..a6ead4a 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,21 @@ -# judger-test-collection +# Judger Test Collection -## How to use test collection +This repository is gaining problem test cases for OJ Lab. -As of now, all executables need to be built prior to testing. +## How to use test collection -use GNU make: +As of now, all executables need to be built prior to testing: ```bash -mkdir -p {build,dist} -cmake -B build --install-prefix $(pwd)/dist +mkdir -p build dist +# GNU make +cmake -B build --install-prefix "$(pwd)/dist" +# # Ninja +# cmake -B build --install-prefix $(pwd)/dist -G Ninja . cmake --build build --parallel cmake --install build ``` -or use Ninja: - -```bash -mkdir -p {build,dist} -cmake -B build --install-prefix $(pwd)/dist -G Ninja . -cmake --build build -cmake --install build -``` +Or you should try `./build.sh` to help you do this. -Then you will get all test file on `dist/` - -## Trouble Shooting - -You might get errors like: -`g++: error: unrecognized command line option ‘-std=gnu++20’; did you mean ‘-std=gnu++2a’?` -While running the provided bash in this repository. - -For resolution run the following commands if you are using Ubuntu in Github Codespaces: - -``` sh -sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test -sudo apt install -y g++-11 -# Alternate the priority of g++ version usage -sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100 -``` +Then you will get all test file on `dist/`. diff --git a/build.sh b/build.sh index c201f48..2b06756 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/bin/sh -e -mkdir -p {build,dist} -cmake -B build --install-prefix $(pwd)/dist +mkdir -p build dist +cmake -B build --install-prefix "$(pwd)/dist" cmake --build build --parallel cmake --install build diff --git a/packages/icpc/hello_world/output_validators/interactor-a-plus-b b/packages/icpc/hello_world/output_validators/interactor-a-plus-b deleted file mode 100755 index c237a18..0000000 Binary files a/packages/icpc/hello_world/output_validators/interactor-a-plus-b and /dev/null differ diff --git a/packages/icpc/hello_world/output_validators/ncmp b/packages/icpc/hello_world/output_validators/ncmp deleted file mode 100755 index 8711c86..0000000 Binary files a/packages/icpc/hello_world/output_validators/ncmp and /dev/null differ