diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-10-30 01:51:14 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-10-30 01:51:14 +0100 |
commit | 042e43247f396a9000fead59d9bff87bf12806d6 (patch) | |
tree | e902784464cbe9ce3c5114d513b016523e7e4b29 /vendor/librune/test/tests | |
parent | 170b8a92434233241c990c3e9432786de3262bcd (diff) |
Completely revamp the grab source code
Some of the (many) few changes are:
- Multithreading for significantly faster performance
- The -p/--predicate flag
- Byte offsets as the default
- No customizable colors (maybe this will come back later)
- Newer edition of mlib (formerly librune)
Diffstat (limited to 'vendor/librune/test/tests')
-rwxr-xr-x | vendor/librune/test/tests | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/vendor/librune/test/tests b/vendor/librune/test/tests deleted file mode 100755 index 5affe3a..0000000 --- a/vendor/librune/test/tests +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -report() -{ - case $1 in - 0) printf 'All tests passed\n' >&2 ;; - 1) printf '1 test failed\n' >&2 ;; - *) printf '%d tests failed\n' $1 >&2 - esac -} - -readonly src=../data/GraphemeBreakTest.txt - -set -e -cd "${0%/*}" -find ../lib -name '*.c' -exec \ - cc -std=c2x -Wno-attributes -I../include -o gbrk gbrk.c {} + -trap 'rm -f gbrk' EXIT - -n=$( - ./gbrk $src \ - | diff -y --suppress-common-lines $src - \ - | tee failures \ - | wc -l -) -test $n -eq 0 && rm failures - -if test -t 2 -then - case $n in - 0) printf '\033[0;32m' ;; - *) printf '\033[0;31m' - esac - - report $n - printf '\033[0m' >&2 -else - report $n -fi |