Aegisub/tests/setup.sh

46 lines
829 B
Bash
Executable File

chmod 777 data/*
chmod -R 777 data/
rm -rf data
mkdir -p data
touch data/file
mkdir data/dir
touch data/file_access_denied
chmod 000 data/file_access_denied
touch data/file_read_only
chmod 444 data/file_read_only
mkdir data/dir_access_denied
chmod 000 data/dir_access_denied
mkdir data/dir_read_only
chmod 444 data/dir_read_only
echo '{"Valid" : ["Entry One", "Entry Two"]}' > data/mru_ok.json
echo '{"Invalid" : [1, 3]}' > data/mru_invalid.json
printf %s '1234567890' > data/ten_bytes
touch data/touch_mod_time
mkdir data/options
cp options/* data/options
mkdir data/dir_iterator
touch data/dir_iterator/1.a
touch data/dir_iterator/2.a
touch data/dir_iterator/1.b
touch data/dir_iterator/2.b
mkdir data/vfr
mkdir data/vfr/in
mkdir data/vfr/out
cp vfr/* data/vfr/in/
mkdir data/keyframe
cp keyframe/* data/keyframe