forked from Liuyu314/generateOption
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·30 lines (27 loc) · 795 Bytes
/
Copy pathtest.sh
File metadata and controls
executable file
·30 lines (27 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /bin/bash
# This code is just for testing.
# Run this code by "./test.sh"
# Or "make test"
if [ -f "./tests/hello.c" ]; then
echo > "./tests/hello.c"
fi
if [ -f "./tests/hello.py" ]; then
echo > "./tests/hello.py"
fi
if [ -f "./tests/hello.scm" ]; then
echo > "./tests/hello.scm"
fi
if [ -f "./tests/hello.sh" ]; then
echo > "./tests/hello.sh"
fi
if [ -f "./testfile" ]; then
echo > "./testfile"
fi
genOpt ./tests/hello.c >> testfile
genOpt ./tests/hello.py >> testfile
genOpt ./tests/hello.scm >> testfile
genOpt ./tests/hello.sh >> testfile
genOpt ./tests/world >> testfile
genOpt ./tests/hello.com >> testfile
genOpt ./tests/hello.c ./tests/hello.py ./tests/hello.scm ./tests/hello.sh >> testfile
genOpt ./tests/hello.c ./tests/world ./tests/hello.com ./tests/hello.sh >> testfile