Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Commit

Permalink
Perf
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed Oct 28, 2023
1 parent 201e989 commit c265d87
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 32 deletions.
41 changes: 11 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/`.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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
Binary file not shown.
Binary file removed packages/icpc/hello_world/output_validators/ncmp
Binary file not shown.

0 comments on commit c265d87

Please sign in to comment.