mirror of
https://github.com/jorenchik/testing-spring-2024.git
synced 2025-10-21 20:10:36 +00:00
commit
f37ea3b636
41
README-lv.md
Normal file
41
README-lv.md
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
# Pārskats
|
||||||
|
|
||||||
|
[](https://github.com/jorenchik/testing-spring-2024/actions/workflows/test.yml)
|
||||||
|
|
||||||
|
## Projekts
|
||||||
|
Šis ir vienkāršs C++ projekts, kas ietver funkciju mūsu kolēģiem
|
||||||
|
testēšanai. Funkcija (t.i., galvenā funkcija un tajā izmantotās apakšfunkcijas)
|
||||||
|
atrodas `lib.cpp`.
|
||||||
|
|
||||||
|
## Papildu bibliotēkas un izpildāmā programma
|
||||||
|
|
||||||
|
Mūsu bibliotēka `prep` ir saistīta ar datu sagatavošanu pirms funkcijas
|
||||||
|
izsaukuma. `test.cpp` ir viens testa fails, kurā būs mūsu kolēģu testi
|
||||||
|
un mūsu pašu izstrādes testi. GTest tiek izmantots testiem.
|
||||||
|
|
||||||
|
## Lietojums
|
||||||
|
|
||||||
|
## Kompilācija
|
||||||
|
|
||||||
|
Kompilācijai operētājsistēmā Linux ir nepieciešams cmake un CXX kompilators (e.g., g++).
|
||||||
|
|
||||||
|
### ninja
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cmake -G ninja -B build
|
||||||
|
cd build
|
||||||
|
ninja
|
||||||
|
./main
|
||||||
|
```
|
||||||
|
|
||||||
|
### Make
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cmake -B build
|
||||||
|
cd build
|
||||||
|
make
|
||||||
|
./main
|
||||||
|
```
|
||||||
|
|
||||||
|
Rezultātā iegūtie binārie faili ir `build/main` - programma un `build/runtests`, lai
|
||||||
|
palaistu punktos norādītos testus iekš `test.cpp`.
|
||||||
@ -1,7 +1,7 @@
|
|||||||
# Overview
|
# Overview
|
||||||
|
|
||||||
[](https://github.com/jorenchik/testing-spring-2024/actions/workflows/test.yml)
|
[](https://github.com/jorenchik/testing-spring-2024/actions/workflows/test.yml)
|
||||||
|
[Latvian](./README-lv.md)
|
||||||
## Project
|
## Project
|
||||||
|
|
||||||
This is a simple C++ project that includes the function for our colleagues to
|
This is a simple C++ project that includes the function for our colleagues to
|
||||||
@ -43,5 +43,5 @@ run tests specified in `test.cpp`.
|
|||||||
|
|
||||||
## TODOS
|
## TODOS
|
||||||
|
|
||||||
- [ ] Translate README in Latvian
|
- [x] Translate README in Latvian
|
||||||
- [ ] Check the compilation process on Windows and add description in README
|
- [ ] Check the compilation process on Windows and add description in README
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user