Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
siara-cc authored and Arundale Ramanathan committed Aug 24, 2022
1 parent 698e207 commit 03e7d85
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 50 deletions.
62 changes: 14 additions & 48 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,40 +17,6 @@ jobs:
run: make
- name: test
run: ./test_unishox2 -t && ./test_unishox2-w-olen -t
- name: test preset 0
run: ./test_unishox2 -t 0 && ./test_unishox2-w-olen -t 0
- name: test preset 1
run: ./test_unishox2 -t 1 && ./test_unishox2-w-olen -t 1
- name: test preset 2
run: ./test_unishox2 -t 2 && ./test_unishox2-w-olen -t 2
- name: test preset 3
run: ./test_unishox2 -t 3 && ./test_unishox2-w-olen -t 3
- name: test preset 4
run: ./test_unishox2 -t 4 && ./test_unishox2-w-olen -t 4
- name: test preset 5
run: ./test_unishox2 -t 5 && ./test_unishox2-w-olen -t 5
- name: test preset 6
run: ./test_unishox2 -t 6 && ./test_unishox2-w-olen -t 6
- name: test preset 7
run: ./test_unishox2 -t 7 && ./test_unishox2-w-olen -t 7
- name: test preset 8
run: ./test_unishox2 -t 8 && ./test_unishox2-w-olen -t 8
- name: test preset 9
run: ./test_unishox2 -t 9 && ./test_unishox2-w-olen -t 9
- name: test preset 10
run: ./test_unishox2 -t 10 && ./test_unishox2-w-olen -t 10
- name: test preset 11
run: ./test_unishox2 -t 11 && ./test_unishox2-w-olen -t 11
- name: test preset 12
run: ./test_unishox2 -t 12 && ./test_unishox2-w-olen -t 12
- name: test preset 13
run: ./test_unishox2 -t 13 && ./test_unishox2-w-olen -t 13
- name: test preset 14
run: ./test_unishox2 -t 14 && ./test_unishox2-w-olen -t 14
- name: test preset 15
run: ./test_unishox2 -t 15 && ./test_unishox2-w-olen -t 15
- name: test preset 16
run: ./test_unishox2 -t 16 && ./test_unishox2-w-olen -t 16
- name: test sample_texts/chinese.txt
run: ./test_unishox2 -c sample_texts/chinese.txt sample_texts/chinese.usx && ./test_unishox2 -d sample_texts/chinese.usx sample_texts/chinese.dsx && cmp sample_texts/chinese.txt sample_texts/chinese.dsx
- name: test sample_texts/emoji.txt
Expand Down Expand Up @@ -79,17 +45,17 @@ jobs:
run: ./test_unishox2 -c sample_texts/xml1.txt sample_texts/xml1.usx && ./test_unishox2 -d sample_texts/xml1.usx sample_texts/xml1.dsx && cmp sample_texts/xml1.txt sample_texts/xml1.dsx
- name: test sample_texts/world95.txt
run: ./test_unishox2 -c sample_texts/world95.txt sample_texts/world95.usx && ./test_unishox2 -d sample_texts/world95.usx sample_texts/world95.dsx && cmp sample_texts/world95.txt sample_texts/world95.dsx
- name: test utf8_samples/alice_wland_chn.txt
run: ./test_unishox2 -c utf8_samples/alice_wland_chn.txt utf8_samples/alice_wland_chn.usx && ./test_unishox2 -d utf8_samples/alice_wland_chn.usx utf8_samples/alice_wland_chn.dsx && cmp utf8_samples/alice_wland_chn.txt utf8_samples/alice_wland_chn.dsx
- name: test utf8_samples/alice_wland.txt
run: ./test_unishox2 -c utf8_samples/alice_wland.txt utf8_samples/alice_wland.usx && ./test_unishox2 -d utf8_samples/alice_wland.usx utf8_samples/alice_wland.dsx && cmp utf8_samples/alice_wland.txt utf8_samples/alice_wland.dsx
- name: test utf8_samples/hi.txt
run: ./test_unishox2 -c utf8_samples/hi.txt utf8_samples/hi.usx && ./test_unishox2 -d utf8_samples/hi.usx utf8_samples/hi.dsx && cmp utf8_samples/hi.txt utf8_samples/hi.dsx
- name: test utf8_samples/ja.txt
run: ./test_unishox2 -c utf8_samples/ja.txt utf8_samples/ja.usx && ./test_unishox2 -d utf8_samples/ja.usx utf8_samples/ja.dsx && cmp utf8_samples/ja.txt utf8_samples/ja.dsx
- name: test utf8_samples/ru.txt
run: ./test_unishox2 -c utf8_samples/ru.txt utf8_samples/ru.usx && ./test_unishox2 -d utf8_samples/ru.usx utf8_samples/ru.dsx && cmp utf8_samples/ru.txt utf8_samples/ru.dsx
- name: test utf8_samples/ta.txt
run: ./test_unishox2 -c utf8_samples/ta.txt utf8_samples/ta.usx && ./test_unishox2 -d utf8_samples/ta.usx utf8_samples/ta.dsx && cmp utf8_samples/ta.txt utf8_samples/ta.dsx
- name: test utf8_samples/zh.txt
run: ./test_unishox2 -c utf8_samples/zh.txt utf8_samples/zh.usx && ./test_unishox2 -d utf8_samples/zh.usx utf8_samples/zh.dsx && cmp utf8_samples/zh.txt utf8_samples/zh.dsx
- name: test sample_texts/alice_wland_chn.txt
run: ./test_unishox2 -c sample_texts/alice_wland_chn.txt sample_texts/alice_wland_chn.usx && ./test_unishox2 -d sample_texts/alice_wland_chn.usx sample_texts/alice_wland_chn.dsx && cmp sample_texts/alice_wland_chn.txt sample_texts/alice_wland_chn.dsx
- name: test sample_texts/alice_wland.txt
run: ./test_unishox2 -c sample_texts/alice_wland.txt sample_texts/alice_wland.usx && ./test_unishox2 -d sample_texts/alice_wland.usx sample_texts/alice_wland.dsx && cmp sample_texts/alice_wland.txt sample_texts/alice_wland.dsx
- name: test sample_texts/hi.txt
run: ./test_unishox2 -c sample_texts/hi.txt sample_texts/hi.usx && ./test_unishox2 -d sample_texts/hi.usx sample_texts/hi.dsx && cmp sample_texts/hi.txt sample_texts/hi.dsx
- name: test sample_texts/ja.txt
run: ./test_unishox2 -c sample_texts/ja.txt sample_texts/ja.usx && ./test_unishox2 -d sample_texts/ja.usx sample_texts/ja.dsx && cmp sample_texts/ja.txt sample_texts/ja.dsx
- name: test sample_texts/ru.txt
run: ./test_unishox2 -c sample_texts/ru.txt sample_texts/ru.usx && ./test_unishox2 -d sample_texts/ru.usx sample_texts/ru.dsx && cmp sample_texts/ru.txt sample_texts/ru.dsx
- name: test sample_texts/ta.txt
run: ./test_unishox2 -c sample_texts/ta.txt sample_texts/ta.usx && ./test_unishox2 -d sample_texts/ta.usx sample_texts/ta.dsx && cmp sample_texts/ta.txt sample_texts/ta.dsx
- name: test sample_texts/zh.txt
run: ./test_unishox2 -c sample_texts/zh.txt sample_texts/zh.usx && ./test_unishox2 -d sample_texts/zh.usx sample_texts/zh.dsx && cmp sample_texts/zh.txt sample_texts/zh.dsx
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Html.h
*.lzma
*.us?
*.dsx
*.psx
utf8samples/*.gz
utf8samples/*.zip
utf8samples/*.shox
Expand All @@ -77,6 +78,10 @@ delta_only
doc/*.pdf
doc/.~*
paper/*.pdf
fuzz_data/*
fuzz_out/*
afl_fuzz/fuzz_data/*
afl_fuzz/fuzz_out/*

# Traditional cmake building directories
build*
2 changes: 1 addition & 1 deletion afl_fuzz/afl_compile.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
afl-clang -DUNISHOX_API_WITH_OUTPUT_LEN=1 -g -fsanitize=address ../unishox2.c test_fuzz.c
afl-clang -DUNISHOX_API_WITH_OUTPUT_LEN=1 $COMPILE_OPTS -fsanitize=address -static-libsan -static-libstdc++ ../unishox2.c test_fuzz.c

2 changes: 1 addition & 1 deletion afl_fuzz/afl_run.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mkdir -p fuzz-data && echo ' ' > fuzz-data/SEED && afl-fuzz -m none -i fuzz-data -o fuzz-out ./a.out @@
mkdir -p fuzz-data && echo ' ' > fuzz-data/SEED && afl-fuzz -d -m none -i fuzz-data -o fuzz-out ./a.out @@
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 03e7d85

Please sign in to comment.