CringeDB/tests/System Abstraction/1/run.sh

19 lines
288 B
Bash
Raw Normal View History

2022-08-29 17:27:24 +02:00
#!/bin/sh
./compile.sh
cd run
# Test 1
echo "-- Test 1"
echo "Expected output: file is null"
rm testfile.txt
./systemAbstractionTest1
# Test 2
echo "-- Test 2"
echo "Expected output: abc"
echo "Expected file contents: Obcde"
echo -n "abc" > testfile.txt
./systemAbstractionTest1
cd ..