From e9ab99b7204d428468215ebe4f6aa562b7e28457 Mon Sep 17 00:00:00 2001 From: avatar Date: Sun, 1 Jan 2006 01:28:31 +0000 Subject: Adding another multi-byte characters related regression test for recent nmount(2) adoption. --- tools/regression/msdosfs/msdosfstest-6.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tools/regression/msdosfs/msdosfstest-6.sh (limited to 'tools/regression') diff --git a/tools/regression/msdosfs/msdosfstest-6.sh b/tools/regression/msdosfs/msdosfstest-6.sh new file mode 100644 index 0000000..d64472d --- /dev/null +++ b/tools/regression/msdosfs/msdosfstest-6.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# $FreeBSD$ +# A really simple script to create a swap-backed msdosfs filesystem, then +# test to make sure the nmount conversion(mount_msdosfs.c rev 1.37) +# doesn't break multi-byte characters. + +mkdir /tmp/msdosfstest/ +mdconfig -a -t swap -s 128m -u 10 +bsdlabel -w md10 auto +newfs_msdos -F 32 -b 8192 /dev/md10a +mount_msdosfs -L zh_TW.Big5 -D CP950 /dev/md10a /tmp/msdosfstest/ +mkdir '/tmp/msdosfstest/是否看過坊間常見的許茹芸淚海慶功宴吃蓋飯第四集' +cd '/tmp/msdosfstest/是否看過坊間常見的許茹芸淚海慶功宴吃蓋飯第四集' +if [ $? -eq 0 ]; then + echo "ok 6"; +else + echo "not ok 6"; +fi +cd /tmp +umount /tmp/msdosfstest/ +mdconfig -d -u 10 +rm -rf /tmp/msdosfstest/ -- cgit v1.1