Files
psopeeps-newserv/tests/custom-sjis.test.sh
T
Martin Michelsen dec979fb52 fix custom-sjis test
2024-04-07 13:13:58 -07:00

19 lines
436 B
Bash
Executable File

#!/bin/sh
set -e
EXECUTABLE="$1"
if [ "$EXECUTABLE" == "" ]; then
EXECUTABLE="./newserv"
fi
echo "... decode-sjis"
$EXECUTABLE decode-sjis tests/custom-sjis.txt tests/custom-sjis.utf8.txt
echo "... encode-sjis"
$EXECUTABLE encode-sjis tests/custom-sjis.utf8.txt tests/custom-sjis.recoded.txt
diff tests/custom-sjis.txt tests/custom-sjis.recoded.txt
echo "... clean up"
rm tests/custom-sjis.utf8.txt tests/custom-sjis.recoded.txt