## Process this file with automake to produce Makefile.in

# select testing format
#AUTOMAKE_OPTIONS = parallel-tests 


# set compiler for a script 
#TESTS_ENVIRONMENT  = ./myCompiler.sh
#EXTRA_DIST         = myCompiler.sh

# test options
#TEST_EXTENSIONS    = .sh

# Testing SLIP
check_SCRIPTS      = hello.py hello.pl test1.sh test2.sh test3.sh test4.sh myCompiler.sh
TESTS              = hello.py hello.pl test1.sh test2.sh test3.sh test4.sh

test1.sh:
	echo '#!/bin/bash'       > test1.sh
	echo "echo 'exit 0'"    >> test1.sh
	echo "exit 0"           >> test1.sh
	chmod +x test1.sh

test2.sh:
	echo '#!/bin/bash'       > test2.sh
	echo "echo 'exit 2'"    >> test2.sh
	echo "exit 2"           >> test2.sh
	chmod +x test2.sh

test3.sh:
	echo '#!/bin/bash'       > test3.sh
	echo "echo 'exit 77'"   >> test3.sh
	echo "exit 77"          >> test3.sh
	chmod +x test3.sh

test4.sh:
	echo '#!/bin/bash'       > test4.sh
	echo "echo 'exit 99'"   >> test4.sh
	echo "exit 99 "         >> test4.sh
	chmod +x test4.sh
	
hello.pl:
	echo "#!/usr/bin/perl"           > hello.pl
	echo "use warnings; "           >> hello.pl
	echo 'print "Hello Perl World!\n";' >> hello.pl
	echo "exit 77;"                 >> hello.pl
	chmod +x hello.pl

hello.py:
	echo "#!/usr/bin/python"             > hello.py
	echo 'print "Hello Python World!";' >> hello.py
	chmod +x hello.py

myCompiler.sh:
	echo "#!/usr/bin/bash"            > myCompiler.sh
	echo 'echo "test case = $$1"'    >> myCompiler.sh
	chmod +x  myCompiler.sh

CLEANFILES         = $(test_SOURCES)

