-
Notifications
You must be signed in to change notification settings - Fork 4
/
Tutorial03_UnitTestAModule.sh
executable file
·54 lines (35 loc) · 1.66 KB
/
Tutorial03_UnitTestAModule.sh
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
set -e;
#
source ./scripts/manageShellVars.sh;
source ./scripts/util.sh;
checkForVirtualMachine;
checkNotRoot;
export SUDOUSER=$(who am i | awk '{print $1}');
collectSectionNames;
setSection 3;
source "${BINDIR}/${SECTION}_functions.sh";
source ./scripts/explain.sh
RUN_RULE="";
explain ${BINDIR}/Introduction.md
export PACKAGES=~/${PARENT_DIR}/modules;
explain ${BINDIR}/Create_a_module_A.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then Create_a_module_A; fi;
explain ${BINDIR}/Create_a_module_B.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then Create_a_module_B; fi;
explain ${BINDIR}/Create_a_module_C.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then Create_a_module_C; fi;
explain ${BINDIR}/Create_GitHub_Repo_Deploy_Keys.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then Create_GitHub_Repo_Deploy_Keys ${MODULE_NAME}; fi;
RUN_RULE="";
explain ${BINDIR}/Control_a_modules_versions_A.md MORE_ACTION # CODE_BLOCK MANUAL_INPUT_REQUIRED
if [ "${RUN_RULE}" != "n" ]; then Control_a_modules_versions_A; fi;
explain ${BINDIR}/Control_a_modules_versions_B.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then Control_a_modules_versions_B; fi;
explain ${BINDIR}/TinyTest_a_module.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then TinyTest_a_module; fi;
explain ${BINDIR}/Add_a_test_runner_for_getting_TinyTest_output_on_the_command_line.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then Add_a_test_runner_for_getting_TinyTest_output_on_the_command_line; fi;
## FLAG FOR INCLUSION IN SLIDES - ${BINDIR}/Fin.md explain
endOfSectionScript ${SECTION_NUM} ${SECTION} ${NEXT_SECTION};
exit 0;