Skip to content

Commit

Permalink
Add testcase for autoloading game if exe renamed as game
Browse files Browse the repository at this point in the history
  • Loading branch information
thoni56 committed Aug 4, 2019
1 parent db9223a commit dfbd6a3
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interpreter/Makefile.common
Expand Up @@ -46,7 +46,9 @@ test:
@../bin/jregr -bin ../bin -dir ../regression/saving $(JREGROUTPUT)
@../bin/jregr -bin ../bin -dir ../regression/debug $(JREGROUTPUT)
@../bin/jregr -bin ../bin -dir ../regression/platforms $(JREGROUTPUT)
@../bin/jregr -dir ../regression/restore $(JREGROUTPUT) # Uses sh not the executables
@# Uses sh not the executables
@../bin/jregr -dir ../regression/restore $(JREGROUTPUT)
@../bin/jregr -dir ../regression/executing $(JREGROUTPUT)


#######################################################################
Expand Down
1 change: 1 addition & 0 deletions regression/executing/.jregr
@@ -0,0 +1 @@
.sh : sh $2
30 changes: 30 additions & 0 deletions regression/executing/rename_as_game.expected
@@ -0,0 +1,30 @@
########## rename_as_game ##########


Welcome to the game of SAVIOUR!

In this game your mission is to salvage the last copy of the famous
ADVENTURE game. Legends have it that somewhere inside an ancient building
the last copy of this game is still spinning on some old disks.

If you need help just type 'help'.

So go forth and be the salvaging hero of all Adventurers!


This game was produced with the ALAN Adventure Development System and is
brought to you by ThoNi&GorFo Adventure Factories.
Visit the Alan Home Pages at:


http://www.alanif.se


Outside The Tall Building
To the north is a tall ancient building with a large entrance. On the top
there is a clock tower. Most of the windows in the building are broken,
and a sign with three oval objects are hanging lose from the wall.

>

Do you want to UNDO, RESTART, RESTORE or QUIT ?
Empty file.
3 changes: 3 additions & 0 deletions regression/executing/rename_as_game.sh
@@ -0,0 +1,3 @@
cp ../../bin/arun rename_as_game
cp ../saviour.a3c rename_as_game.a3c
./rename_as_game -r -n < rename_as_game.input

0 comments on commit dfbd6a3

Please sign in to comment.