diff --git a/script.sh b/script.sh old mode 100644 new mode 100755 index f9971f7..cc7539c --- a/script.sh +++ b/script.sh @@ -5,3 +5,15 @@ # Run the python file, using input1.txt as stdin, and write the output to a file user_output1.txt # Display user_output1.txt to the user as user output, and the file output1.txt as the expected output # Once you have tested out the script and verified it's working, commit it to a branch: + +language=$1 +echo "the language used is $language" + +gcc $2 +cat input1.txt | ./a.out > user_output1.txt +echo "User output: " +cat user_output1.txt +echo "Expected output: " +cat output1.txt + +