Merge pull request #31 from Lab-8916100448256/master
Test des scripts getchannels.py et getstats.py
This commit is contained in:
commit
afc4eb9b22
4 changed files with 65 additions and 5766 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
script/.gitignore
vendored
2
script/.gitignore
vendored
|
@ -1 +1,3 @@
|
||||||
dev_config.py
|
dev_config.py
|
||||||
|
test.log
|
||||||
|
|
||||||
|
|
61
script/test.sh
Executable file
61
script/test.sh
Executable file
|
@ -0,0 +1,61 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
LOGFILE=test.log
|
||||||
|
|
||||||
|
git checkout ../public/data/*.json
|
||||||
|
|
||||||
|
date "+Test Date: %Y-%m-%d, Time: %H:%M:%S" > "$LOGFILE"
|
||||||
|
git log -1 >> "$LOGFILE"
|
||||||
|
|
||||||
|
echo >> "$LOGFILE"
|
||||||
|
echo '----------------------------------------------------------------' >> "$LOGFILE"
|
||||||
|
echo 'pip install -r ./requirements.txt' >> "$LOGFILE"
|
||||||
|
echo '----------------------------------------------------------------' >> "$LOGFILE"
|
||||||
|
echo
|
||||||
|
echo '----------------------------------------------------------------'
|
||||||
|
echo 'pip install -r ./requirements.txt'
|
||||||
|
echo '----------------------------------------------------------------'
|
||||||
|
pip install -r ./requirements.txt 2>&1 | tee -a "$LOGFILE"
|
||||||
|
|
||||||
|
echo >> "$LOGFILE"
|
||||||
|
echo '----------------------------------------------------------------' >> "$LOGFILE"
|
||||||
|
echo 'getchannels.py' >> "$LOGFILE"
|
||||||
|
echo '----------------------------------------------------------------' >> "$LOGFILE"
|
||||||
|
echo
|
||||||
|
echo '----------------------------------------------------------------'
|
||||||
|
echo 'getchannels.py'
|
||||||
|
echo '----------------------------------------------------------------'
|
||||||
|
python getchannels.py 2>&1 | tee -a "$LOGFILE"
|
||||||
|
|
||||||
|
echo >> "$LOGFILE"
|
||||||
|
echo '----------------------------------------------------------------' >> "$LOGFILE"
|
||||||
|
echo 'getstats.py' >> "$LOGFILE"
|
||||||
|
echo '----------------------------------------------------------------' >> "$LOGFILE"
|
||||||
|
echo
|
||||||
|
echo '----------------------------------------------------------------'
|
||||||
|
echo 'getstats.py'
|
||||||
|
echo '----------------------------------------------------------------'
|
||||||
|
python getstats.py 2>&1 | tee -a "$LOGFILE"
|
||||||
|
|
||||||
|
echo >> "$LOGFILE"
|
||||||
|
echo '----------------------------------------------------------------' >> "$LOGFILE"
|
||||||
|
echo 'git status' >> "$LOGFILE"
|
||||||
|
echo '----------------------------------------------------------------' >> "$LOGFILE"
|
||||||
|
echo
|
||||||
|
echo '----------------------------------------------------------------'
|
||||||
|
echo 'git status'
|
||||||
|
echo '----------------------------------------------------------------'
|
||||||
|
git status 2>&1 | tee -a "$LOGFILE"
|
||||||
|
|
||||||
|
echo >> "$LOGFILE"
|
||||||
|
echo '----------------------------------------------------------------' >> "$LOGFILE"
|
||||||
|
echo 'git diff' >> "$LOGFILE"
|
||||||
|
echo '----------------------------------------------------------------' >> "$LOGFILE"
|
||||||
|
echo
|
||||||
|
echo '----------------------------------------------------------------'
|
||||||
|
echo 'git diff'
|
||||||
|
echo '----------------------------------------------------------------'
|
||||||
|
git diff 2>&1 | tee -a "$LOGFILE"
|
||||||
|
|
||||||
|
echo >> "$LOGFILE"
|
||||||
|
echo
|
Loading…
Reference in a new issue