Commit 29d977c6 authored by Fabian Nuraddin Alexander Gabel's avatar Fabian Nuraddin Alexander Gabel 💬
Browse files

expand test suit for build_webpage

parent cefcccad
Pipeline #116708 passed with stages
in 1 minute and 11 seconds
......@@ -9,24 +9,27 @@ 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
#BEGIN Test 1: build webpage with -t option
T=1
#echo "##################################################"
echo "Test $T: build webpage with only -b option"
echo "Test $T: build webpage with -t option"
#echo "##################################################"
# preparation
RESEARCH_BUILD=$RESEARCH_TESTING/build
rm -rf $RESEARCH_TESTING/build
mkdir -p $RESEARCH_BUILD
REF_FILE=$RESEARCH_TESTING/tree_ref.txt
REF_DIR=$RESEARCH_TESTING/build_ref
cd $RESEARCH_TESTING
# run script
$SCRIPT -t $RESEARCH_TESTING/test_topics
$SCRIPT -t $RESEARCH_TESTING/test_topics >> $LOGFILE 2>&1
# prostprocessing
rm -rf $RESEARCH_BUILD/{README.md,build.log}
#check results
DIFF=$(diff $RESEARCH_TESTING/aperiodSchr.hmtl $REF_FILE)
DIFF=$(diff -qr $RESEARCH_BUILD $REF_DIR)
#echo "--------------------------------------------------"
if [ "$DIFF" != "" ]
then
......@@ -37,6 +40,69 @@ else
fi
#END Test 1
#BEGIN Test 2: build webpage with -t and -b option
T=2
#echo "##################################################"
echo "Test $T: build webpage with -t and -b option"
#echo "##################################################"
# preparation
RESEARCH_BUILD=$RESEARCH_TESTING/build-w-b
rm -rf $RESEARCH_BUILD && mkdir -p $RESEARCH_BUILD
REF_DIR=$RESEARCH_TESTING/build_ref
cd $RESEARCH_TESTING
# run script
$SCRIPT -t $RESEARCH_TESTING/test_topics -b $RESEARCH_BUILD >> $LOGFILE 2>&1
# prostprocessing
rm -rf $RESEARCH_BUILD/{README.md,build.log}
#check results
DIFF=$(diff -qr $RESEARCH_BUILD $REF_DIR)
#echo "--------------------------------------------------"
if [ "$DIFF" != "" ]
then
echo "Test $T: failed."
exit 1
else
echo "Test $T: passed."
fi
#END Test 2
#BEGIN Test 3: build webpage with -t, -b, -p and -l option
T=3
#echo "##################################################"
echo "Test $T: build webpage with -t, -b, -r and -l option"
#echo "##################################################"
# preparation
RESEARCH_BUILD=$RESEARCH_TESTING/build-w-b-root
rm -rf $RESEARCH_BUILD && mkdir -p $RESEARCH_BUILD
REF_DIR=$RESEARCH_TESTING/build_ref_root
cd $RESEARCH_TESTING
# run script
$SCRIPT -t $RESEARCH_TESTING/test_topics \
-b $RESEARCH_BUILD \
-p "/cfg0846/research-topics-mat-tuhh" \
-l "/1022-commandline-args-for-preprocessor/885aa638" >> $LOGFILE 2>&1
# prostprocessing
rm -rf $RESEARCH_BUILD/{README.md,build.log}
#check results
DIFF=$(diff -qr $RESEARCH_BUILD $REF_DIR)
#echo "--------------------------------------------------"
if [ "$DIFF" != "" ]
then
echo "Test $T: failed."
exit 1
else
echo "Test $T: passed."
fi
#END Test 2
#don't modify below, these should be the last lines (errors exit earlier)
echo "--------------------------------------------------"
echo "ALL $T tests in $0 PASSED."
......
<div id="finite-sections-of-aperiodic-schrödinger-operators"><a href="/forschung/topics/aperiodSchr.html">Finite Sections of Aperiodic Schrödinger Operators</a></div>
<!--#set var="GERMAN_PAGE" value="aperiodSchr.html" -->
<!--#set var="TITLE" value="Finite Sections of Aperiodic Schrödinger Operators" -->
<!--#set var="HEAD_TITLE" value="$TITLE" -->
<!--#include virtual="/include/html/header.html" -->
<!--#include virtual="/include/html/brcr_begin.html" -->
<a href='/forschung/topics' title='Forschungsgebiete'>Forschungsgebiete</a> /
<!--#echo var="TITLE" -->
<!--#include virtual="/include/html/brcr_end.html" -->
<!--#include virtual="/include/html/sidebar.html" -->
<h3 id="working-groups-lehrstuhl-angewandte-analysis">Working Groups: <a href="/forschung/aa/forschung.html">Lehrstuhl Angewandte Analysis</a></h3>
<h3 id="collaborators-mat-dennis-gallaun-m.-sc.-fabian-gabel-m.-sc.-dr.-julian-großmann-prof.-dr.-marko-lindner-riko-ukena-m.-sc.">Collaborators (MAT): <a href="/home/dgallaun.html">Dennis Gallaun, M. Sc.</a>, <a href="/home/fgabel.html">Fabian Gabel, M. Sc.</a>, <a href="/home/jgrossmann.html">Dr. Julian Großmann</a>, <a href="/home/mlindner.html">Prof. Dr. Marko Lindner</a>, <a href="/home/rukena.html">Riko Ukena, M. Sc.</a></h3>
<h2 id="description">Description</h2>
<p>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 <span class="math inline">\(p \in [1,\infty]\)</span>, consider the Schrödinger operator <span class="math inline">\(H \colon \ell^p(\mathbb{Z}) \to \ell^p(\mathbb{Z})\)</span> given by</p>
<p><span class="math display">\[
(H x)_n = x_{n + 1} + x_{n - 1} + v(n) x_nn \in \mathbb{Z},
\]</span>(1)</p>
<p>and its one-sided counterpart <span class="math inline">\(H_+ \colon \ell^p(\mathbb{N}) \to \ell^p(\mathbb{N})\)</span> given by</p>
<p><span class="math display">\[
(H_+ x)_n = x_{n + 1} + x_{n - 1} + v(n) x_n\;,n \in \mathbb{N}, \quad x_0 = 0\;.
\]</span> (2)</p>
<!--#include virtual="/include/html/footer.html" -->
<div id="finite-sections-of-aperiodic-schrödinger-operators"><a href="/forschung/topics/aperiodSchr.html">Finite Sections of Aperiodic Schrödinger Operators</a></div>
<div id="finite-sections-of-aperiodic-schrödinger-operators"><a href="/forschung/topics/aperiodSchr.html">Finite Sections of Aperiodic Schrödinger Operators</a></div>
<div id="finite-sections-of-aperiodic-schrödinger-operators"><a href="/forschung/topics/aperiodSchr.html">Finite Sections of Aperiodic Schrödinger Operators</a></div>
<div id="finite-sections-of-aperiodic-schrödinger-operators"><a href="/forschung/topics/aperiodSchr.html">Finite Sections of Aperiodic Schrödinger Operators</a></div>
<div id="finite-sections-of-aperiodic-schrödinger-operators"><a href="/forschung/topics/aperiodSchr.html">Finite Sections of Aperiodic Schrödinger Operators</a></div>
html {
overflow-x:auto; /* IE hack for x-scrollbar */
overflow-y:auto; /* IE hack for y-scrollbar */
}
body {
min-width:60.16em;
margin:0;
padding:0;
font-family:Verdana,Arial,Helvetica,sans-serif;
/*font-weight:normal; */
font-size:0.8em;
color:#003;
background:#f2f2f2;
}
a, a:visited {
color:#009;
font-weight:bold;
text-decoration:none;
}
a:hover {
color:#c60;
font-weight:bold;
text-decoration:none;
}
#header {
height:6.6em;
padding:0;
margin:0;
background-color:#cce4ee;/*#9cc; */
background-image:url(/include/images/background.gif);
background-repeat:repeat-x;
background-position: center;
/*overflow:hidden;
position:absolute;
top:0; left:0;
width:100%;*/
/*border-top:1.2em solid #cce4ee; */
/*border-bottom:1.2em solid #9cc;*/ /*#7fbbd4;#5a9ede*/
/*background-position:4.425em;
-moz-border-radius-bottomleft:20px;
-moz-border-radius-bottomright:20px;
-khtml-border-radius-bottomleft:20px;
-khtml-border-radius-bottomright:20px;*/
}
#header img {
height:52px;
background: rgba(204, 228, 238, 1);
padding:16px;
}
#header .logo-left {
float:left;
}
#header .logo-right {
float:right;
}
/*#header img {
width:5.78em;
height:4.06em;
border:none;
}*/
/*#header #logo {
position:absolute;
top:1.25em; left:0em;
border-left:0.9em solid #cce4ee;
border-right:0.9em solid #cce4ee;
}*/
#brcr {
/*clear:both;
position:relative;
top:7.3em; left:0;*/
padding:2px 4px 2px 1.2em;
height:1.3em;
font-size:0.9em;
color:#006;
background:#7fbbd4;
white-space:nowrap;
z-index:2;
/*-moz-border-radius-topleft:20px;
-moz-border-radius-topright:20px;
-khtml-border-radius-bottomleft:20px;
-khtml-border-radius-bottomright:20px;*/
}
/*#brcr a {
display:inline;
text-decoration:none;
color:#006;}
#brcr a:hover, #brcr a:focus {
text-decoration:underline;
color:#000;}*/
#content {
/*margin-top:6.2em;*/
background:#cce4ee;
}
/*#content a.main {
background-image:url(/img/pfeil_bw.gif);
background-repeat:no-repeat;
background-position:0 0.25em;
padding:0 0 0 1em;
margin-bottom:0.35em;
}
#content a.main:hover {
color:#c60;
background-image:url(/img/pfeil_ow.gif);
background-repeat:no-repeat;
background-position:0 0.25em;
}
#content a.main:focus {
color:#c60;
background-image:url(/img/pfeil_ow.gif);
background-repeat:no-repeat;
background-position:0 0.25em;
}*/
#content #sidebar {
position:relative;
padding:1.5em 0 1em 0; /* ohne news */
/*padding:0em 0 1em 0; mit news */
width:17.5em;
float:left;
background-color:#cce4ee;
}
#content #sidebar #menu a, #content #sidebar #menu a:visited {
border:0.02em solid #cce4ee;
display:block;
font-weight:normal;
margin:0;
padding:0.05em 0 0.05em 0.7em;
cursor:pointer;
white-space:nowrap;
}
#content #sidebar #menu a:hover, #content #sidebar #menu a.aktiv, #content #sidebar #menu a.aktiv:hover {
color:#c60;
display:block;
font-weight:normal;
background-color:#f2f2f2;
border:0.02em solid #7fbbd4;
}
/* Für Überschriften in den Extramenüs, die nicht verlinkt sind */
#content #sidebar #menu p {
border:0.02em solid #cce4ee;
display:block;
font-weight:bold;
margin:0;
padding:0.5em 0 0.05em 0.7em;
white-space:nowrap;
}
#content #sidebar #menu .capture {
color:#369;
font-weight:bold;
margin:0;
padding:0.6em 0 0.6em 0.7em;
}
#content #sidebar #news {
padding:0.3em;
margin-top:1em;
/*border:0.1em solid #c60;*/
}
/*#content #sidebar #news a, #content #sidebar #news a:visited {
margin:0;
padding:0.0em 0 0.0em 0.2em;
color:#006;
text-decoration:none;
cursor:pointer;
white-space:nowrap;
}
#content #sidebar #news a:hover, #content #sidebar #news a.aktiv, #content #sidebar #news a.aktiv:hover {
background-color:#f2f2f2;
color:#c60;
border-top:0.02em solid #7fbbd4;
border-bottom:0.02em solid #7fbbd4;
text-decoration:none;
}*/
/*#content #sidebar #news a, #content #sidebar #news a:visited {
border:0;
display:inline;
font-weight:bold;
margin:0;
padding:0;
color:#009;
}
#content #sidebar #news a:hover {
background-color:#cce4ee;
border:0;
color:#c60;
display:inline;
font-weight:bold;
}*/
#content #sidebar #news p {
font-size:95%;
margin:0.7em 0 0.5em 0.7em;
}
#content #sidebar #news #head {
background-color:#c60;
/*font-size:120%;*/
font-weight:bold;
color:#fff;
/*margin-bottom:0.4em;*/
padding:0.3em;
height:1.3em;
}
#content #text {
margin-left:17.5em;
min-width:40.66em;
padding:1em;
color:#003;
background:#f2f2f2;
/*width:700px; */
}
/*#content #text a, #content #text a:visited {
color:#009;
text-decoration:underline;
}
#content #text a:hover {
color:#c60;
text-decoration:underline;
}*/
#content #text iframe {
height:27.34em;
width:33.2em;
}
#content #text table {
border-collapse:collapse;
}
#content #text th, #content #text td {
border:0.08em solid #7fbbd4;
padding:0.2em;
/*text-align:left;*/
vertical-align:top;
}
#content #text #form td, #content #text #form tr {
border:0;
}
#content #text #start_page th, #content #text #start_page td {
border:0.08em solid #E6E6E6;
padding:1em;
}
#content #text table.center {
margin-left:auto;
margin-right:auto;
}
#content #text table.full_width {
width:100%;
}
#content #text th.center, #content #text td.center {
/*text-align:center;*/
vertical-align:middle;
}
#content ul.no_margin {
margin-bottom:0;
margin-top:0;
margin-left:1.2em;
padding-left:0;
}
#footer {
clear:both;
margin:0;
padding-left:0.7em;
line-height:1.5em;
font-size:0.8em;
color:#000;
background:#7fbbd4;
border-bottom:0.2em solid #7fbbd4;
/*-moz-border-radius-bottomleft:20px;
-moz-border-radius-bottomright:20px;
-khtml-border-radius-bottomleft:20px;
-khtml-border-radius-bottomright:20px;*/
}
#footer #mail_icon {
height:0.88em;
width:1.27em;
}
h1,h2,h3,h4 {
margin-top:0.2em;
margin-bottom:1em;
color:#369;
}
h1 {
font-size:1.4em;
}
h2 {
font-size:1.3em;
}
h3 {
font-size:1.2em;
}
h4 {
font-size:1.05em;
}
strong {
font-weight:bold;
}
em {
font-style:italic;
}
img {
border-style:none;
}
dt {
font-weight:bold;
}
dd {
margin-bottom:0.8em;
}
li {
padding-top: 0.2em;
padding-bottom: 0.2em;
}
pre {
font-size:1em;
background-color:#eee;
font-family:"Courier New",Courier,monospace;
}
textarea, input {
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:1em;
}
acronym {
cursor: help;
}
/* classes */
.title_h1, .title_h2, .title_h3 {
margin-top:0.3em;
margin-bottom:0.3em;
font-weight:bold;
text-align:center;
}
.title_h1 {
font-size:1.37em; /* vorher: 1.6em*/
}
.title_h2 {
font-size:1.17em; /* vorher: 1.4em*/
}
.title_h3 {
font-size:0.97em; /* vorher: 1.2em*/
}
.nowrap {
white-space:nowrap;
}
.right {
text-align:right;
}
.center {
text-align:center;
}
.blocksatz {
text-align: justify;
}
.attention {
border-left:0.15em solid #900;
padding-left: 0.4em;
}
.warning {
border-top:0.1em solid #900;
border-left:0.1em solid #900;
border-right:0.1em solid #900;
border-bottom:0.1em solid #900;
padding:0.5em;
font-weight:bold;
}
.important {
color:#900;
}
.grau {
background-color:#E6E6E6;
}
/* boxes */
.box_hfg {
padding: 0.5em;
margin-bottom:1.5em;
margin-right:7em;
background: #E6E6E6;
border:0.15em solid #7fbbd4;
color:#003;
}
.box_important {
border:1px solid #7fbbd4;
padding:4px;
margin-bottom:1.5em;
line-height:1.8em;
background-color:#E6E6E6;
/*white-space: nowrap; */
/*-moz-border-radius:5px;*/
}
.box_WF {
border:1px solid #7fbbd4;
padding:1px 6px 1px 6px;
margin-bottom:1.5em;
margin-right:1.5em;
background-color:#E6E6E6;
font-weight:bold;
font-family:monospace;
font-size:1.3em;
width:10px;
}
.box_WF_red {
border:1px solid #7fbbd4;
padding:1px 6px 1px 6px;
margin-bottom:1.5em;
margin-right:1.5em;
background-color:#E6E6E6;
font-weight:bold;
font-family:monospace;
font-size:1.3em;
color:#900;
width:10px;
}
.image_border {