17 lines
234 B
Bash
17 lines
234 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
./compile.sh
|
||
|
cd run
|
||
|
|
||
|
# Test 1
|
||
|
echo "-- Test 1"
|
||
|
echo "Expected output: Y"
|
||
|
echo "Expected file contents: Obcde"
|
||
|
rm testfile.txt
|
||
|
./openNewFiletest
|
||
|
|
||
|
echo "-- Test 2"
|
||
|
echo "Expected output: file is null"
|
||
|
./openNewFiletest
|
||
|
|
||
|
cd ..
|