From 0012b23e8471135c7c5dcff5311db60c0164a881 Mon Sep 17 00:00:00 2001 From: Neeraj Kumar Date: Tue, 22 Jun 2010 14:39:51 +0000 Subject: modified the filesystem test, added a script to directly create the game-data-directory, no zip file required svn-id: r50140 --- dists/engine-data/create-testbed-data.sh | 48 +++++++++++++++++++++++++++++++ dists/engine-data/createGameData | 4 --- dists/engine-data/testbed.zip | Bin 998 -> 0 bytes 3 files changed, 48 insertions(+), 4 deletions(-) create mode 100755 dists/engine-data/create-testbed-data.sh delete mode 100755 dists/engine-data/createGameData delete mode 100644 dists/engine-data/testbed.zip (limited to 'dists') diff --git a/dists/engine-data/create-testbed-data.sh b/dists/engine-data/create-testbed-data.sh new file mode 100755 index 0000000000..1ed6c733b5 --- /dev/null +++ b/dists/engine-data/create-testbed-data.sh @@ -0,0 +1,48 @@ +#!/bin/sh + +# Create the directory structure +# Avoided bash shortcuts/ file-seperators in interest of portability + +if [ -e testbed ]; then + echo "Game-data already present as testbed/" + echo "To regenerate, remove and rerun" + exit 0 +fi + +mkdir testbed + +cd testbed + +# For game detection +echo "ScummVM rocks!" > TESTBED + +mkdir test1 +mkdir Test2 +mkdir TEST3 +mkdir tEST4 +mkdir test5 + + +cd test1 +echo "It works!" > file.txt +cd .. + +cd Test2 +echo "It works!" > File.txt +cd .. + +cd TEST3 +echo "It works!" > FILE.txt +cd .. + +cd tEST4 +echo "It works!" > fILe.txt +cd .. + +cd test5 +echo "It works!" > file. +cd .. + +# back to the top +cd .. +echo "Game data created" diff --git a/dists/engine-data/createGameData b/dists/engine-data/createGameData deleted file mode 100755 index 8a3cabe0c3..0000000000 --- a/dists/engine-data/createGameData +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -unzip testbed.zip -mv testbed/testbed_mixed_case testbed/TeStBeD diff --git a/dists/engine-data/testbed.zip b/dists/engine-data/testbed.zip deleted file mode 100644 index 33e1a83ab5..0000000000 Binary files a/dists/engine-data/testbed.zip and /dev/null differ -- cgit v1.2.3