Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
81716ed1
Commit
81716ed1
authored
Mar 05, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test for source.sh, small fixes
parent
73bab906
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
3 deletions
+30
-3
checkmodule.sh
etercifs/checkmodule.sh
+3
-3
etercifs-build
etercifs/etercifs-build
+0
-0
package.conf.devel
etercifs/package.conf.devel
+1
-0
run_check_source.table.sh
etercifs/run_check_source.table.sh
+22
-0
run_from_source.sh
etercifs/run_from_source.sh
+4
-0
No files found.
etercifs/checkmodule.sh
View file @
81716ed1
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
.
./functions.sh
.
./functions.sh
# FIXME: why we still need detect KERNELVERSION from source???
# Heuristic
# Heuristic
detect_kernel
()
detect_kernel
()
{
{
...
@@ -33,11 +34,11 @@ check_build_module()
...
@@ -33,11 +34,11 @@ check_build_module()
{
{
if
[
-r
"
$BUILDDIR
/
$MODULEFILENAME
"
]
;
then
if
[
-r
"
$BUILDDIR
/
$MODULEFILENAME
"
]
;
then
echo
"
$KERNELVERSION
- OK"
echo
"
$KERNELVERSION
- OK"
BUILTLIST
=
"
$BUILTLIST
---DONE"
BUILTLIST
=
"
$BUILTLIST
$KERNELVERSION
---DONE"
else
else
echo
"can't locate built module
$MODULEFILENAME
"
echo
"can't locate built module
$MODULEFILENAME
"
echo
"
$KERNELVERSION
- FAIL"
echo
"
$KERNELVERSION
- FAIL"
BUILTLIST
=
"
$BUILTLIST
---FAILURE"
BUILTLIST
=
"
$BUILTLIST
$KERNELVERSION
---FAILURE"
fi
fi
}
}
...
@@ -55,7 +56,6 @@ check_build_module()
...
@@ -55,7 +56,6 @@ check_build_module()
echo
"Can't detect kernel version in
$KERNSRC
"
echo
"Can't detect kernel version in
$KERNSRC
"
else
else
echo
"Build for
$KERNSRC
(detected as
$KERNELVERSION
)"
echo
"Build for
$KERNSRC
(detected as
$KERNELVERSION
)"
BUILTLIST
=
"
$BUILTLIST
$KERNELVERSION
"
compile_module
compile_module
check_build_module
check_build_module
fi
fi
...
...
etercifs/etercifs-build
100644 → 100755
View file @
81716ed1
File mode changed from 100644 to 100755
etercifs/package.conf.devel
View file @
81716ed1
# demo data
DATADIR=./
DATADIR=./
SRC_DIR=/usr/src/etercifs-5.5.0
SRC_DIR=/usr/src/etercifs-5.5.0
MODULENAME=etercifs
MODULENAME=etercifs
...
...
etercifs/run_check_source.table.sh
0 → 100755
View file @
81716ed1
#!/bin/sh
test
()
{
while
read
distro version
source
;
do
ts
=
$(
./source.sh
$distro
$version
< source.table
)
if
[
"
$ts
"
=
"
$source
"
]
;
then
res
=
"OK"
else
[
-n
"
$ts
"
]
&&
res
=
"NOT OK (
$ts
!=
$source
)"
||
res
=
"skip"
fi
printf
"%20s %20s %10s %s
\n
"
$distro
$version
$source
"
$res
"
done
}
# test data
cat
<<
EOF
| test
ALTLinux 2.6.32-ovz-el-alt147 centos60
Ubuntu 4.1.2.4 4.1
GosLinux 3.10.0-1 goslinux64
EOF
etercifs/run_from_source.sh
0 → 100755
View file @
81716ed1
#!/bin/sh
PACKAGEINFO
=
./package.conf.devel
.
./buildmodule.sh
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment