Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #test compile
- #!/bin/bash
- gcc -Wall -o $2 $2 > $1 2>&1
- if [[ -s $1 ]]; then
- echo Compile V
- return 0;
- fi
- echo Compile X
- return 1;
- #testInOut
- #! /bin/bash
- ($2 < $3 ) > $1
- if (( diff $1 $4 ))
- echo InOut V
- return 0;
- else
- echo InOut X
- return 1;
- fi
- #testMem
- #! /bin/bash
- ($2 < $3 ) > $1
- if (( diff $1 $4 ))
- echo InOut V
- return 0;
- else
- echo InOut X
- return 1;
- fi
- #testAll. just started it
- #! /bin/bash
- if [[ -d /logs ]]; then
- echo Error: Dir exists. Exiting...
- return 1;
- else
- mkdir logs
- fi
- (( num=1 ))
- description=""
- while read line; do
- #line_split=($line)
- cut -f1 -d"@" > $description
- echo $num:$decription
- (( $num += 1 ))
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement