Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
0
02epoll-cpp
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esw
02epoll-cpp
Commits
ae407c35
Commit
ae407c35
authored
4 days ago
by
Michal Sojka
Browse files
Options
Downloads
Patches
Plain Diff
Remove meson tests
They are not reliable and confuse students.
parent
248adb3a
Branches
master
No related tags found
No related merge requests found
Pipeline
#124350
passed
4 days ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
meson.build
+0
-2
0 additions, 2 deletions
meson.build
t.sh
+0
-73
0 additions, 73 deletions
t.sh
with
0 additions
and
75 deletions
meson.build
+
0
−
2
View file @
ae407c35
...
...
@@ -10,5 +10,3 @@ src_files = [
'EpollStdIn.cc'
,
'EpollTimer.cc'
,
]
executable
(
'epoll_server'
,
src_files
)
test
(
'first run'
,
find_program
(
't.sh'
),
is_parallel
:
false
)
test
(
'second run'
,
find_program
(
't.sh'
),
is_parallel
:
false
)
This diff is collapsed.
Click to expand it.
t.sh
deleted
100755 → 0
+
0
−
73
View file @
248adb3a
#!/bin/sh
set
-eu
TT4
=
"5"
TT5
=
"3"
ST
=
"7 4"
SST
=
"7 0 0 3"
SSST
=
"5888889"
BIN
=
epoll_server
txt
()
{
echo
$(
cat
$1
)
}
res
()
{
if
[
"
$2
"
=
"
$(
txt
$3
)
"
]
then
echo
"+ Good,
$1
test passed"
else
echo
"- Bad,
$1
test failed."
echo
" I do expect: '
$2
'"
echo
" I found: '
$(
txt
$3
)
'"
ex
=
1
fi
}
test
-x
$BIN
&&
run
=
$BIN
test
-x
builddir/
$BIN
&&
run
=
builddir/
$BIN
if
[
-z
"
$run
"
]
then
echo
"No
$BIN
binary found."
exit
1
fi
tr
=
$(
mktemp
)
tr4
=
$(
mktemp
)
tr5
=
$(
mktemp
)
sr
=
$(
mktemp
)
ssr
=
$(
mktemp
)
sssr
=
$(
mktemp
)
(
(
sleep
2
;
echo
-n
"foo"
;
sleep
2
;
echo
-n
" bar
\n
buzz
\n
"
;
)
\
|
(
sleep
0.1
;
nc
-q
1 localhost 12345
>
$sr
;
)
)
&
(
(
sleep
2
;
echo
-n
"this"
;
\
sleep
1
;
echo
-n
" is
\n
"
;
\
sleep
1
;
echo
-n
"
\n\n
esw
\n
"
;
\
)
\
|
(
sleep
0.1
;
nc
-q
1 localhost 12345
>
$ssr
;
)
)
&
(
echo
"
$(
seq
999999|tr
-d
'\n'
)
"
\
|
(
sleep
0.1
;
nc localhost 12345
>
$sssr
)
)
&
timeout
6 ./
$run
|
tee
$tr
sed
-i
'/^[^(timer)].*/d'
$tr
cat
$tr
|
grep
"timer: 4"
|
wc
-l
>
$tr4
cat
$tr
|
grep
"timer: 5"
|
wc
-l
>
$tr5
ex
=
0
res
"timer 4"
"
$TT4
"
"
$tr4
"
res
"timer 5"
"
$TT5
"
"
$tr5
"
res
"1st socket"
"
$ST
"
"
$sr
"
res
"2nd socket"
"
$SST
"
"
$ssr
"
res
"3rd socket"
"
$SSST
"
"
$sssr
"
rm
$tr
$sr
$ssr
$sssr
exit
$ex
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment