Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions script.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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: <your_name>

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