Commit 2317f4dc authored by Fabian Nuraddin Alexander Gabel's avatar Fabian Nuraddin Alexander Gabel 💬
Browse files

add basic test for webpage build

parent 759aa352
......@@ -159,19 +159,17 @@ test-replace_ssi_marker:
- static/ssi/*
# test building standalone static webpage
test-build-standalone:
test-build-webpage:
stage: testing
allow_failure: true #as this job is deprecated
allow_failure: false
image: collaborating.tuhh.de:5005/cfg0846/research-topics-mat-tuhh/ubuntu-pandoc:latest
script:
- mkdir -p log
- rm -rf log/build_standalone.log
- $RESEARCH_ROOT/bin/test_build_standalone.sh
after_script:
- cat log/build_standalone.log
- rm -rf log/build_webpage.log
- $RESEARCH_ROOT/bin/test_build_webpage.sh
artifacts:
paths:
- log/build_standalone.log
- log/build_build_webpage.log
only:
refs:
- branches
......
......@@ -121,8 +121,9 @@ $RESEARCH_BIN/build_README.sh $RESEARCH_STATIC/misc/TUHH_BUILD_README.md \
echo "Copying files..."
mkdir -p $RESEARCH_BUILD/include/html
cp -r $RESEARCH_ROOT/topics/img $RESEARCH_BUILD/forschung/topics
cp -r $RESEARCH_STATIC/include/{css,javascript,images} $RESEARCH_BUILD/include
cp -rf $RESEARCH_TOPICS/img $RESEARCH_BUILD/forschung/topics
cp -rf $RESEARCH_STATIC/include/{css,javascript,images} $RESEARCH_BUILD/include
# replace {include} in html
for f in $RESEARCH_STATIC/include/html/*.html
do
......
#!/bin/bash
# test_build_webpage.sh
echo "--------------------------------------------------"
echo "Running tests in $0"
echo "--------------------------------------------------"
RESEARCH_TESTING=$RESEARCH_ROOT/testing/test_build_webpage
LOGFILE=$RESEARCH_ROOT/log/test_build_webpage.log
SCRIPT=$RESEARCH_ROOT/bin/build_webpage.sh
rm -rf $LOGFILE && mkdir -p $RESEARCH_ROOT/log && touch $LOGFILE
#BEGIN Test 1: build webpage with only -b option
T=1
#echo "##################################################"
echo "Test $T: build webpage with only -b option"
#echo "##################################################"
# preparation
RESEARCH_BUILD=$RESEARCH_TESTING/build
rm -rf $RESEARCH_TESTING/build
mkdir -p $RESEARCH_BUILD
REF_FILE=$RESEARCH_TESTING/tree_ref.txt
cd $RESEARCH_TESTING
# run script
$SCRIPT -t $RESEARCH_TESTING/test_topics
tree $RESEARCH_BUILD > $RESEARCH_TESTING/tree.txt
#check results
DIFF=$(diff $RESEARCH_TESTING/tree.txt $REF_FILE)
#echo "--------------------------------------------------"
if [ "$DIFF" != "" ]
then
echo "Test $T: failed."
exit 1
else
echo "Test $T: passed."
fi
#END Test 1
#don't modify below, these should be the last lines (errors exit earlier)
echo "--------------------------------------------------"
echo "ALL $T tests in $0 PASSED."
exit 0
# Finite Sections of Aperiodic Schrödinger Operators
### Working Groups: aa
### Collaborators (MAT): dgallaun, fgabel, jgrossmann, mlindner, rukena
## Description
Discrete Schrödinger operators are used to describe physical systems on lattices
and, therefore, play an important role in theoretical solid-state physics.
For a fixed $p \in [1,\infty]$, consider the Schrödinger operator $H \colon \ell^p(\mathbb{Z}) \to \ell^p(\mathbb{Z})$ given by
$$
(H x)_n = x_{n + 1} + x_{n - 1} + v(n) x_nn \in \mathbb{Z},
$$(1)
and its one-sided counterpart $H_+ \colon \ell^p(\mathbb{N}) \to \ell^p(\mathbb{N})$ given by
$$
(H_+ x)_n = x_{n + 1} + x_{n - 1} + v(n) x_n\;,n \in \mathbb{N}, \quad x_0 = 0\;.
$$ (2)
/home/fabian/gitlab/research-topics-mat-tuhh/testing/test_build_webpage/build
├── build.log
├── forschung
│   ├── aa
│   │   └── forschung.html
│   ├── cm
│   ├── dm
│   ├── nm
│   ├── st
│   └── topics
│   └── aperiodSchr.html
├── home
│   ├── dgallaun.html
│   ├── fgabel.html
│   ├── jgrossmann.html
│   ├── mlindner.html
│   └── rukena.html
├── include
│   ├── css
│   │   ├── base.css
│   │   ├── base_mode.css
│   │   ├── extra.css
│   │   ├── print.css
│   │   ├── superfish.css
│   │   └── superfish-vertical.css
│   ├── html
│   │   ├── brcr_begin.html
│   │   ├── brcr_end.html
│   │   ├── footer.html
│   │   ├── header_cdnjs.html
│   │   ├── header.html
│   │   └── sidebar.html
│   ├── images
│   │   ├── gb.gif
│   │   ├── logo_header_mat_de.png
│   │   ├── logo_header_tuhh_de.png
│   │   └── mailto.gif
│   └── javascript
│   ├── hoverIntent.js
│   ├── jquery.js
│   ├── jquery.quicksilver.js
│   ├── jquery.simpleFAQ.js
│   ├── mathjax-init.js
│   ├── menu-init.js
│   ├── superfish.js
│   └── toggleme.js
├── index.html
└── README.md
13 directories, 34 files
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment