-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·33 lines (28 loc) · 945 Bytes
/
Copy pathrun.sh
File metadata and controls
executable file
·33 lines (28 loc) · 945 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
31
32
33
#!/bin/sh
case $1 in
save)
if [ "$#" -eq 3 ]
then
python -c "from musttest.georeum.georeum import Georeum; georeum = Georeum(\"$2\", \"$3\"); georeum.save();"
else
echo "Wrong argument: Requires 3 arguments (action[save/generate], root_path(absolute path), test_path(absolute path))"
fi
;;
generate)
if [ "$#" -eq 3 ]
then
python -c "from musttest.georeum.georeum import Georeum; georeum = Georeum(\"$2\", \"$3\"); georeum.select_test_case();"
else
echo "Wrong argument: Requires 3 arguments (action[save/generate], root_path(absolute path), test_path(absolute path))"
fi
;;
execute)
if [ "$#" -eq 3 ]
then
python -c "from musttest.georeum.georeum import Georeum; georeum = Georeum(\"$2\", \"$3\"); georeum.select_test_case();\
georeum.test_run();"
else
echo "Wrong argument: Requires 3 arguments (action[save/generate], root_path(absolute path), test_path(absolute path))"
fi
;;
esac