1144784Ssilby#!/bin/sh 2144784Ssilby# $FreeBSD: releng/11.0/tools/regression/msdosfs/msdosfstest.sh 145175 2005-04-17 00:40:27Z silby $ 3144784Ssilby# A really simple script to create a swap-backed msdosfs filesystem, copy a few 4144784Ssilby# files to it, unmount/remount the filesystem, and make sure all is well. 5144784Ssilby# 6144784Ssilby# Not very advanced, but better than nothing. 7145175Ssilbymkdir /tmp/msdosfstest/ 8144784Ssilbymdconfig -a -t swap -s 128m -u 10 9144784Ssilbybsdlabel -w md10 auto 10144784Ssilbynewfs_msdos -F 16 -b 8192 /dev/md10a 11145175Ssilbymount_msdosfs /dev/md10a /tmp/msdosfstest/ 12145175Ssilbycp -R /usr/src/bin/ /tmp/msdosfstest/ 13145175Ssilbyumount /tmp/msdosfstest/ 14145175Ssilbymount_msdosfs /dev/md10a /tmp/msdosfstest/ 15145175Ssilbydiff -u -r /usr/src/bin /tmp/msdosfstest/ 16144784Ssilbyif [ $? -eq 0 ]; then 17144784Ssilby echo "ok 1"; 18144784Ssilbyelse 19144784Ssilby echo "not ok 1"; 20144784Ssilbyfi 21145175Ssilbyumount /tmp/msdosfstest/ 22144784Ssilbymdconfig -d -u 10 23145175Ssilbyrmdir /tmp/msdosfstest/ 24