uuencode.sh (654B)
- #!/bin/sh
- # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- # SPDX-License-Identifier: MPL-2.0
- WD="$(dirname "$0")"
- target="${WD}/../cmd/uuencode"
- plans=6
- . "$(dirname "$0")/tap.sh"
- umask 022
- t --input='' 'empty' 'empty' 'begin 644 empty
- `
- end
- '
- t --input='Cat' 'Cat' '' 'begin 644 -
- #0V%T
- end
- '
- t --input='CatCat' 'CatCat' '' 'begin 644 -
- &0V%T0V%T
- end
- '
- t --input='CatCatCat' 'CatCatCat' '' 'begin 644 -
- )0V%T0V%T0V%T
- end
- '
- t_file all_bytes "$WD/outputs/uuencode/all_bytes" "$WD/inputs/all_bytes" all_bytes
- t_file all_bytes.base64 "$WD/outputs/uuencode/all_bytes.base64" -m "$WD/inputs/all_bytes" all_bytes