re-import sources as agreed with the maintainer

This commit is contained in:
Adam Samalik 2023-07-10 12:48:22 +02:00
parent f88107780c
commit 4f63f39020
4 changed files with 40 additions and 3 deletions

10
.gitignore vendored
View File

@ -1,2 +1,8 @@
SOURCES/nkf-2.1.4.tar.gz
/nkf-2.1.4.tar.gz
*bz2
*gz
*rpm
nkf204.tar.gz
nkf205.tar.gz
nkf206a.tar.gz
nkf207.tar.gz
nkf-2.0.8b.tar.gz

1
EMPTY
View File

@ -1 +0,0 @@

18
tests/runtest.sh Normal file
View File

@ -0,0 +1,18 @@
#! /bin/sh
set -e
q="テスト"
res=$(echo $q | nkf -W -e | nkf -w -E)
ret=1
if [ x$q = x$res ]; then
ret=0
mes="PASS"
else
ret=1
mes="FAIL"
fi
echo $mes
exit $ret

14
tests/tests.yml Normal file
View File

@ -0,0 +1,14 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- nkf
tests:
- simple_test:
dir: .
run: "nkf --help"
- nkf_test:
dir: .
run: ./runtest.sh