Skip to content

Commit aac4e71

Browse files
committed
Build and run tests
1 parent f16cf98 commit aac4e71

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

.github/workflows/ubuntu.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Ubuntu
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
- name: dependencies
18+
run: sudo apt-get install -y build-essential libboost-test-dev libboost-program-options-dev cmake zlib1g-dev libbz2-dev liblzma-dev libicu-dev uchardet libuchardet-dev libzip-dev wget
19+
- name: cmake
20+
run: |
21+
cmake -E make_directory build
22+
cd build
23+
cmake ..
24+
- name: Compile
25+
working-directory: build
26+
run: cmake --build . -j2
27+
- name: Unit Tests
28+
working-directory: build
29+
run: ctest -j2
30+
# - name: Regression Tests
31+
# working-directory: tests
32+
# run: |
33+
# ../build/bin/warc2text -v --json hello-world.warc.gz > hello-world.json
34+
# shasum -c checksums.txt

tests/checksums.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
28d6c5e68f9e8c3275015ff1bd082fce3382441a hello-world.json

tests/hello-world.json.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"f":"./hello-world.warc.gz","o":907,"s":723,"rs":11,"ps":12,"l":"en","u":"http://iipc.github.io/warc-specifications/primers/web-archive-formats/hello-world.txt","c":"text/plain","ts":"2015-07-08T21:55:13Z","p":"Hello World\n"}

tests/hello-world.warc.gz

2.91 KB
Binary file not shown.

0 commit comments

Comments
 (0)